
pslhyp
Computes sea level pressure using the hypsometric equation.
Prototype
function pslhyp ( pres : numeric, z : numeric, tv : numeric ) return_val [dimsizes(pres)] : numeric
Arguments
presA multi-dimensional array or scalar value equal to the pressure in Pa. Should correspond to the lowest vertical level. Must be at least two dimensions. The rightmost two dimensions must be lat and lon.
tvA multi-dimensional array or scalar value equal to the virtual temperature in K. Must be the same size as pres.
zA multi-dimensional array or scalar value equal to the geopotential height. Must be the same size as pres.
Return value
A multi-dimensional array of the same size as pres. Double if any of the input arguments is double, float otherwise. Contains three attributes, long_name, short_name, and units. You access attributes through the @ operator.
print(return_val@long_name)
Description
Computes sea level pressure using the hypsometric equation.
See Also
Examples
Example 1
Assume the input arrays are four-dimensional with dimensions time, level, lat, lon, and the 0-index being the lowest level.
PSL = pslhyp(pres(:,0,:,:),z(:,0,:,:),tv(:,0,:,:)) ; PSL is dimensioned time, lat, lon.