Skip to content

SciTools/cf-units

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date
Mar 12, 2024
Oct 12, 2023
Jan 11, 2023
Jan 8, 2024
Jul 6, 2022
Mar 31, 2022
Jun 18, 2021
Feb 19, 2024
Jul 12, 2022
Jun 22, 2021
Jan 11, 2023
Jul 11, 2022
Apr 24, 2023
Aug 4, 2021
Apr 21, 2023
Jan 3, 2024
Jan 29, 2024
Apr 21, 2023

Repository files navigation

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.