earthobservations / gribmagic

Generic weather forecast downloader
https://community.panodata.org/t/developing-gribmagic/233
MIT License
21 stars 2 forks source link

Integrate DWD GRIB Downloader as "gribmagic dwd acquire" subcommand #14

Closed amotl closed 2 years ago

amotl commented 2 years ago

Hi.

Introduction

This is the another subsystem, beyond gribmagic unity. Its command line entrypoint is gribmagic dwd and its aim is to acquire a specific subset of DWD NWP model run data by describing it using a "download recipe".

About

Under the hood, gribmagic dwd acquire uses the well-known DWD Data Downloader, along with some improvements, see dwd-grib-downloader.

Recipes

You can inspect two example recipes at:

Synopsis

# Install DWD GRIB Downloader program.
gribmagic install dwd-grib-downloader

# Acquire wind-specific parameters from ICON-D2.
wget https://raw.githubusercontent.com/earthobservations/gribmagic/98da3fd4f/examples/dwd/recipe_d2_wind.py
gribmagic dwd acquire --recipe=recipe_d2_wind.py --timestamp="2021101800" --output=.gribmagic-data

# Acquire assorted parameters from ICON-GLOBAL.
wget https://raw.githubusercontent.com/earthobservations/gribmagic/98da3fd4f/examples/dwd/recipe_global_assorted.py
gribmagic dwd acquire --recipe=recipe_global_assorted.py --timestamp="2021101800" --output=.gribmagic-data

With kind regards, Andreas.

/cc @meteoDaniel, @mhaberler

codecov[bot] commented 2 years ago

Codecov Report

Merging #14 (3f7aae8) into main (dac4044) will decrease coverage by 1.20%. The diff coverage is 94.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #14      +/-   ##
==========================================
- Coverage   94.33%   93.12%   -1.21%     
==========================================
  Files          18       19       +1     
  Lines         494      611     +117     
  Branches        0       61      +61     
==========================================
+ Hits          466      569     +103     
- Misses         28       32       +4     
- Partials        0       10      +10     
Flag Coverage Δ
unittests 93.12% <94.11%> (-1.21%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
gribmagic/unity/configuration/constants.py 100.00% <ø> (ø)
gribmagic/unity/exceptions.py 100.00% <ø> (ø)
gribmagic/installer.py 63.15% <63.15%> (ø)
gribmagic/unity/index/remote.py 88.88% <88.88%> (ø)
gribmagic/dwd/pipeline.py 81.81% <90.00%> (ø)
gribmagic/commands.py 97.56% <90.90%> (-2.44%) :arrow_down:
gribmagic/__init__.py 100.00% <100.00%> (ø)
gribmagic/unity/configuration/__init__.py 100.00% <100.00%> (ø)
gribmagic/unity/configuration/model.py 100.00% <100.00%> (ø)
gribmagic/unity/configuration/parser.py 93.10% <100.00%> (ø)
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ab2db6e...3f7aae8. Read the comment docs.