Skip to content

ecmwf/earthkit-transforms

Repository files navigation

ECMWF Software EnginE Maturity Level Code Coverage Licence Latest Release Documentation Status

Quick StartInstallationDocumentation

Important

This software is Graduated and subject to ECMWF's guidelines on Software Maturity.

earthkit-transforms is a library of software tools to support people working with climate and meteorology data.

earthkit-transforms is made up of sub-modules which contains methods for transforming data in specific domains. For example, the temporal module contains methods for aggregation and statistics analysis accross time dimensions/coordinates.

It has been designed following the philosphy of earthkit, hence the methods should be interoperable with any data object understood by earthkit-data.

Installation

pip install earthkit-transforms

Quick Start

import earthkit.transforms as ekt

daily_mean = ekt.temporal.daily_mean(MY_DATA)

Detailed documentation

Please refer the earthkit-transforms readthedocs page for more detailed documentation, example notebooks and the API reference guide.

Workflow for developers/contributors

For best experience create a new environment with latest stable version of Python. The Makefile provides commands for creating a development environment with all dependencies installed in editable mode, plus pre-commit hooks. Choose the option that matches your preferred tooling:

Using pip + venv:

make clean-pip-env
. .venv/bin/activate

Using uv:

make clean-uv-env
. .venv/bin/activate

Using conda:

make clean-conda-env
conda activate ./.conda

Once your environment is active, common development tasks are also available via the Makefile:

make qa            # run pre-commit checks on all files
make unit-tests    # run the test suite with coverage
make type-check    # run mypy type checking
make docs-build    # build the documentation

Licence

Copyright 2026, European Centre for Medium Range Weather Forecasts.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

In applying this licence, ECMWF does not waive the privileges and immunities
granted to it by virtue of its status as an intergovernmental organisation
nor does it submit to any jurisdiction.

About

A library of software tools to support people working with climate and meteorology data

Topics

Resources

License

Stars

9 stars

Watchers

12 watching

Forks

Contributors