Skip to content

SciTools/mo_pack

Repository files navigation

mo_pack

⚙️ CI pre-commit.ci status ci-tests
✨ Meta NEP29 license - bds-3-clause
📦 Package conda-forge
🧰 Repo commits-since contributors release

Provides Python bindings to the C library libmo_unpack which contains packing methods used to encode and decode the data payloads of Met Office UM Post-Processing and Fields files.

Supports both RLE and WGDOS encoding methods.

Developer Installation

First, create a conda environment with the required mo_pack package dependencies:

conda env create --file requirements/mo_pack.yml

Then activate the conda environment:

conda activate mo-pack-dev

Now, perform a developer (editable) installation of mo_pack:

pip install --no-deps --editable .

Before testing mo_pack to ensure that the installation is successful, build the cython extension:

python setup.py clean_cython
python setup.py build_ext --inplace

Now run the mo_pack tests:

pytest

License

mo_pack is distributed under the terms of the BSD-3-Clause license.