Client Reference
Client
Source code in beacon_api/client.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
|
available_columns()
Get all the available columns for the default data table
Source code in beacon_api/client.py
check_status()
Check the status of the server
Source code in beacon_api/client.py
list_datasets(pattern=None, limit=None, offset=None)
Get all the datasets
Source code in beacon_api/client.py
list_tables()
Get all the tables
Source code in beacon_api/client.py
query()
Create a new query object. This is the starting point for building a query. The query can then be built using the methods on the Query object. You can also create a query from a specific table from the list_tables() method.
To materialize and run the query, use the .to_dataframe() or .to_csv() methods on the Query object. Returns: Query: A new query object.
Source code in beacon_api/client.py
subset(longitude_column, latitude_column, time_column, depth_column, columns, bbox=None, depth_range=None, time_range=None)
Create a query to subset the default collection based on the provided parameters.
Args: longitude_column: Name of the column containing longitude values. latitude_column: Name of the column containing latitude values. time_column: Name of the column containing time values. depth_column: Name of the column containing depth values. columns: List of additional columns to include in the query. bbox: Optional bounding box defined as (min_longitude, min_latitude, max_longitude, max_latitude). depth_range: Optional range for depth defined as (min_depth, max_depth). time_range: Optional range for time defined as (start_time, end_time). Returns A Query object that can be executed to retrieve the subset of data.