Skip to main content

python interface to collect and read GRIB files from the DWD

Project description

dwd4cast: a minimal python interface to load and read GRIB weather forecast data from the german weather services (DWD)

Installation

Installing dwd4castfrom pypi (e.g. with pip):

pip install dwd4cast

Install binary dependencies

In order to read GRIB files the packages cfgrib is used, which depends on the eccodes-library. This can either be installed via conda:

conda create -n pythone=3.11 eccodes=2.35.0

or build from source. First the compression library libaec has to be present. Here we compile this also from source:

export AEC_VERSION=1.1.3
cd /tmp
curl -L https://github.com/MathisRosenhauer/libaec/releases/download/v${AEC_VERSION}/libaec-${AEC_VERSION}.tar.gz | tar xz \
    && cd libaec-${AEC_VERSION}  \
    && mkdir build && cd build \
    && ../configure \
    && make check install \
    && cd /tmp && rm -rf libaec-${AEC_VERSION}

then we compile eccodes itself:

export ECCODES_VERSION=2.35.0
export ECCODES_URL=https://confluence.ecmwf.int/download/attachments/45757960/eccodes-2.35.0-Source.tar.gz?api=v2
cd /tmp
curl ${ECCODES_URL} | tar xz \
    && mkdir eccodes-build && cd eccodes-build \
    && cmake ../eccodes-${ECCODES_VERSION}-Source \
    && make && ctest \
    && make install \
    && cd /tmp && rm -rf eccodes-*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dwd4cast-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

dwd4cast-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file dwd4cast-0.1.0.tar.gz.

File metadata

  • Download URL: dwd4cast-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/23.4.0

File hashes

Hashes for dwd4cast-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dbfce6addb1ffa65a829245551db40831dbfcf4e7598e69cbcde72d9cc7574f8
MD5 fa5f06f38484933f963c2cb00420f117
BLAKE2b-256 8b7bcae646f6fd78214a80ca8854cfb2bb2e704561e8591269812d4eb731e6a5

See more details on using hashes here.

File details

Details for the file dwd4cast-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dwd4cast-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/23.4.0

File hashes

Hashes for dwd4cast-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f229108028fa3b5be8af230406b59dd0d488f342d84ec4bc009de540e5e39753
MD5 1a4b7df16829c4b1c0bfa1aa8e84f4d0
BLAKE2b-256 b7f76c65ec811de32c83dfabc617432844fefdbbc29118a9ae226ff4cbf0ccd5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page