NCL Home > Documentation > Functions > CESM


Calculates the pressure layer thicknesses of a constant pressure level coordinate system.


load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"  ; This library is automatically loaded
                                                             ; from NCL V6.2.0 onward.
                                                             ; No need for user to explicitly load.

	function dpres_plevel_Wrap (
		plev [*] : numeric,  
		psfc     : numeric,  
		ptop [1] : numeric,  
		iopt     : integer   

	return_val  :  numeric



A one dimensional array containing the constant pressure levels. May be in ascending or descending order. Must have the same units as psfc.


A scalar or an array of up to three dimensions containing the surface pressure data in Pa or hPa (mb). The rightmost dimensions must be latitude and longitude. Must have the same units as plev.


A scalar specifying the top of the column. Must have the same units as plev.


Set to zero. Currently not used.


This function is identical to dpres_plevel, except the return value will have metadata added based on metadata attached to plev and psfc. See the dpres_plevel page for full documentation and examples.