Versions Compared

Key

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

...

Edit a new Input Visualiser icon and set the following:

Input Plot TypeGeo Points
Input Longitude Values-74
Input Latitude Values40.71

Create a new Symbol Plotting icon to plot this as a red marker (the filled circle is marker index 28) with some text for its legend entry.

...

Generate a macro which will reproduce your plot with a single click. This can be done either by clicking the Generate Macro button from the Display Window or by editing a new Macro icon, dropping your data and visdef icons into it and adding a plot() command. Do it using the Generate Macro button and we will gain a little extra functionality for free. The generated macro will be called MacroFramework1; Metview rescans its folders every few seconds, so it might not appear immediately. Right-click and choose visualise to obtain our normal on-screen plot, or choose execute to generate a PDF file of the plot. Look at the generated Macro code to see how this is done! Different output formats will be studied in more depth in Working with graphical output.

Overlaying Both Fields

Visualise your Geographical View icon and drop the following icons into the Display Window:

  • your Coastlines icon
  • the msl.grib icon with your MSLP Contouring icon
  • the precip.grib icon with your precipitation Contouring icon

 

Extra Work

Try the following if you have time.

...

  • this procedure will be covered in Customising Your Plot Title
  • if you have a fieldset variable called msl_grib, the following line will extract the date at which the field is valid:
    • msl_date = gribvalid_get_longdate(msl_grib, 'validityDate')
  • we can do something similar for the validity time
  • these are extracted as integer numbers, but can be combined into a proper date variable in Macro:
    • full_date = date(msl_date) + hour(msl_time)

  • use the string() function to construct a date string similar to the one used in the current title
  • insert this into the mtext() function instead of the current title  (ensure that we read the msl data and extract its date before defining the title)
  • it is now more robust - if you use data from a different date or time, the title will still be correct
  • note that this method will not work directly if you want to generate an animation from different time steps of data

...