lifecycle Build Status Codecov latest release Apache 2 license


    CfGRIB.jl is a julia interface to map GRIB files to the Unidata's Common Data Model v4 following the CF Conventions.

    This package is based on the python implementation in and closely follows the approaches of that package, but in Julia instead. Parity tests are automatically performed between the two to ensure that the data returned by the Julia version is equivalent to that from Python.

    In Python xarray has come out to be a standard way to implement named arrays, however as Julia is a much younger language no stable array interface has been adopted by the community yet, so the approach here is more flexible and allows for multiple array backends to be used.

    Low level access and decoding is performed by calling GRIB.jl which itself calls the ECMWF ecCodes library.


    The package is currently under heavy development so it has not been added to the Julia package registry yet. To install the package first clone this repository:

    git clone
    cd CfGRIB.jl

    Then start Julia, enter the pkg mode, activate the project (projects are similar to python venv's), install the GRIB.jl package (as it is also not on the registry), and then finally you can instantiate CfGRIB.jl to get the rest of the dependencies:

    activate .

    Finally exit pkg mode by pressing backspace, and use the package as usual:

    using CfGRIB