geocat.comp.meteorology.dpres_plev#
- geocat.comp.meteorology.dpres_plev(pressure_lev, surface_pressure)#
Attention
This method is a wrapper for
delta_pressure
Calculates the pressure layer thickness (delta pressure) of a constant pressure level coordinate system.
Returns an array of shape matching (
surface_pressure
,pressure_lev
).- Parameters:
pressure_lev (
numpy.ndarray
,xarray.DataArray
) – The pressure level array. May be in ascending or descending order. Must have the same units assurface_pressure
.surface_pressure (
int
,float
,numpy.ndarray
,xarray.DataArray
) – The scalar or N-dimensional surface pressure array. Must have the same units aspressure_lev
.
- Returns:
delta_pressure (
numpy.ndarray
,xarray.DataArray
) – The pressure layer thickness array. Shares units withpressure_lev
. Ifsurface_pressure
is scalar, shares dimensions withpressure_level
. Ifsurface_pressure
is an array than the returned array will have an additional dimension [e.g. (lat, lon, time) becomes (lat, lon, time, lev)]. Will always be the same type assurface_pressure
.
See also
Related NCL Functions: dpres_plev