For preparations and running the simulation needed for this tutorial click here ...
To start this tutorial please enter folder 'forward'.
First, we define the parameter and time step for the cross section then call flexpart_filter() to extract the data. The result is a fieldset with units of "kg m**-3", which we scale explicitly to "ng m**-3" units for plotting.
dIn="result_fwd/" inFile=dIn & "conc_s001.grib" #Define parameter and step par="mdc" step=48 #Get fields for all levels for a given step g=flexpart_filter(source: inFile, param: par, levType: "hl", step: step) #Scale into ng/m3 units g=g*1E12
Next, we define the contouring:
Then, we define the cross section view along this line:
xs_view = mxsectview( bottom_level : 0, top_level : 16000, line : [63.31,-25,63.31,9] )
and finally generate the plot:
plot(xs_view,g,conc_shade)
Having run the macro we will get a plot like this: