Versions Compared

Key

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

...

Icon Graph Plotting is the visual definition used for the plotting of graphs (e.g. lines, curves and bar charts). For instance, to To customise the line displayed in this plot,  create a new instance of this icon and rename it to vdline. Edit it, setting the following parameters:

 

Graph Line Style

Dash

Graph Line Colour

Black

Graph Line Thickness

5

...

Note that only the Tephigram diagram is currently available, although there are other types of thermodynamic diagrams, such as Skew-T, Emagram and Stuve.

 To customise the curves displayed in this plot,  you can apply (or edit it first) icon vdline. The changes will be applied to both lines. The ability to customise each line individually (temperature and dew point) will be available in the future release of Metview.

Icon Wind Plotting To customise the wind arrows use icon Wind Plotting, which is the visual definition used for the plotting of winds . For instanceresponsible for specifying how gridded wind vector data is displayed. It controls features such as wind arrows and wind flags. To customise the wind flags displayed in the plot, create a new instance of this icon and rename it to vdwind. Edit it, setting the following parameters:

 To Edit it, setting the following parameters:

 

 

Wind Line Style

Dash

Wind Line Colour

Black

Wind Line Thickness

5

...

Wind Field Type

Flags

Wind Flag Colour

Coral

Wind Flag Length1.3

Wind Flag Thickness

2

Apply the changes and drag it into the Display Window.

 Macro example

To demonstrate the use of the View concept in a Macro language, let's create a program to analyse the vertical structure of temperature changes in time. This exercise reads two forecast steps, computes the differences and visualise the result in a cross section view.

...

Metview uses a netCDF format internally for the results of some computations (this format will be covered in another at session: Data Part 2). In particular, most of the previous Views (i.e. Cross Section, Vertical Profile, Average, Hovmøller and Thermo) do this, but their result data is not available to the user. Therefore, each of these Views has a corresponding Data Module view. If the intention is to simply plot the result, then the View icons are more useful. But to store the result data, the Data Module icon is required.

...

Your macro should be 3 lines long (well, 3 commands anyway) - one to read the input GRIB file, one to compute the profile and one to write the result to disk.

...