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.

Build Status Coverage Status pre-commit.ci status , conda-forge downloads PyPI Latest version DOI , Black Flake8 isort , Licence Contributors Commits since last release

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 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.0.tar.gz (189.4 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.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (490.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

cf_units-3.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (495.0 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

cf_units-3.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (505.8 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

Details for the file cf-units-3.1.0.tar.gz.

File metadata

  • Download URL: cf-units-3.1.0.tar.gz
  • Upload date:
  • Size: 189.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for cf-units-3.1.0.tar.gz
Algorithm Hash digest
SHA256 f68d2235e0f29939d9fa7d221cc92cb445c116fd34f1f84f9bc7ebdae267300d
MD5 f5925b097aac0fbb5058338e993a0fd2
BLAKE2b-256 755cea680a816a5a332c4efaee229e62e8eff43a52bdb2b97ab81fca1bcc07c9

See more details on using hashes here.

File details

Details for the file cf_units-3.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cf_units-3.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1382e09b189650d5785b67052865ada7cc382bfce906e01f5f676f2209de60ff
MD5 f1418a46d272988abd90989f3863cc47
BLAKE2b-256 42405a97155549cd4310a01d2540e345bdb5f38484287858db568d9a8b85ee8e

See more details on using hashes here.

File details

Details for the file cf_units-3.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cf_units-3.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e8e9d15d91c3b697b4ce537537f8622e451a6935a412697b86da5a8d023975c3
MD5 96d66ad52765d46c1a9942a67a9de8d9
BLAKE2b-256 9caf6cea0cdbed66f59b499dca86f4409dee85c30b25fe7afd0321fec054ecd1

See more details on using hashes here.

File details

Details for the file cf_units-3.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cf_units-3.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0cd066b38901bcf2b4cd8344ff39e0e48a61b6397433e025293f1aaf94cdb5ab
MD5 56b9721d6e2e43f03a3a6cd4941d5676
BLAKE2b-256 825947f9673f5fd157361bebe9b0119172ac4e7372ee48476ba679b4c1f8cdb1

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