masak1112 / maelstrom-yr

A dataset plugin for climetlab for the dataset maelstrom-a1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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()

About

A dataset plugin for climetlab for the dataset maelstrom-a1

License:Apache License 2.0


Languages

Language:Jupyter Notebook 98.5%Language:Python 1.5%