Python interface to the The Danish Meteorological Institute's (DMI) Open Data Forecast EDR API. This repo is a copy of DMI-Open-Data with the one modification that it taps into the Forecast EDR API instead.
The status is work-in-progress. There are many combinations of forecast models and parameters which have not been properly tested...
- Python 3.6+
- API Key for Forecast EDR v1
$ pip install git+https://github.com/1oly/dmi-forecast-edrimport os
from datetime import datetime
from dmi_forecast_edr import DMIForecastEDRClient, Collection
client = DMIForecastEDRClient(api_key=os.getenv('DMI_FORECAST_API_KEY'))
dtnow = datetime.now()
forecasts = client.get_forecast(
collection = Collection.HarmonieDiniSf,
parameter = ['wind-speed','wind-dir'],
crs = 'crs84',
to_time = dtnow,
f = 'GeoJSON',
coords = [12.5692,55.6757],
)Parameters can be found in the documentation.