Versions Compared

Key

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

...

The storm track in its current form does not look great so you need to customise it with a Graph Plotting icon by setting the

  • the track line to black and thick
  • the track points to be white filled circles (their marker index is 15) with red outline.

...

To finalise the track plot you need to add the date/time labels to the track points. This can be done with a Symbol Plotting icon by specifying the list of labels you want to plot into the map. Since it would require too much editing you will learn a better (programmatic) way of doing it by using Metview Macro.

Create new Macro and edit it. First, read the CSV file in with the Table Reader (see its documentation here):

Code Block
tbl = read_table(
	table_delimiter	:	" ",
	table_combine_delimiters	:	"on",
	table_header_row	:	0,
	table_filename	:	"sandy_track.txt"
	)

...

Code Block
labels=nil

for i=1 to count(val_date) do
	labels = labels & ["   " & substring(string(val_date[i]),7,8) & "/" & val_time[i] ]
end for

Finally, define a Symbol Plotting visual definition and return it.

Info

Symbol Plotting in text mode is used to plot string values to the positions of the dataset it is applied to. The rule is that the first string in the list defined by symbol_text_list goes to the first data position, the second one to the second position and so on.

...

By returning the visual definition your Macro behaves as if it were a real Symbol Plotting icon. So save the Macro and drag it into the plot to see the labels appearing along the track.

...

Having finished the body of the loop the last step is to define an Input Visualiser and return it. The code you need to add is like this:

...

...

Customise the graph with a Graph Plotting icon by setting the

  • the line thicker
  • the points to be blue filled circles (their marker index is 15) with a reasonable size.

...

Define a custom title to the plot with a new Text Plotting icon.

Putting it all together

...