Skip to content

1oly/dmi-forecast-edr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DMI Forecast EDR API

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

Requirements

Installation

$ pip install git+https://github.com/1oly/dmi-forecast-edr

Example

import 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.

About

A Python interface to the The Danish Meteorological Institute's (DMI) Open Forecast EDR API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages