Versions Compared

Key

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

...

Info

To plot a particular parameter and level we need to filter the desired fields from the resulting FLEXPART output GRIB file. Unfortunately, Metview's Grib Filter icon cannot handle these files (partly due to the local GRIB definition they use) so we need to use other means to cope with this task. For this reason and also to make FLEXPART output handling easier a set of Metview Macro Library Functions were developed. We will heavily use these functions in the example below.

...

Before seeing the macro code to generate the plot we inspect the file itself we want to plot. Double-click on the 'flux_s001.grib'  GRIB icon' in folder 'result_fw_conc' to start up the Grib Examiner. We can see that our GRIB file contains various flux fields. We can find out further details about the parameters by setting the Dump mode to Namespace and Namespace to Parameter:

...

The macro to visualise the flux fields on a given level is 'plot_flux.mv'. and now we will inspect it.

First, In the macro first we define the level (8000 m) and the parameter ("feflux" = eastward flux) we want to plot. Then we call the Macro Library Function mvl_flexpart_read_hl() to extract the data.

...