Metview's documentation is now on readthedocs!

Description

Metview Macro Library function. Computes the sum/vertical integral of fields in a FLEXPART output GRIB file.

Usage

fieldset flexpart_total_column(...)

This function uses a set of named parameters as argument.

Parameters

source

The FLEXPART output GRIB file.

data

The FLEXPART output GRIB as a fieldset. It takes precedence over source

param

The shortname of the GRIB 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. Optional.

bottom_level

The bottom height level (inclusive) for the computations. Optional.

step

The forecast step to extract.

release

The release to extract. Release indexing starts at 1.

ageclass

The ageclass to extract. Ageclass indexing starts at 1.


Example

# to compute the total column integrated mass for all the steps, releases and ageclasses

g=flexpart_total_column(source: "my_flexpart_output.grib")