Skip to content

stalbrec/dwd4cast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

PyPI - Version Ruff

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-*

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages