Versions Compared

Key

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

...

Directory structure

Gliffy Diagram
size800
nameMacros_structure
pagePin7

Typical macro structure

Code Block
languagebash
titleTypical structure of the macros
#=========================================
# Plot analysis fields
#=========================================

#-------------------------------------------------------------------------
#Available parameters:
# mslp,t2,wind10,speed10,sst
# t,z,pt,eqpt,wind,speed,w[850,500,200]
# r[850,700,500,200]
# vo850, pv320K
# tp (only for ERA5)
#
#Adding ".flag" suffix to 'wind' results in wind barbs otherwise arrows are used
#Adding ".s" suffix to 'z' results in a shaded plot instead of contours
#-------------------------------------------------------------------------

#Define plot list (min 1 - max 4)
plot1=["t850","mslp"]

#Experiment ID
# an: operational analysis
# e5: ERA5 analysis
exp_id = "e5"

#Map type: 1=Atl, 2=Norway 
mapType=1

#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#-------------------------------------
# Do not edit below this line!!!!!
#-------------------------------------
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

...

plot_maps(exp_id,plots,-1,steps,mapType)

You can specify usually the following variablesparameters:

  • meteorological variable to visualize (the available variables are always listed in the macro header)
  • experiment ID
  • plotting area: 2 two pre-defined maps are available, over a larger North-Atlantic area and over Norway
  • forecast time steps (example examples for the format is given in the macros)
  • cross-section line (example examples for the format is given in the macros)
Note

The macros should not be modified after the line  

Alert
typeWarning

After the " Do not edit below this line!!!!!" line the macros should not be modified.

Study the analysis

Available macros in the Analysis folder are:

  • an_1x1.mv: plots the analysis field in 1 panel for 1 to 4 variables over a pre-defined area, the analysis can be both the operational analysis and ERA5
  • an_2x2.mv: plots the analysis field in 4 panels for several variables over a pre-defined area
  • an_xs.mv: plots cross-section from the analysis for several variables over a user-defined line
  • mv_track.mv:
    • a "drag-and-drop" macro, users has have to drop it into a plot (e.g. an mslp a mean sea level pressure plot) and it visualizes the track on top of the plotoriginal layer
    • users can change the filename from where the track data are taken (track.csv is for track from 'observations' published by the National Hurricane Center, track_op_an.csv is track from the operational analysis, track_ea_an.csv is track from ERA5 data)
Info

Precipitation is

Alert
typeInfo

Please note that precipitation are available only in ERA5 data, but not in the operational analysis.

Study the operational high-resolution forecast (HRES)

Available macros in the HRES_forecast folder are:

  • hres_1x1.mv: plots the HRES forecast in 1 panel for 1 to 4 variables over a pre-defined area
  • hres_2x2.mv: plots the HRES forecast in 4 panels for several variables over a pre-defined area
  • hres_xs.mv: plots cross-section from the HRES forecast for several variables over a user-defined line
  • mv_track.mv: a "drag-and-drop" macro, users has have to drop it into a plot (e.g. an mslp a mean sea level pressure plot) and it the macro visualizes the track on top of the plot original layer (track.csv is for track from the HRES forecast)

Study the user experiments

Available macros in the Experiments folder are:

  • exp_1x1.mv: plots the experiment results in 1 panel for 1 to 4 variables over a pre-defined area, new additional variables are physics tendencies (see the macro header for guideguidance)
  • exp_2x2.mv: plots the experiment results in 4 panels for several variables over a pre-defined area
  • exp_diff.mv: plots the difference between two forecast fields for a given variable over a pre-defined area
  • exp_xs.mv: plots cross-section from the experiment results for several variables over a user-defined line, new  additional variables are physics tendencies (see the macro header for guideguidance)
  • exp_profile.mv: plots vertical profile from the experiment results for several physics tendencies over a user-defined area or point
Info

Please note that three Metview macros work 3 macros are designed for physics tendencies: exp_1x1.mv, exp_xs.mv and exp_profile.mv.

Forecast verification

Available macros in the Forecast_errors folder are:

  • exp_rmse.mv: plots the root mean square error (RMSE) curves of several experiments over a pre-defined area, analysis can be both the operational analysis and ERA5
  • exp-an_diff.mv: plots the difference differences between a forecast field and the analysis for a given variable over a pre-defined area, analysis can be both the operational analysis and ERA5
Info

Please note that physics Physics tendencies cannot be verified and precipitation with these macros.

Precipitation can be verified only with ERA5 dataagainst ERA5 data.

Saving figures

The participants will need to save plots for the group presentations on Friday. The plots generated by the macros can be easily saved into files if you run the macro not from the Macro window, but with right click on the macro and then selecting the Execute point. In this case the output is not displayed on the screen, but it is automatically saved into a .ps file and an animated .gif file. The pictures are stored in the figures folder which is linked into every directory mentioned above.