pvtend.ddp
- pvtend.ddp(field: ndarray, plevs_pa: ndarray) ndarray[source]
Pressure derivative ∂f/∂p for non-uniform levels.
Uses a three-point Lagrange stencil in the interior (second-order accurate on non-uniform grids, matching LOG20
d_dp.m) and one-sided differences at the top/bottom pressure boundaries.- Parameters:
field – Array with pressure as axis 0, shape
(nlev, ...).plevs_pa – Pressure levels in Pa, shape
(nlev,).
- Returns:
Same shape as field, in
[field_units / Pa].