
NCL Home >
Documentation >
Functions >
CESM
dpres_plevel_Wrap
Calculates the pressure layer thicknesses of a constant pressure level coordinate system.
Prototype
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
Arguments
plevA one dimensional array containing the constant pressure levels. May be in ascending or descending order. Must have the same units as psfc.
psfcA 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.
ptopA scalar specifying the top of the column. Must have the same units as plev.
ioptSet to zero. Currently not used.
Description
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.