Versions Compared

Key

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

This is an example of a Metview 1 macro and its equivalent in Metview 4.

 

Original code:

cont cont  = pcont( contour_lo_colour : "blue" )
coast = pcoast( map_coastline_colour : "background" )

win = plotwindow
( row
     row                             : 1,

     column column                         : 1,
     width width                          : 1000,
     height height                         : 888,
     pane_organization organization              : "independent",
     subpage_map_projection projection         : "polar_stereographic",
     subpage_map_hemisphere hemisphere         : "north",
     subpage_map_vertical_longitude : vert_long,
     area area                           [la1,lo1,la2,lo2],
     background background                     : coast
)

Translated code:

cont = mcont( contour_hilo hilo      : "on",
                   contour_lo_colour : "blue" )

coast = mcoast( map_coastline_colour : "black" )

polar_view = geoview
(
     map_projection projection         : "polar_stereographic",

     map_hemisphere         : "north",
     map_vertical_longitude : vert_long,
     map_area_definition definition    : "corners",
     area area                   : [la1,lo1,la2,lo2],
     coastlines coastlines             : coast
)

page = plot_page( view : polar_view )

win = plot_superpage( pages : [ page ] )