Skip to content

A dataset plugin for climetlab for the dataset maelstrom-a1

License

Notifications You must be signed in to change notification settings

metno/maelstrom-yr

Repository files navigation

maelstrom-yr

PyPI version workflow

A dataset plugin for climetlab for the dataset maelstrom-yr. Check out this notebook.

Datasets description

Contains gridded weather data for the Nordics. It contains both predictors (gridded weather forecasts) and predictand (gridded analysis fields). The forecasts are used operationally for the Nordic region on https://www.yr.no and currently a simple ML-solution is used, as described in Nipen et al. 2020.

Using climetlab to access the data

The data can be loaded by the climetlab package (https://github.com/ecmwf/climetlab). The dataset has the following arguments:

  • size: Which dataset to load (currently 5GB is supported, but in the future a 5TB dataset will be added)
  • parameter: Which predictand to load (currently "air_temperature" is supported)
  • dates: If left blank, the whole dataset is loaded. Otherwise, provide a list of dates in "YYYY-MM-DD" format to load a subset

Here is an example of how to load the data:

!pip install climetlab climetlab_maelstrom_yr
import climetlab as cml
ds = cml.load_dataset("maelstrom-yr", size="5GB", parameter="air_temperature", dates=['2020-06-29'])
ds.to_xarray()