Versions Compared

Key

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

...

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:

Image RemovedImage Added

Generating the plot

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

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.

Code Block
languagepy
dIn="result_fwd_conc/"
inFile=dIn  & "conc_s001.grib"
lev=8000
par="feflux"
 
#Read fields on the given height level
g=mvl_flexpart_read_hl(inFile,par,lev,-1,1)

...