-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
597ad9b
commit 0cd89e2
Showing
1 changed file
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,16 @@ Features | |
In this README is a description of how to get the CliMetLab Plugin for A6. | ||
|
||
## Installation | ||
|
||
Via `pip` | ||
|
||
```commandline | ||
pip install climetlab-maelstrom-power-production | ||
``` | ||
|
||
or via [`poetry`](https://python-poetry.org/) | ||
``` | ||
|
||
```bash | ||
git clone [email protected]:4castRenewables/climetlab-plugin-a6.git | ||
cd climetlab-plugin-a6 | ||
poetry install --no-dev | ||
|
@@ -26,6 +30,7 @@ poetry install --no-dev | |
## Datasets description | ||
|
||
There are five datasets: | ||
|
||
- `maelstrom-constants-a-b` | ||
- `maelstrom-power-production` | ||
- `maelstrom-weather-model-level` | ||
|
@@ -41,6 +46,7 @@ Constants used for calculation of pressure at intermediate model levels. | |
|
||
```Python | ||
import climetlab as cml | ||
|
||
production_data = cml.load_dataset("maelstrom-constants-a-b") | ||
``` | ||
|
||
|
@@ -57,6 +63,7 @@ For a detailed description see the link above. | |
|
||
```Python | ||
import climetlab as cml | ||
|
||
production_data = cml.load_dataset("maelstrom-power-production", wind_turbine_id=1) | ||
``` | ||
|
||
|
@@ -73,6 +80,7 @@ For a detailed description see the link above. | |
|
||
```Python | ||
import climetlab as cml | ||
|
||
weather_ml = cml.load_dataset("maelstrom-weather-model-level", date="2019-01-01") | ||
``` | ||
|
||
|
@@ -88,6 +96,7 @@ For a detailed description see the link above. | |
|
||
```Python | ||
import climetlab as cml | ||
|
||
weather_pl = cml.load_dataset("maelstrom-weather-pressure-level", date="2019-01-01") | ||
``` | ||
|
||
|
@@ -103,6 +112,7 @@ For a detailed description see the link above. | |
|
||
```Python | ||
import climetlab as cml | ||
|
||
weather_pl = cml.load_dataset("maelstrom-weather-surface-level", date="2019-01-01") | ||
``` | ||
|
||
|
@@ -117,7 +127,8 @@ The climetlab python package allows easy access to the data with a few lines of | |
```Python | ||
!pip install climetlab climetlab-maelstrom-power-production | ||
import climetlab as cml | ||
data = cml.load_dataset("maelstrom-power-production", date="2019-01-01") | ||
|
||
data = cml.load_dataset("maelstrom-weather-surface-level", date="2019-01-01") | ||
data.to_xarray() | ||
``` | ||
|
||
|