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.

Files for cf-units, version 3.0.1.post0
Filename, size File type Python version Upload date Hashes
Filename, size cf_units-3.0.1.post0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (474.5 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size cf_units-3.0.1.post0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (490.7 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size cf_units-3.0.1.post0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (491.1 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size cf-units-3.0.1.post0.tar.gz (162.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page