geocat.comp.meteorology.dpres_plev#
- geocat.comp.meteorology.dpres_plev(pressure_lev, surface_pressure, pressure_top=None)#
Attention
This method is a wrapper for
delta_pressureCalculates the pressure layer thickness, i.e. the change in pressure
(delta pressure), for each layer in a specified constant pressure level coordinate system and accounting for specified surface pressure(s).
Calculated as described by Simmons & Burridge (1981) in equation (3.1):
\[\Delta p = p_{k+1/2} - p_{k-1/2}\]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.pressure_top (
float, optional) – A scalar specifying the top of the column. Should be <= min(pressure_lev) and have the same units aspressure_lev. If left as None, min(pressure_lev) will be used.
- Returns:
delta_pressure (
numpy.ndarray,xarray.DataArray) – The pressure layer thickness array. Shares units withpressure_lev. Ifsurface_pressureis scalar, shares dimensions withpressure_level. Ifsurface_pressureis 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