Versions Compared

Key

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

...

The "spaghetti" will be generated by plotting each perturbed forecasts member as a separate layer into the same map. To achieve this goal we need to write a loop like this:

Code Block
for numberi=1 to 50 do 

    ...your code will go here ...

end for

...

Code Block
f=read(data: g,
	type: "pf", 
	number: numberi
 )	

By default, if no title definition is specified, Metview adds a title line for each field in the plot. Since we are about to plot 50 fields into the same map this would result in 50 titles in the plot! To avoid having too many titles we use a custom Text Plotting icon:

...

Code Block
plot(your_view,f,cont_spag,title) 

Now visualise your Macro (it will take half a minute or so) and animate through the steps to see how the spaghetti is spreading out over time.

...