lair.meteorology#

Meteorological calculations.

Inspired by AOS 330 at UW-Madison with Grant Petty.

Note

It would be nice to be able to wrap these funtions with pint - however, because I input both numpy and xarray arrays, this will not work. Waiting for xarray-contrib/pint-xarray#143 For now, we will assume all inputs are in SI units.

Module Attributes

Numeric

Inputs/outputs: scalars, numpy arrays, xarray DataArrays or pint Quantities, in SI units

standard

Standard Atmosphere

Functions

T_from_e

Calculate the temperature from vapor pressure.

hypsometric

Hyposometric equation solver.

ideal_gas_law

Ideal gas law equation solver.

inv_poisson

Calculate the temperature from potential temperature.

mixing_ratio

Calculate the mixing ratio.

poisson

Calculate the potential temperature.

sat_vapor_pres

Calculate the saturation vapor pressure.

sat_vapor_pres_ice

Calculate the saturation vapor pressure over ice.

virt_T

Calculate the virtual temperature.