pslhor
Computes sea level pressure using the ECMWF formulation and Trenberth's horizontal correction.
Prototype
function pslhor ( z : numeric, t : numeric, phis [*][*] : numeric, ps : numeric, pres : numeric, lats : numeric ) return_val : numeric
Arguments
zA multi-dimensional array equal to the geopotential height. Must be at least three dimensions. The rightmost three dimensions must be level, lat and lon. The level dimension must be ordered bottom-to-top.
tA multi-dimensional array equal to the temperature in K. Must be the same size as z.
phisA two-dimensional array equal to the surface geopotential in m^2/s^2. The rightmost two dimensions must be lat and lon.
presA multi-dimensional array or scalar value equal to the pressure in Pa. Must be the same size as z.
psA multi-dimensional array equal to the surface pressure in Pa. The rightmost three dimensions must be the same size as z.
latsA one-dimensional array equal to latitudes.
Return value
A multi-dimensional array of the same size as ps. 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 ECMWF formulation and Trenberth's horizontal correction.
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 = pslhor(z,t,phis,ps,pres,lat) ; PSL is dimensioned time, lat, lon