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 Pixi Badge
📦 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.1.tar.gz (311.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cf_units-3.3.1-cp311-abi3-win_amd64.whl (537.5 kB view details)

Uploaded CPython 3.11+Windows x86-64

cf_units-3.3.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (737.3 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ x86-64

cf_units-3.3.1-cp311-abi3-macosx_15_0_x86_64.whl (456.2 kB view details)

Uploaded CPython 3.11+macOS 15.0+ x86-64

cf_units-3.3.1-cp311-abi3-macosx_15_0_arm64.whl (455.3 kB view details)

Uploaded CPython 3.11+macOS 15.0+ ARM64

File details

Details for the file cf_units-3.3.1.tar.gz.

File metadata

  • Download URL: cf_units-3.3.1.tar.gz
  • Upload date:
  • Size: 311.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cf_units-3.3.1.tar.gz
Algorithm Hash digest
SHA256 84339f582994ae32ca5c472075c1e603a89f6c6f5a96cc1031bb5da700a14f3a
MD5 32563661ec07d04e5ff78bfbca4b675b
BLAKE2b-256 223027509046e69457605e6eefa4ad7866fcdb6182b1a4f9b9d8404a28e3eb50

See more details on using hashes here.

File details

Details for the file cf_units-3.3.1-cp311-abi3-win_amd64.whl.

File metadata

  • Download URL: cf_units-3.3.1-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 537.5 kB
  • Tags: CPython 3.11+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cf_units-3.3.1-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 566b3de7de87967e5fcec8f06adec60bb814705ba8d61fe440a17c0ead7fec14
MD5 38513e22792bfa3ff0ffba26ab1da10f
BLAKE2b-256 2e8580742e4607f2dcd55abbe63b7a251fea4322806d3263150572606537ff97

See more details on using hashes here.

File details

Details for the file cf_units-3.3.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for cf_units-3.3.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 e10abcd4e3e8cb628bc315835cf3efec8a19d31b31bfcdfb820ce32daa0adf79
MD5 5b7060f35538aec2d81b0f4580885545
BLAKE2b-256 89f53cc05872868800d66ad1b54659449839276c447650088d500b69049a6edf

See more details on using hashes here.

File details

Details for the file cf_units-3.3.1-cp311-abi3-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for cf_units-3.3.1-cp311-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 fd893c45df1a1ac327d67884d0442edbf4cd5eb74198846dfacbbb7662fa7d2b
MD5 499d6b2ea6c133da5170444d2f21ae1e
BLAKE2b-256 793a03d6c413213d09dbc2fc6baca28595200130e669afbe616d34756bc8b7b7

See more details on using hashes here.

File details

Details for the file cf_units-3.3.1-cp311-abi3-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for cf_units-3.3.1-cp311-abi3-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 6f35616ab44607294920d712eb5edb3ce1c123e56e7cf1b3686fceb300cd2ef6
MD5 d141ab3553baeabc4d50e15283d055e0
BLAKE2b-256 2f1db3147f81febf89ea14697f48cc75474fb0cd35b113f554a0805677654caa

See more details on using hashes here.

Supported by

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