Versions Compared

Key

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

Description

Metview Macro Library function. Generates an MText object to provide title for plotting FLEXPART gridded output GRIB fields (GRIB).

Usage

mtext mvl_flexpart_title(g:fieldset, fontsize: number, [units])

This function 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.

fontsize

Is Parameter g  is a FLEXPART fieldset; fontsize is the character height in cm; units is the units string. If units it is -1 the units is taken form . The default is 0.3 cm.

units

The units string to display. If it is set to "header" the units are taken from the GRIB header. If the units argument is omitted or contains The default is an empty string no units is added to the title.

Example

# if g is a fieldset containing FLEXPART output

title=mvlflexpart_flexpartbuild_title(data: g,fontsize: 0.3,units: "ng m**-3")

plot(g,title)