pressure

pressure(lnsp[, levels])
pressure(lnsp, fs_levels)

Computes the pressure (in Pa) on a list of ECMWF model levels from lnsp (logarithm of surface pressure).

Parameters
  • lnsp (Fieldset) – fieldset containing an lnsp field (its ecCodes paramId must be 152!)

  • levels (number or list of numbers) – the target model level or levels

  • fs_levels (Fieldset) – fielsdet defining the target model levels

Return type

Fieldset

If only lnsp is specified the pressure is computed for the full model level range defined by the GRIB header of lnsp.

If levels is specified it defines the output model level(s). For a single level levels must be number, while for multiple levels it must be a list.

If fs_levels is specified the target levels are taken from its fields.

Missing values in lnsp are retained in the output fieldset.

Warning

This function is obsolete, use unipressure() instead.