Modes
Tip
If you prefer to use Swagger to understand the API capabilities, see OpenAPI docs.
historical
Historical data. This can be past measurements from a weather station or model data for some point in the past.
current
The current calculation/measurement depending on type.
forecast
Note
Forecasts are available in prerelease stability. This feature is still
under active development and subject to non-backwards compatible changes.
Make sure you follow updates on the changelog and give us feedback on the endpoints on https://github.com/Geosphere-Austria/dataset-api-docs
Forecast data. This is the output of one or multiple models for some point in the future.
Forecasts have several additional metadata attributes (available via the /metadata endpoint of the respective data source):
available_forecast_reftimesholds all available forecast reference times. The forecast reference time describes when the data was created, i.e. the forecast model was run.last_forecast_reftimeholds the newest available forecast reference time.max_forecast_offsetis the maximum allowed value for theforecast_offsetparameter.forecast_lengthdescribes how many time steps a single forecast has.
Note
Due to their large size, only the last few forecasts are available. This means, specifying start and end outside of last_forecast_reftime will yield no results.
Note
Currently, the available forecast duration (timerange covered by a forecast) is always forecast_length * freq for easier use.
In the future, this may change, so this simple formula does not necessarily hold. For example a dataset
might have 1H timesteps for the next 6 hours, 3H steps for the following 18 hours, and even lower resolutions after that.
When available, this information will be displayed as part of the metadata of a dataset.
mode specific parameters
- start
if
modeis historical or forecastThe start date and time, supplied in
YYYY-MM-DDThh:mmformat (the time is optional).In case of forecasts
startis optional and defaults to the last forecast timestamp before now.- end
if
modeis historical or forecastThe end date and time, supplied in
YYYY-MM-DDThh:mmformat (the time is optional).In case of forecasts
endis optional and defaults to the end of the forecast.- forecast_offset
if
modeis forecastAn optional offset allowing you to select an older forecast.
forecast_offsetcounts backwards, so0is the most recent forecast,1the second most recent and so on. You can check theavailable_forecast_reftimesmetadata attribute, and the offset will correspond to the index of the list.The default value is
0, i.e. the most recently produced forecast is requested, and must be between0andmax_forecast_offset.