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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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