| |
- esat(T_in, missing=1e+20)
- Calculate saturation vapor pressure over liquid water.
Method Arguments:
* T_in: Temperature [K]. Numeric floating point array of any
numer of dimensions and size. Required.
* missing: If T_in has missing values, this is the missing
value value. Floating point scalar. Default is 1e+20.
Output:
* Saturation vapor pressure over liquid water [hPa]. Numeric
array of same dimensions and size as T_in. If there are any
missing values in output, those values are set to the value
in argument missing from the input. If there are missing
values in the output due to math errors and missing is set
to None, output will fill those missing values with the MA
default value of 1e+20.
Reference:
* Emanuel, K. A. (1994): Atmospheric Convection. New York, NY:
Oxford University Press, 580 pp.
Example without missing values:
>>> import esat
>>> import Numeric as N
>>> T = N.array([273.1, 280.2, 278.4])
>>> a = esat.esat(T)
>>> ['%.7f' % a[i] for i in range(len(a))]
['6.0856797', '10.0471928', '8.8720723']
Example with missing values:
>>> T = N.array([283.9, 290.2, 1e+20, 274.7])
>>> a = esat.esat(T, missing=1e+20)
>>> ['%.8g' % a[i] for i in range(len(a))]
['12.902249', '19.428484', '1e+20', '6.8309454']
|