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.

Need access?

Email data@windbornesystems.com
Installation
Python
Set Credentials
Bash

super_observations

Fetches super observations data within a time range and saves them to specified file(s).

It accepts the following parameters:

NameTypeDescription
start_timestringA 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_timestringOptional. 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.
intervalintegerOptional. Interval in seconds between polls when a empty page is received (default: 60)
save_to_filestringOptional. Saves all data to a single file instead of bucketing. Supported formats are '.csv', '.json', '.little_r' and '.nc'
bucket_hoursintOptional. Size of time buckets in hours. Defaults to 6 hours.
output_formatstringOptional. Format to save data in separate files. Supported formats are 'json, 'csv', 'little_r' and 'netcdf'.
output_dirstringOptional. Directory path where the separate files should be saved. If not provided, files will be saved in current directory.
callbackcallableOptional. Callback function that receives observations. This allows custom processing or saving in custom formats.

Example
Python
callback for custom processing
Python

observations

Fetches observations data within a time range and saves them to specified file(s).

It accepts the following parameters:

NameTypeDescription
start_timestringA 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_timestringOptional. 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_idsbooleanOptional. Include observation IDs in response.
include_updated_atbooleanOptional. Include update timestamps in response.
mission_idstringOptional. Filter observations by mission ID.
min_latitudefloatOptional.Minimum latitude boundary.
max_latitudefloatOptional. Maximum latitude boundary.
min_longitudefloatOptional. Minimum longitude boundary.
max_longitudefloatOptional. Maximum longitude boundary.
intervalintegerOptional. Interval in seconds between polls when a empty page is received (default: 60)
save_to_filestringOptional. Saves all data to a single file instead of bucketing. Supported formats are '.csv', '.json', '.little_r' and '.nc'
bucket_hoursintOptional. Size of time buckets in hours. Defaults to 6 hours.
output_formatstringOptional. Format to save data in separate files. Can be 'csv', 'json', 'netcdf' or 'little_r'.
output_dirstringOptional. Directory path where the separate files should be saved. If not provided, files will be saved in current directory.
callbackcallableOptional. Callback function that receives observations. This allows custom processing or saving in custom formats.

Example
Python
callback for custom processing
Python

poll_super_observations

Polls super observations continuously and saves them to specified files.

It accepts the following parameters:

NameTypeDescription
start_timestringA 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.
intervalintegerOptional. Interval in seconds between polls when a empty page is received (default: 60)
save_to_filestringOptional. Saves all data to a single file instead of bucketing. Supported formats are '.csv', '.json', '.little_r' and '.nc'
bucket_hoursintOptional. Size of time buckets in hours. Defaults to 6 hours.
output_formatstringOptional. Format to save data in separate files. Supported formats are 'json, 'csv', 'little_r' and 'netcdf'.
output_dirstringOptional. Directory path where the separate files should be saved. If not provided, files will be saved in current directory.
callbackcallableOptional. Callback function that receives observations. This allows custom processing or saving in custom formats.

Example
Python
callback for custom processing
Python

poll_observations

Polls observations continuously and saves them to specified file(s).

It accepts the following parameters:

NameTypeDescription
start_timestringA 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_idsbooleanOptional. Include observation IDs in response.
include_updated_atbooleanOptional. Include update timestamps in response.
mission_idstringOptional. Filter observations by mission ID.
min_latitudefloatOptional.Minimum latitude boundary.
max_latitudefloatOptional. Maximum latitude boundary.
min_longitudefloatOptional. Minimum longitude boundary.
max_longitudefloatOptional. Maximum longitude boundary.
intervalintegerOptional. Interval in seconds between polls when a empty page is received (default: 60)
bucket_hoursintOptional. Size of time buckets in hours. Defaults to 6 hours.
output_formatstringOptional. Format to save data in separate files. Can be 'csv', 'json', 'netcdf' or 'little_r'.
output_dirstringOptional. Directory path where the separate files should be saved. If not provided, files will be saved in current directory.
callbackcallableOptional. Callback function that receives observations. This allows custom processing or saving in custom formats.

Example
Python
callback for custom processing
Python

get_observations_page

Retrieves an observations page based on specified filters.

It accepts the following parameters:

NameTypeDescription
sincestringOptional. Start time of fetching observations data.
min_timestringOptional. Filter observations data taken after this time.
max_timestringOptional. Filter observations data take prior to this time.
include_idsbooleanOptional. Include observation IDs in response.
include_mission_namebooleanOptional. Include mission names in response.
include_updated_atbooleanOptional. Include update timestamps in response.
mission_idstringOptional. Filter observations by mission ID.
min_latitudefloatOptional.Minimum latitude boundary.
max_latitudefloatOptional. Maximum latitude boundary.
min_longitudefloatOptional. Minimum longitude boundary.
max_longitudefloatOptional. Maximum longitude boundary.
save_to_filestringOptional. Save the response data in .csv / .json format.

It returns the response of API or saves the response data in save_to_file.

Example
Python

get_super_observations_page

Retrieves a super observations page based on specified filters.

It accepts the following parameters:

NameTypeDescription
sincestringStart time of fetching observations data.
min_timestringOptional. Filter observations data taken after this time.
max_timestringOptional. Filter observations data take prior to this time.
include_idsbooleanInclude observation IDs in response.
include_mission_namebooleanInclude mission names in response.
include_updated_atbooleanInclude update timestamps in response.
mission_idstringFilter observations by mission ID.
save_to_filestringOptional. 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.

Example
Python

get_flying_missions

Retrieves a list of currently flying missions.

It accepts the following parameter:

NameTypeDescription
save_to_filestringOptional. 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.

Example
Python

get_mission_launch_site

Retrieves launch site information for a specified mission.

It accepts the following parameters:

NameTypeDescription
mission_idstringThe mission for which to obtain launch site.
save_to_filestringOptional. 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.

Example
Python

get_predicted_path

Fetches the predicted flight path for a given mission currently flying.

It accepts the following parameters:

NameTypeDescription
mission_idstringThe mission for which to obtain predicted flight path.
save_to_filestringOptional. 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.

Example
Python