Versions Compared

Key

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

...

One feature of Metview 3 which is not directly available in Metview 4 is Contour Splitting. This was a feature which enabled different isoline styles to be applied above, below and on a particular threshold (typically zero, for the purpose of examining the difference between two fields). To emulate this behaviour in Metview 4 requires the creation of three separate contour icons which can then be dropped together into the plot (or converted into three separate calls to mcont). The following code examples show a default split contour definition in Metview 3 alongside the equivalent code in Metview 4.

 Metview 3 Metview 4

split = pcont
(
    contour_line_plotting: "split"
)

plot (data, split)

 

 

split_below = mcont
(
    contour_line_style      : "dash",
    contour_highlight_style : "dash",
    contour_max_level       : 0,
    contour_level_count     : 5
)

split_above = mcont
(
    contour_line_colour      : "red",
    contour_highlight_colour : "red",
    contour_min_level        : 0,
    contour_level_count      : 5
)

split_on = mcont
(
    contour_line_thickness : 3,
    contour_line_colour    : "black",
    contour_highlight      : "off",
    contour_max_level      : 0,
    contour_min_level      : 0
)

plot (data, split_below, split_above, split_on)

...