flexpart_total_column

flexpart_total_column(**kwargs)

Computes the sum/vertical integral of fields in a FLEXPART output GRIB file.

Parameters
  • source (Fieldset) – the path to the FLEXPART output GRIB file

  • data – the Fieldset containing the FLEXPART output GRIB data. It takes precedence over source.

  • param (str) – the ecCodes shortName of the parameter. If param is “mdc” (mass density concentration) the column integrated mass is computed. Otherwise the fields are simply added up for the specified level range.

  • top_level – the top height level (inclusive) for the computations. When not specified the integration goes up to the highest available level.

  • bottom_level – the bottom height level (inclusive) for the computations. When not specified the integration starts from the lowest available level.

  • step (str) – the forecast step to extract

  • release (number) – the release to extract. Release indexing starts at 1.

  • ageclass (number) – the ageclass to extract. Ageclass indexing starts at 1.

Return type

Fieldset

Example
import metview as mv

# to compute the total column integrated mass for all
# the steps, releases and ageclasses
g = mv.flexpart_total_column(source="my_flexpart_output.grib")