geocat.comp.meteorology._delta_pressure1D(pressure_lev, surface_pressure)#

Helper function for delta_pressure. Calculates the pressure layer thickness (delta pressure) of a one-dimensional pressure level array.

Returns an array of length matching pressure_lev.

  • pressure_lev (numpy.ndarray) – The pressure level array. May be in ascending or descending order. Must have the same units as surface_pressure.

  • surface_pressure (float) – The scalar surface pressure. Must have the same units as pressure_lev.


delta_pressure (numpy.ndarray) – The pressure layer thickness array. Shares dimensions and units of pressure_lev.