NCL Home > Documentation > Functions > Meteorology

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

z

A 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.

t

A multi-dimensional array equal to the temperature in K. Must be the same size as z.

phis

A two-dimensional array equal to the surface geopotential in m^2/s^2. The rightmost two dimensions must be lat and lon.

pres

A multi-dimensional array or scalar value equal to the pressure in Pa. Must be the same size as z.

ps

A multi-dimensional array equal to the surface pressure in Pa. The rightmost three dimensions must be the same size as z.

lats

A 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

pslec, pslhyp

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