Units (metpy.units)#

Module to provide unit support.

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

See Also: Working with Units.

metpy.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:
class:

pint.UnitRegistry()

Functions

setup_registry(reg)

Set up a given registry with MetPy's default tweaks and settings.

pandas_dataframe_to_unit_arrays(df[, ...])

Attach units to data in pandas dataframes and return quantities.