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 | |
💬 Community | |
📖 Documentation | |
📈 Health | |
✨ Meta | |
📦 Package | |
🧰 Repo | |
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
- Questions, ideas, general discussion or announcements of related projects: use the Discussions space.
- Report bugs: submit a GitHub issue.
- Suggest features: see our contributing guide.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file cf_units-3.3.0.tar.gz
.
File metadata
- Download URL: cf_units-3.3.0.tar.gz
- Upload date:
- Size: 320.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2327da492f30cf018a3f1b5950192ce9bb3332e50b1c7ac53f7543de7fa61fdb |
|
MD5 | 3a17a0d6912ad25575676c4f0df9d57e |
|
BLAKE2b-256 | b6d93e4014a228c23a4e10d106eead518d1708f9985f80e5bd3aa66d8268bf22 |
Provenance
File details
Details for the file cf_units-3.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: cf_units-3.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 735.1 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e26ac5412c828edb33ae510470c74213e1bd2280559e078b779799c44d33349 |
|
MD5 | ab4b87367e38433180244d5b9b060c1e |
|
BLAKE2b-256 | 4887e4a2158ad7756892bf2addb4b70783dc67907dde1632cd50120895afda3f |
Provenance
File details
Details for the file cf_units-3.3.0-cp313-cp313-macosx_14_0_arm64.whl
.
File metadata
- Download URL: cf_units-3.3.0-cp313-cp313-macosx_14_0_arm64.whl
- Upload date:
- Size: 450.5 kB
- Tags: CPython 3.13, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e63f2dd523658941a6da0490349a831d926ab49ec90278a8759979063dd3acf7 |
|
MD5 | 6dfa76393e24dced88030fcace8e16c3 |
|
BLAKE2b-256 | 79880f0e555be1ca5eb8ed1f2fed932cc703e24ee0c7cc4198866c6d592a2509 |
Provenance
File details
Details for the file cf_units-3.3.0-cp313-cp313-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: cf_units-3.3.0-cp313-cp313-macosx_13_0_x86_64.whl
- Upload date:
- Size: 458.6 kB
- Tags: CPython 3.13, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67d15944ef079940affaf4c92d14d83554fd0c43af4ae99607137beb43276c71 |
|
MD5 | 0c30b3b3e88e8f032f2667541f6699dd |
|
BLAKE2b-256 | f659315cf44dd240cf97d364fe7eb7587df35c7f9ed9da83a9ae85cd49121a1f |
Provenance
File details
Details for the file cf_units-3.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: cf_units-3.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 740.0 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 157d354884ba3c66f29ba95411e5f88de902c1d2cda4842f93829a58dbebb9f3 |
|
MD5 | 15524eaae3babaca259c66f7067249b1 |
|
BLAKE2b-256 | f01b396f255539ed57bb9dad5e4abe46323ef3863b5d60655b961fb76729f788 |
Provenance
File details
Details for the file cf_units-3.3.0-cp312-cp312-macosx_14_0_arm64.whl
.
File metadata
- Download URL: cf_units-3.3.0-cp312-cp312-macosx_14_0_arm64.whl
- Upload date:
- Size: 451.3 kB
- Tags: CPython 3.12, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d0fe30bfb8b5edaa7abe073a66bada75c8f94b68c1ff338e389ac0c8256dc3f |
|
MD5 | abaabe0c86e63e28d0a194744070709b |
|
BLAKE2b-256 | c45d1f1aac4078aaed59b547c9bd2b1143c4518fcd8d0a7111d8f4858925f490 |
Provenance
File details
Details for the file cf_units-3.3.0-cp312-cp312-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: cf_units-3.3.0-cp312-cp312-macosx_13_0_x86_64.whl
- Upload date:
- Size: 459.5 kB
- Tags: CPython 3.12, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d9b9cdeca0365001f22bec427dd41102fd8c0afce8a9b7456b958549987c151 |
|
MD5 | f4f90db40aae0293d5ee53371009ef70 |
|
BLAKE2b-256 | 717e5e6868e8ffc2017f8857c5d3f98b90ab198e0b7df9e671036984759f55d7 |
Provenance
File details
Details for the file cf_units-3.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: cf_units-3.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 736.2 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cce0c048d2c1857527f36ce233fecf4fc81d0f1715399e06c295f7b64492f42 |
|
MD5 | 296562bebb557ccbf71c30eb450821da |
|
BLAKE2b-256 | 2713f10c7ae229642c093118b395f33578d39abfcab56e07bf6b83eb98953689 |
Provenance
File details
Details for the file cf_units-3.3.0-cp311-cp311-macosx_14_0_arm64.whl
.
File metadata
- Download URL: cf_units-3.3.0-cp311-cp311-macosx_14_0_arm64.whl
- Upload date:
- Size: 451.1 kB
- Tags: CPython 3.11, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9f1dd41a1d61a74d627037775806dcb9e70a7cf4b1c2f77aecfafa90419e492 |
|
MD5 | 9c71798cc9419590b18a010cee1a36d5 |
|
BLAKE2b-256 | 4b9e14660ef9b5aadb0bd728b2997dd44e23b49a935d01fac6b374d31f70c59f |
Provenance
File details
Details for the file cf_units-3.3.0-cp311-cp311-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: cf_units-3.3.0-cp311-cp311-macosx_13_0_x86_64.whl
- Upload date:
- Size: 458.9 kB
- Tags: CPython 3.11, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af65fcf34a23b2ac3e822439703f00f1f9c7ecceadfd7de10cee83be083ba0f2 |
|
MD5 | ec8c1cf737c522b74bef5304110764f5 |
|
BLAKE2b-256 | a090401c9ee0818a9cbc802dfde1887d250887743b4d63d08062580e8ab2d040 |
Provenance
File details
Details for the file cf_units-3.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: cf_units-3.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 709.4 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5cd9a413fce509081fbcf39cc850fea136030063aaf09b382100807ca5bc189 |
|
MD5 | 89bddefc0d52b8f9bd189cb4812ecaab |
|
BLAKE2b-256 | 0defc3587e6528856d5107d428191bafe5398dec6ccde405b606c44f6e7477ac |
Provenance
File details
Details for the file cf_units-3.3.0-cp310-cp310-macosx_14_0_arm64.whl
.
File metadata
- Download URL: cf_units-3.3.0-cp310-cp310-macosx_14_0_arm64.whl
- Upload date:
- Size: 450.5 kB
- Tags: CPython 3.10, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53d1f2819f7fb8e8e85edc032f9481143c1e74eee4d13e2da1cff998b83e9360 |
|
MD5 | 58b0c569750700fefb2db2b6dc03b807 |
|
BLAKE2b-256 | aa31982bc2e2a551c900715f95431012621983457250b2fb2ae2cc367484a1eb |
Provenance
File details
Details for the file cf_units-3.3.0-cp310-cp310-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: cf_units-3.3.0-cp310-cp310-macosx_13_0_x86_64.whl
- Upload date:
- Size: 458.1 kB
- Tags: CPython 3.10, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5eee5c0e5f6a2890673d785e7eea295ce4a41d347ecc123731521f683258d69 |
|
MD5 | 83d4d8af8c4af964ee144d3d548522f7 |
|
BLAKE2b-256 | d4eded522173b141cc54ab43c96e310425a3dea37c4a151e69d4d66b3b41cff6 |