Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Metview Macro Library function. Extract fields on height levels from FLEXPART output GRIB files.

Usage

Function : mvl_flexpart_read_hl

#

# Syntax : fieldset mvl_flexpart_read_hl(inFileinfile: string, # param: string, level: number, # step: number, ageclass: number)

#

# Category : FLEXPART

#

# OneLineDesc : Extract fields on height levels from FLEXPART output GRIB files

#

# Description :

#

# Parameters : file - the FLEXPART ouput GRIB file

...

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

...

# step - the forecast step to extract. -1 means all steps.

# ageclass - the ageclass to extract. -1 mean all ageclasses.

#

#

# Return Value : mtext

#

# Dependencies : none

#

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)

...