atmqty: Summary of Procedural Functions

These functions are found in modules of the same name. Thus, the theta function is in the module theta in this package. All positional inputs, unless otherwise stated, are Numeric arrays of any shape and size. Keyword inputs are shown with their default value. Output units are given in the "Description" column.

Some argument abbreviations:
  • esat: Saturation vapor pressure over water [hPa]
  • p: Pressure [hPa]
  • q: Specific humidity [kg/kg]
  • r: Mixing ratio [kg/kg]
  • RH: Relative humidity [unitless fraction]
  • T: Temperature [K]
  • z: Altitude [m]

Function Arguments Description
eice T, missing=1e+20 Calculate saturation vapor pressure over ice [hPa].
esat T, missing=1e+20 Calculate saturation vapor pressure over water [hPa].
press2alt P (or z), P0=None, T0=None, missing=1e+20 Calculate altitude from pressure (or vice versa). Keyword parameters P0 and T0 are surface pressure [hPa] and temperature [K], respectively.
theta p, T, p0=1000.0, missing=1e+20 Calculate potential temperature [K]. Keyword parameter p0 is the reference pressure [hPa].
vapor_press qty, missing=1e+20 Calculate vapor pressure [hPa]. Input qty is a dictionary of atmospheric quantities. Keys that can be used by function include: 'esat', 'p', 'q', 'r', and 'RH'. Values corresponding to those keys are Numeric arrays of those quantities.
virt_temp r, T, missing=1e+20 Calculate virtual temperature [K].


Return to atmqty Index.
Return to Johnny Lin's Python Library.

Updated: March 12, 2004 by Johnny Lin <email me>. License.