/climetlab-plugin-a6

CliMetLab plugin for weather data and power production from renewables

Primary LanguagePythonApache License 2.0Apache-2.0

climetlab-power-production

PyPI version workflow

A dataset plugin for climetlab for the dataset climetlab-plugin-a6/maelstrom-production-forecasts.

Features

In this README is a description of how to get the CliMetLab Plugin for A6.

Installation

Via pip

pip install climetlab-maelstrom-power-production

or via poetry

git clone git@github.com:4castRenewables/climetlab-plugin-a6.git
cd climetlab-plugin-a6
poetry install --no-dev

Datasets description

There are five datasets:

  • maelstrom-constants-a-b
  • maelstrom-power-production
  • maelstrom-weather-model-level
  • maelstrom-weather-pressure-level
  • maelstrom-weather-surface-level

A detailed description of each dataset (variables, meta data etc.) is available here (see Section 3.6).

maelstrom-constants-a-b

Constants used for calculation of pressure at intermediate model levels.

Usage

import climetlab as cml
production_data = cml.load_dataset("maelstrom-constants-a-b")

References

IFS Documentation – Cy47r1, Operational implementation 30 June 2020, Part III: Dynamics and Numerical Procedures, ECMWF, 2020, p. 6, Eq. 2.11

maelstrom-power-production

Power production data of wind turbines located in various regions of Germany.

The data were provided by NOTUS energy GmbH & Co. KG. For a detailed description see the link above.

Usage

import climetlab as cml
production_data = cml.load_dataset("maelstrom-power-production", wind_turbine_id=1)

The wind_turbine_id is a number 1 to N, where N is the maximum number of currently available wind turbines.

Currently available: 45 wind turbines.

maelstrom-weather-model-level

ECMWF IFS HRES model level data for whole Europe.

For a detailed description see the link above.

Usage

import climetlab as cml
weather_ml = cml.load_dataset("maelstrom-weather-model-level", date="2019-01-01")

Currently available dates:

  • 2017-01-01 until 2020-12-31

maelstrom-weather-pressure-level

ECMWF IF HRES pressure level data for whole Europe.

For a detailed description see the link above.

Usage

import climetlab as cml
weather_pl = cml.load_dataset("maelstrom-weather-pressure-level", date="2019-01-01")

Currently available dates:

  • 2017-01-01 until 2020-12-31

maelstrom-weather-surface-level

ECMWF IFS HRES surface level data for whole Europe.

For a detailed description see the link above.

Usage

import climetlab as cml
weather_pl = cml.load_dataset("maelstrom-weather-surface-level", date="2019-01-01")

Currently available dates:

  • 2017-01-01 until 2020-12-31

Using climetlab to access the data (supports grib, netcdf and zarr)

See the demo notebooks here.

The climetlab python package allows easy access to the data with a few lines of code such as:

!pip install climetlab climetlab-maelstrom-power-production
import climetlab as cml
data = cml.load_dataset("maelstrom-power-production", date="2019-01-01")
data.to_xarray()

Executing the notebooks

Before executing the notebooks, make sure to install the project and the notebook dependencies correctly

poetry install --extras notebooks