Versions Compared

Key

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

...

Now drag your Table Visualiser icon the map plot to overlay the track with the mean sea level forecast with the track.

Customise the storm track

...

To finalise the track plot you need to add the date/time labels next 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 (programaticprogrammatic) way of doing it by using Metview Macro.

...

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

Here the object referenced by variable tbl contains all the columns from the CSV file. Now read the date and time (from the first two columns) into separate vectors:

...

Finally, define a Symbol Plotting icon to plot the labels and return it. 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.

The code you need to add is like this:

Code Block
Code Block
sym = msymb(
	symbol_type	:	"text",
	symbol_text_font_colour : "black",
	symbol_text_font_size: "0.3",
	symbol_text_font_style: "bold",
	symbol_text_list	:	labels	
	)

return [sym]

This visualmdefini  When you use the text mode it will plot By returning the visual definition you built Macro behaves as if it were a real Symbol Plotting icon. So once the Macro is finished drag it into the plot and you should see the labels appearing along the track.

...