atmqty
: Summary of AtmQty Object Methods
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], andlev
[units given bylev_type
]. Setlev_type
to either'pressure'
or'isentropic'
, and setmissing
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.
All positional input arguments, unless otherwise stated, are
Numeric
arrays. Keyword inputs are
shown with their default value.
Method Arguments Function alt P_surf=None, T_surf=None Calculate altitude, assuming temperature-pressure have the relationship as described by the 1976 U.S. Standard Atmosphere, and add result to quantities dictionary. 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: March 12, 2004 by Johnny Lin <email me>. License.