units

Module to provide unit support.

This makes use of the pint library and sets up the default settings for good temperature support.

pylook.units.units

The unit registry used throughout the package. Any use of units in MetPy should import this registry and use it to grab units.

Type

pint.UnitRegistry

Exceptions

DimensionalityError(units1, units2[, dim1, …])

Raised when trying to convert between incompatible units.

UndefinedUnitError(*unit_names)

Raised when the units are not defined in the unit registry.