Skip to main content

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

Project description


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

ci-tests ci-wheels ci-locks Documentation Status Coverage Status status
conda-forge downloads PyPI Latest version DOI
Black Flake8 isort
Licence Contributors Commits since last release

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 LGPL license with a shared copyright model. See COPYING and COPYING.LESSER 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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cf-units-3.1.1.tar.gz (188.8 kB view hashes)

Uploaded source

Built Distributions

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page