Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


Units of measure as defined by the Climate and Forecast (CF) Metadata Conventions.

βš™οΈ CI ci-locks ci-manifest ci-tests ci-wheels status
πŸ’¬ Community GH Discussions
πŸ“– Documentation Documentation Status
πŸ“ˆ Health Coverage Status
✨ Meta code style - black isort Flake8 license - bds-3-clause
πŸ“¦ Package conda-forge downloads pypi pypi - python version DOI
🧰 Repo Commits since last release contributors Latest version

Table of Contents


Units of measure as required by the Climate and Forecast (CF) metadata conventions.

Provision of a wrapper class to support Unidata/UCAR UDUNITS-2 library, and the cftime calendar functionality.

Documentation can be found at


>>> from cf_units import Unit
>>> km = Unit('kilometers')
>>> m = Unit('meters')
>>> m.convert(1500, km)

Get in Touch

Credits, Copyright and License

cf-units is developed collaboratively under the SciTools umbrella.

A full list of code contributors ("cf-units contributors") can be found at

Code is just one of many ways of positively contributing to cf-units, please see our contributing guide for more details on how you can get involved.

cf-units is released under a BSD-3 license. See LICENSE for full terms.

The Met Office has made a significant contribution to the development, maintenance and support of this library. All Met Office contributions are copyright on behalf of the British Crown.