atmqty: Summary of AtmQty Object Methods

Object Mangement

All positional input arguments, unless otherwise stated, are Numeric arrays. Keyword inputs are shown with their default value.

Method Arguments Function
__init__ lat, lon, lev, lev_type='pressure', missing=None Initialize the object for a grid given by lat [deg], lon [deg], and lev [units given by lev_type]. Set lev_type to either 'pressure' or 'isentropic', and set missing to the missing value value. All arguments in __init__ are set to an object attribute of the same name.
add_qty *quantities Add/replace variable(s) to quantities dictionary. *quantities is any number of dictionaries where the key:value pair corresponds to an atmospheric quantity name and array.
del_qty *names Delete variable(s) from quantities dictionary. *names is any number of string scalars of the key name(s) of the atmospheric quantity(ies) to remove.
get_qty name Get variable from quantities dictionary. name is the string scalar key name of the atmospheric quantity to obtain.


Calculations

All positional input arguments, unless otherwise stated, are Numeric arrays. Keyword inputs are shown with their default value.

Method Arguments Function
eice None Calculate saturation vapor pressure over ice and add result to quantities dictionary.
esat None Calculate saturation vapor pressure over water and add result to quantities dictionary.
mix_ratio None Calculate mixing ratio and add result to quantities dictionary.
theta p0=1000.0 Calculate potential temperature and add result to quantities dictionary. Keyword parameter p0 is the reference pressure [hPa].
vapor_press None Calculate vapor pressure and add result to quantities dictionary.
virt_temp None Calculate virtual temperature and add result to quantities dictionary.


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

Updated: November 20, 2003 by Johnny Lin <email me>. License.