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

get_point_forecasts

This function allows getting the forecast at a given point or set of points. This runs WindBorne's custom point forecasting model, making it more accurate than simple interpolation of the gridded output.

Available initialization times for point forecasts can be found using get_initialization_times.

It accepts the following parameters:

NameTypeDescription
coordinatesstringA semi-colon separated list of latitude,longitude tuples, eg 37,-121;40.3,-100
min_forecast_timestringOptional. An ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the minimum forecast time to calculate point forecasts for.
max_forecast_timestringOptional. An ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the maximum forecast time to calculate point forecasts for.
min_forecast_hourintegerOptional. The minimum forecast hour to calculate point forecasts for.
max_forecast_hourintegerOptional. The maximum forecast hour to calculate point forecasts for.
initialization_timestringOptional. An ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time at which the forecast was made. This looks solely at the date and the hour; minutes and seconds are discarded. If nothing is provided, the latest forecast is used.

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

Example
Python

get_initialization_times

This functions allows getting available initialization times for point forecasts.

It doesn't accept any parameters.

It returns the following:

NameTypeDescription
available[string]An array of ISO8601 timestamps of available initialization times for point forecasts, ordered from newest to oldest.
lateststringThe ISO8601 timestamp of latest available initialization time for point forecasts.

Example
Python

get_temperature_2m

This function allows getting the gridded output of global 2m temperature forecasts. These outputs are returned as a netCDF (.nc) file.

If there is no forecast available within an hour of the requested time, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded.
save_to_filestringPath to save the file.

EXAMPLE
Python

get_wind_u_10m

This function allows getting the gridded output of global 10m u-component of wind forecasts. These outputs are returned as a netCDF (.nc) file.

If there is no forecast available within an hour of the requested time, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded.
save_to_filestringPath to save the file.

EXAMPLE
Python

get_wind_v_10m

This function allows getting the gridded output of global 10m v-component of wind forecasts. These outputs are returned as a netCDF (.nc) file.

If there is no forecast available within an hour of the requested time, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded.
save_to_filestringPath to save the file.

EXAMPLE
Python

get_pressure_msl

This function allows getting the gridded output of global mean sea level pressure forecasts. These outputs are returned as a netCDF (.nc) file.

If there is no forecast available within an hour of the requested time, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded.
save_to_filestringPath to save the file.

EXAMPLE
Python

get_500hpa_temperature

This function allows getting the gridded output of global 500hPa temperature forecasts. These outputs are returned as a netCDF (.nc) file.

If there is no forecast available within an hour of the requested time, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded.
save_to_filestringPath to save the file.

EXAMPLE
Python

get_850hpa_temperature

This function allows getting the gridded output of global 850hPa temperature forecasts. These outputs are returned as a netCDF (.nc) file.

If there is no forecast available within an hour of the requested time, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded.
save_to_filestringPath to save the file.

EXAMPLE
Python

get_500hpa_wind_u

This function allows getting the gridded output of global 500hPa u-component of wind forecasts. These outputs are returned as a netCDF (.nc) file.

If there is no forecast available within an hour of the requested time, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded.
save_to_filestringPath to save the file.

EXAMPLE
Python

get_500hpa_wind_v

This function allows getting the gridded output of global 500hPa v-component of wind forecasts. These outputs are returned as a netCDF (.nc) file.

If there is no forecast available within an hour of the requested time, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded.
save_to_filestringPath to save the file.

EXAMPLE
Python

historical_temperature_2m

This function allows getting the historical output of global 2m temperature forecasts. These outputs are returned as a netCDF (.nc) file.

If the requested forecast is not available, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded. If there is no forecast available within an hour of the requested time, it will return a 404.
hourintegerHow many hours after the run time the forecast is valid at.
save_to_filestringPath to save the file.

EXAMPLE
Python

historical_wind_u_10m

This function allows getting the historical output of global 10m u-component of wind forecasts. These outputs are returned as a netCDF (.nc) file.

If the requested forecast is not available, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded. If there is no forecast available within an hour of the requested time, it will return a 404.
hourintegerHow many hours after the run time the forecast is valid at.
save_to_filestringPath to save the file.

EXAMPLE
Python

historical_wind_v_10m

