Installation

Required dependencies

Instructions

With conda

From within conda environment:

conda install -c yt87 pywgrib2_xr

From the source

The best way to proceed is to install all required dependencies with conda:

conda create -n test python=3.8 cython gcc_linux-64 numpy
conda activate test
conda install dask python-blosc wurlitzer xarray
conda install pytest dill netcdf4 zarr      # to run tests
conda install -c yt87 libwgrib2

Then, from the base of the source directory:

python setup.py develop

The conda compiler will find libwgrib2 and its header files. Native gcc works as well, but one has to set library_dir and include_dir in setup.cfg.

pywgrib2_xr comes with the test suite. To run the tests, execute:

pytest tests