Description
Metview Macro Library function. Extract fields on height levels from FLEXPART output GRIB files.
Usage
fieldset mvl_flexpart_read_hl(infile: string, param: string, level: number, step: number, ageclass: number)
filter(...)
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 Parameter infile
is a FLEXPART output GRIB file; param
is the shortname of the parameter to extract; level
is the height level (m) to extract; step
is forecast step to extract; ageclass
is the FLEXPART ageclass to extract. If level
is set to -1 all the levels are extracted, if step
is set to -1 all the steps are extracted and if ageclass
is set to -1 all the ageclasses are extracted.
levType
The type of level to extract. The possible values are: "hl" and "sfc". The default is "hl".
level
The level to extract.
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 read parameter mdc (mass density concentration) for level 5000 m
#
,
for all the timesteps, releases
and ageclasses
g=
mvl_flexpart_
titlefilter(source: "my_flexpart_output.grib",param: "mdc",
5000,-1,-1level: 5000)