This function allows getting the historical output of global 10m v-component of wind forecasts. These outputs are returned as a netCDF (.nc) file.

If the requested forecast is not available, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded. If there is no forecast available within an hour of the requested time, it will return a 404.
hourintegerHow many hours after the run time the forecast is valid at.
save_to_filestringPath to save the file.

EXAMPLE
Python

historical_pressure_msl

This function allows getting the historical output of global mean sea level pressure forecasts. These outputs are returned as a netCDF (.nc) file.

If the requested forecast is not available, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded. If there is no forecast available within an hour of the requested time, it will return a 404.
hourintegerHow many hours after the run time the forecast is valid at.
save_to_filestringPath to save the file.

EXAMPLE
Python

historical_500hpa_temperature

This function allows getting the historical output of global 500hPa temperature forecasts. These outputs are returned as a netCDF (.nc) file.

If the requested forecast is not available, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded. If there is no forecast available within an hour of the requested time, it will return a 404.
hourintegerHow many hours after the run time the forecast is valid at.
save_to_filestringPath to save the file.

EXAMPLE
Python

historical_850hpa_temperature

This function allows getting the historical output of global 850hPa temperature forecasts. These outputs are returned as a netCDF (.nc) file.

If the requested forecast is not available, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded. If there is no forecast available within an hour of the requested time, it will return a 404.
hourintegerHow many hours after the run time the forecast is valid at.
save_to_filestringPath to save the file.

EXAMPLE
Python

historical_500hpa_wind_u

This function allows getting the historical output of global 500hPa u-component of wind forecasts. These outputs are returned as a netCDF (.nc) file.

If the requested forecast is not available, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded. If there is no forecast available within an hour of the requested time, it will return a 404.
hourintegerHow many hours after the run time the forecast is valid at.
save_to_filestringPath to save the file.

EXAMPLE
Python

historical_500hpa_wind_v

This function allows getting the historical output of global 500hPa v-component of wind forecasts. These outputs are returned as a netCDF (.nc) file.

If the requested forecast is not available, a 404 status code will be displayed.

It accepts the following parameters:

NameTypeDescription
timestringAn ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time for which to get the forecast. This looks solely at the date and the hour; minutes and seconds are discarded. If there is no forecast available within an hour of the requested time, it will return a 404.
hourintegerHow many hours after the run time the forecast is valid at.
save_to_filestringPath to save the file.

EXAMPLE
Python

Tropical Cyclones

This endpoint allows getting the predicted ground track of active tropical cyclones.

It accepts the following query string parameters:

NameTypeDescription
initialization_timestringOptional. An ISO 8601 date string, supporting formats YYYYMMDDHH, YYYY-MM-DDTHH, and YYYY-MM-DDTHH:mm:ss., representing the time at which the forecast was made. This looks solely at the date and the hour; minutes and seconds are discarded. If nothing is provided, the latest forecast is used.
basinstringOptional. A string indicating the tropical cyclones basins to be filtered in the response. If not set, all tropical cyclones will be included.
save_to_filestringOptional. Path to save the response data. If provided, saves the data in .json, .csv, .gpx, .geojson, .kml, .little_r format.

The basin parameter defines specific geographical regions where tropical cyclones are present:

NameTypeDescription
NAstringNorth Atlantic Basin spanning from African Coast (20°E) to 140°W and Equator to 90°N.
EPstringEastern Pacific Basin spanning from 140°W to 180°W and Equator to 90°N.
WPstringWestern Pacific Basin spanning from 100°E to 180°E and Equator to 60°N.
NIstringNorth Indian Ocean Basin spanning from 45°E to 100°E and Equator to 90°N.
SIstringSouth-West Indian Ocean Basin spanning from 20°E to 90°E and 40°S to Equator.
AUstringAustralian Region Basin spanning from 90°E to 160°E and 36°S to Equator.
SPstringSouth Pacific Basin spanning from 160°E to 120°W and 40°S to Equator.

It returns an object (dictionary) with keys being tropical cyclone IDs and values being arrays of ground track points. Each ground track point is of the form:

NameTypeDescription
latitudenumberThe latitude where the tropical cyclone is predicted to be
longitudenumberThe longitude where the tropical cyclone is predicted to be
timestringThe ISO8601 timestamp of when this forecast point is valid

Example
Python
Sample Response