ureg

ureg = <pint.registry.UnitRegistry object>

The default pint.UnitRegistry used throughout climopy. Includes flexible aliases for temperature, pressure, vorticity, dimensionless quantities, and units with constants, with support for nice short-form '~' formatting as follows:

none = 1
level = 1
layer = 1
sigma_level = 1
_10km = 10 * km = 10km
_100km = 100 * km = 100km
_1000km = 1000 * km = 1000km
_100hPa = 100 * hPa = 100hPa
bar = 10^5 Pa = b
inch_mercury = 3386.389 Pa = inHg = inchHg = inchesHg = in_Hg = inch_Hg = ...
potential_vorticity_unit = 10^-6 K m^2 s^-1 kg^-1 = PVU
vorticity_unit = 10^-5 s^-1 = 10^-5 s^-1 = VU
degree = π / 180 * radian = ° = deg = arcdeg = arcdegree = angular_degree
arcminute = degree / 60 = ′ = arcmin = arc_minute = angular_minute
arcsecond = arcminute / 60 = ″ = arcsec = arc_second = angular_second
degree_North = degree = °N = degree_north = degrees_North = degrees_north = ...
degree_East = degree = °E = degree_east = degrees_East = degrees_east = ...
@alias kelvin = Kelvin = K = k = degree_kelvin = degree_Kelvin = ...
@alias degree_Celsius = degree_celsius = degrees_Celsius = degrees_celsius = ...
@alias degree_Fahrenheit = degree_fahrenheit = degrees_Fahrenheit = ...
@alias meter = metre = geopotential_meter = geopotential_metre = gpm

This also registers a pint.Context manager named 'climo' for converting static energy components, their rates of change (\(s^{-1}\)), and their fluxes (\(m\,s^{-1}\)) between temperature and sensible heat (\(x \cdot c_p\)), between absolute humidity and latent heat (\(x \cdot L\)), and between geopotential height and geopotential (\(x \cdot g\)). It also supports transforming static energy terms between those normalized with respect to unit vertical pressure distance and terms normalized per unit mass per unit area (\(x \cdot g\)).