Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Confirmed.

...

  • Open the subfolder called 'System' and then subfolder 'Defaults'.
  • Do one of the following: edit the Symbol Plottingicon in the 'Defaults' folder to specify your new settings or else delete it and copy your 'symbol' icon into this folder then rename it 'Symbol Plotting'

...

So far we have used the default legend settings, which resulted in a continuous legend. Now we will change our legend so that it could display a histogram showing the data distribution across the data intervals used in the symbol plotting.

Let's create a new Legend icon:

...

Now zoom in and out of different areas. What happens to the palette - does it stay constant? The default behaviour is to create 10 interval levels within the range of data actually plotted. As the area changes, so does the range of values being plotted.

Let's create a palette which will not be altered when we change the area. Copy your 'symbol' icon (either right-click + duplicate, or drag with the middle mouse button), and rename the copy 'symbol_fixed' by clicking on its title. Edit the icon and make the following changes:

...

Odb Latitude Variablespecifies the name of the column holding the latitude data in the SELECT statement (here lat@hdr)
Odb Longitude Variablespecifies the name of the column holding the longitude data in the SELECT statement (here lon@hdr)
Odb X Component Variablespecifies the name of the column holding the u wind component data in the SELECT statement (here obsvalue@body)
Odb Y Component Variablespecifies the name of the column holding the v wind component data in the SELECT statement (here obsvalue@body#1)
Odb Value Variablespecifies the name of the column whose values willl will be used to generate the colour palette for the wind plotting. We leave this item empty because it instructs Metview to use the wind speed for this purpose.
Odb Fromspecifies the FROM statement (it is only needed for ODB-1 databases).
Odb Where

specifies the WHERE statement. In our example it is as follows:

obstype@hdr = 2 and

varno@body = 3 and

varno@body#1 = 4 and

vertco_reference_1@body < 25000

...

We can change the symbol (its type, colour and size) used for the plot with a Symbol Plotting icon. This time you do not need to create a new icon since there is one called 'scatter_symbol' already prepared for you. Edit this icon to see its settings then simply drag it into the Display Window and see how your plot has been changed.

...

Now, if you execute this macro (right-click execute or click on the Play button in the Macro editor) you should see the following text appearing in the standard output:
 

Code Block
languagetext
min: 191.710006714 max: 301.720001221 mean: 238.441305601

...