Installation

Installing from PyPI

Minimal installation

Install earthkit-data with python3 (>= 3.9) and pip as follows:

python3 -m pip install earthkit-data

The package installed like this is minimal supporting only GRIB and NetCDF data and cannot access remote services other than URLs. If you want to use more data types or remote services you need to install the optional Python packages.

Installing all the optional packages

You can install earthkit-data with all the optional packages (with the exception of the “geotiff” and “zarr” dependencies, see below) in one go by using:

python3 -m pip install earthkit-data[all]

Please note in zsh you need to use quotes around the square brackets:

python3 -m pip install "earthkit-data[all]"

Installing individual optional packages

Alternatively, you can install the following components:

  • cds: provides access to the cds and ads sources

  • covjsonkit: provides access to CoverageJSON data served by the polytope source

  • ecmwf-opendata: provides access to the ecmwf-open-data

  • fdb: provides access to the fdb source

  • geo: enables to use the Field.points_unrotated() method

  • geotiff: adds GeoTIFF support (new in version 0.11.0). Please note that this is not included in the [all] option and has to be invoked separately.

  • geopandas: adds GeoJSON/GeoPandas support

  • gribjump: provides access to the gribjump source

  • iris: provides access to UK Met Office PP files (new in version 0.19.0).

  • mars: provides access to the mars source

  • odb: provides full support for the ODB data type

  • projection: adds projection support

  • polytope: provides access to the polytope source

  • s3: provides access to non-public s3 buckets (new in version 0.11.0)

  • wekeo: provides access to the wekeo and wekeocds sources

  • zarr: provides access to the zarr source (new in version 0.15.0). Please note that this is not included in the [all] option and has to be invoked separately.

E.g. to add mars support you can use:

python3 -m pip install earthkit-data[mars]

List of optional dependencies can also be specified :

python3 -m pip install earthkit-data[cds,mars]

Installing with conda

Install earthkit-data via conda with:

conda install earthkit-data -c conda-forge

This will bring in some necessary binary dependencies for you.

Installing the binary dependencies

FDB

For FDB (Fields DataBase) access FDB5 must be installed on the system. See the FDB documentation for details.

GribJump

For FDB access with GribJump, both FDB5 and GribJump must be installed on the system. See the GribJump project for details.