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
|
Inputs/outputs: scalars, numpy arrays, xarray DataArrays or pint Quantities, in SI units |
|
Standard Atmosphere |
Functions
Calculate the temperature from vapor pressure. |
|
Hyposometric equation solver. |
|
Ideal gas law equation solver. |
|
Calculate the temperature from potential temperature. |
|
Calculate the mixing ratio. |
|
Calculate the potential temperature. |
|
Calculate the saturation vapor pressure. |
|
Calculate the saturation vapor pressure over ice. |
|
Calculate the virtual temperature. |