Metview's documentation is now on readthedocs!

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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. Ageclass indexing starts at 1 and -1 means all ageclasses. If the ageclass argument is omitted ageclass=1 is taken automatically.

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)


  • No labels