thickness

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

Computes the pressure thickness (in Pa) of 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 thickness is computed for all the model levels 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 unithickness() instead.