Installation¶
Required dependencies¶
- Required
Python (3.7 or later)
mypy_extensions (only for python-3.7)
- Build
gfortran_linux-64 from conda. Recommended when building in conda environment.
- Documentation
Instructions¶
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