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)
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.
Example
# to read parameter mdc (mass density concentration) for level 5000 m
#
for all the timesteps
and ageclasses
g=mvl_flexpart_title("my_flexpart_output.grib","mdc",5000,-1,-1)