Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Confirmed.

Description

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

Usage

fieldset flexpart_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 of the parameter to extract.

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=flexpart_filter(source: "my_flexpart_output.grib",param: "mdc",level: 5000)

Function : mvl_flexpart_read_hl

#

# Syntax : fieldset mvl_flexpart_read_hl (inFile: 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

# param - the shortName of the parameter to extract

# level - the height level (m) to extract. -1 means all levels.

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

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

#

#

# Return Value : mtext

#

# Dependencies : none

#

...