Python interface to map GRIB files to the Unidata's Common Data Model v4 following the CF Conventions. The high level API is designed to support a GRIB engine for xarray and it is inspired by netCDF4-python and h5netcdf. Low level access and decoding is performed via the ECMWF ecCodes library and the eccodes python package.
Features with development status Beta:
- enables the
engine='cfgrib'
option to read GRIB files with xarray, - reads most GRIB 1 and 2 files including heterogeneous ones with
cfgrib.open_datasets
, - supports all modern versions of Python 3.9, 3.8, 3.7 and PyPy3,
- the 0.9.6.x series with support for Python 2 will stay active and receive critical bugfixes,
- works wherever eccodes-python does: Linux, MacOS and Windows
- conda-forge package on all supported platforms,
- reads the data lazily and efficiently in terms of both memory usage and disk access,
- allows larger-than-memory and distributed processing via xarray and dask,
- supports translating coordinates to different data models and naming conventions,
- supports writing the index of a GRIB file to disk, to save a full-file scan on open.
https://github.com/ecmwf/cfgrib
No comments:
Post a Comment