Skip to main content

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

Project description

cf-units

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

⚙️ CI ci-locks ci-manifest ci-tests ci-wheels pre-commit.ci 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

Overview

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 https://cf-units.readthedocs.io/en/latest/.

Example

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

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 https://github.com/SciTools/cf-units/graphs/contributors.

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.

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.3.0.tar.gz (320.0 kB view hashes)

Uploaded Source

Built Distributions

cf_units-3.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (735.1 kB view hashes)

Uploaded CPython 3.13 manylinux: glibc 2.17+ x86-64

cf_units-3.3.0-cp313-cp313-macosx_14_0_arm64.whl (450.5 kB view hashes)

Uploaded CPython 3.13 macOS 14.0+ ARM64

cf_units-3.3.0-cp313-cp313-macosx_13_0_x86_64.whl (458.6 kB view hashes)

Uploaded CPython 3.13 macOS 13.0+ x86-64

cf_units-3.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (740.0 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

cf_units-3.3.0-cp312-cp312-macosx_14_0_arm64.whl (451.3 kB view hashes)

Uploaded CPython 3.12 macOS 14.0+ ARM64

cf_units-3.3.0-cp312-cp312-macosx_13_0_x86_64.whl (459.5 kB view hashes)

Uploaded CPython 3.12 macOS 13.0+ x86-64

cf_units-3.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (736.2 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

cf_units-3.3.0-cp311-cp311-macosx_14_0_arm64.whl (451.1 kB view hashes)

Uploaded CPython 3.11 macOS 14.0+ ARM64

cf_units-3.3.0-cp311-cp311-macosx_13_0_x86_64.whl (458.9 kB view hashes)

Uploaded CPython 3.11 macOS 13.0+ x86-64

cf_units-3.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (709.4 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

cf_units-3.3.0-cp310-cp310-macosx_14_0_arm64.whl (450.5 kB view hashes)

Uploaded CPython 3.10 macOS 14.0+ ARM64

cf_units-3.3.0-cp310-cp310-macosx_13_0_x86_64.whl (458.1 kB view hashes)

Uploaded CPython 3.10 macOS 13.0+ x86-64

Supported by

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