Introduction
Windborne is a pip installable library built to interact with Data and Forecasts APIs.
WindBorne uses API keys to authenticate API requests. If an API request is not properly authenticated, it will fail. To get an API key, email data@windbornesystems.com.
The windborne python library is designed to be predictable, performant, and easy to use.
If you have not set your credentials as environment variables as described detailed in CLI section, you have the option to insert your credentials into your code directly before accessing the library.
super_observations
Fetches super observations data within a time range and saves them to specified file(s).
It accepts the following parameters:
Name | Type | Description |
---|---|---|
start_time | string | A date string, supporting formats YYYY-MM-DD HH:MM:SS, YYYY-MM-DD_HH:MM and ISO strings, representing the starting time of fetching data. |
end_time | string | Optional. A date string, supporting formats YYYY-MM-DD HH:MM:SS, YYYY-MM-DD_HH:MM and ISO strings, representing the end time of fetching data. If not provided, current time is used as end time. |
interval | integer | Optional. Interval in seconds between polls when a empty page is received (default: 60) |
save_to_file | string | Optional. Saves all data to a single file instead of bucketing. Supported formats are '.csv', '.json', '.little_r' and '.nc' |
bucket_hours | int | Optional. Size of time buckets in hours. Defaults to 6 hours. |
output_format | string | Optional. Format to save data in separate files. Supported formats are 'json, 'csv', 'little_r' and 'netcdf'. |
output_dir | string | Optional. Directory path where the separate files should be saved. If not provided, files will be saved in current directory. |
callback | callable | Optional. Callback function that receives observations. This allows custom processing or saving in custom formats. |
observations
Fetches observations data within a time range and saves them to specified file(s).
It accepts the following parameters:
Name | Type | Description |
---|---|---|
start_time | string | A date string, supporting formats YYYY-MM-DD HH:MM:SS, YYYY-MM-DD_HH:MM and ISO strings, representing the starting time of fetching data. |
end_time | string | Optional. A date string, supporting formats YYYY-MM-DD HH:MM:SS, YYYY-MM-DD_HH:MM and ISO strings, representing the end time of fetching data. If not provided, current time is used as end time. |
include_ids | boolean | Optional. Include observation IDs in response. |
include_updated_at | boolean | Optional. Include update timestamps in response. |
mission_id | string | Optional. Filter observations by mission ID. |
min_latitude | float | Optional.Minimum latitude boundary. |
max_latitude | float | Optional. Maximum latitude boundary. |
min_longitude | float | Optional. Minimum longitude boundary. |
max_longitude | float | Optional. Maximum longitude boundary. |
interval | integer | Optional. Interval in seconds between polls when a empty page is received (default: 60) |
save_to_file | string | Optional. Saves all data to a single file instead of bucketing. Supported formats are '.csv', '.json', '.little_r' and '.nc' |
bucket_hours | int | Optional. Size of time buckets in hours. Defaults to 6 hours. |
output_format | string | Optional. Format to save data in separate files. Can be 'csv', 'json', 'netcdf' or 'little_r'. |
output_dir | string | Optional. Directory path where the separate files should be saved. If not provided, files will be saved in current directory. |
callback | callable | Optional. Callback function that receives observations. This allows custom processing or saving in custom formats. |
poll_super_observations
Polls super observations continuously and saves them to specified files.
It accepts the following parameters:
Name | Type | Description |
---|---|---|
start_time | string | A date string, supporting formats YYYY-MM-DD HH:MM:SS, YYYY-MM-DD_HH:MM and ISO strings, representing the starting time of fetching data. |
interval | integer | Optional. Interval in seconds between polls when a empty page is received (default: 60) |
save_to_file | string | Optional. Saves all data to a single file instead of bucketing. Supported formats are '.csv', '.json', '.little_r' and '.nc' |
bucket_hours | int | Optional. Size of time buckets in hours. Defaults to 6 hours. |
output_format | string | Optional. Format to save data in separate files. Supported formats are 'json, 'csv', 'little_r' and 'netcdf'. |
output_dir | string | Optional. Directory path where the separate files should be saved. If not provided, files will be saved in current directory. |
callback | callable | Optional. Callback function that receives observations. This allows custom processing or saving in custom formats. |
poll_observations
Polls observations continuously and saves them to specified file(s).
It accepts the following parameters:
Name | Type | Description |
---|---|---|
start_time | string | A date string, supporting formats YYYY-MM-DD HH:MM:SS, YYYY-MM-DD_HH:MM and ISO strings, representing the starting time of fetching data. |
include_ids | boolean | Optional. Include observation IDs in response. |
include_updated_at | boolean | Optional. Include update timestamps in response. |
mission_id | string | Optional. Filter observations by mission ID. |
min_latitude | float | Optional.Minimum latitude boundary. |
max_latitude | float | Optional. Maximum latitude boundary. |
min_longitude | float | Optional. Minimum longitude boundary. |
max_longitude | float | Optional. Maximum longitude boundary. |
interval | integer | Optional. Interval in seconds between polls when a empty page is received (default: 60) |
bucket_hours | int | Optional. Size of time buckets in hours. Defaults to 6 hours. |
output_format | string | Optional. Format to save data in separate files. Can be 'csv', 'json', 'netcdf' or 'little_r'. |
output_dir | string | Optional. Directory path where the separate files should be saved. If not provided, files will be saved in current directory. |
callback | callable | Optional. Callback function that receives observations. This allows custom processing or saving in custom formats. |
get_observations_page
Retrieves an observations page based on specified filters.
It accepts the following parameters:
Name | Type | Description |
---|---|---|
since | string | Optional. Start time of fetching observations data. |
min_time | string | Optional. Filter observations data taken after this time. |
max_time | string | Optional. Filter observations data take prior to this time. |
include_ids | boolean | Optional. Include observation IDs in response. |
include_mission_name | boolean | Optional. Include mission names in response. |
include_updated_at | boolean | Optional. Include update timestamps in response. |
mission_id | string | Optional. Filter observations by mission ID. |
min_latitude | float | Optional.Minimum latitude boundary. |
max_latitude | float | Optional. Maximum latitude boundary. |
min_longitude | float | Optional. Minimum longitude boundary. |
max_longitude | float | Optional. Maximum longitude boundary. |
save_to_file | string | Optional. Save the response data in .csv / .json format. |
It returns the response of API or saves the response data in save_to_file.
get_super_observations_page
Retrieves a super observations page based on specified filters.
It accepts the following parameters:
Name | Type | Description |
---|---|---|
since | string | Start time of fetching observations data. |
min_time | string | Optional. Filter observations data taken after this time. |
max_time | string | Optional. Filter observations data take prior to this time. |
include_ids | boolean | Include observation IDs in response. |
include_mission_name | boolean | Include mission names in response. |
include_updated_at | boolean | Include update timestamps in response. |
mission_id | string | Filter observations by mission ID. |
save_to_file | string | Optional. Path to save the response data in .csv/.json format. |
It returns the response of API or saves the response data in save_to_file.
get_flying_missions
Retrieves a list of currently flying missions.
It accepts the following parameter:
Name | Type | Description |
---|---|---|
save_to_file | string | Optional. Path to save the response data. If provided, saves the data in CSV or JSON format. |
It returns the response of API or saves the response data in save_to_file.
get_mission_launch_site
Retrieves launch site information for a specified mission.
It accepts the following parameters:
Name | Type | Description |
---|---|---|
mission_id | string | The mission for which to obtain launch site. |
save_to_file | string | Optional. Path to save the response data. If provided, saves the data in CSV or JSON format. |
It returns the response of API or saves the response data in save_to_file.
get_predicted_path
Fetches the predicted flight path for a given mission currently flying.
It accepts the following parameters:
Name | Type | Description |
---|---|---|
mission_id | string | The mission for which to obtain predicted flight path. |
save_to_file | string | Optional. Path to save the response data. If provided, saves the data in CSV or JSON format. |
It returns the response of API or saves the response data in save_to_file.