...
The Magnifier button in the toolbar toggles the magnifier tool on and off. Unlike Zoom, this is a purely graphical enlargement of the plot. It is usedmainly to inspect small text such as contour labels. The magnifying glass can be moved and resized using the mouse, and the magnification scale on its left-hand side can also be adjusted.
Animation Steps
...
Use the Zoom tools to enlarge the European area and use the Area tool to select a region over Europe. Click Ok to save your selection - your choices will now be updated in the Geographic View editor. Click Apply in the Geographical View editor to save everything. Plot your data in this view to confirm that the area and projection are as desired.
Linking the Coastlines icon with the Geographic View Icon
...
Create a new Macro icon and edit it. This time we see a code editor, custom-built for the Macro language. The editor can automatically translate Metview icons into Macro code, so do the following:
drop the t1000.grb icon into the Macro Editor; a variable called
XXXt1000_2e_grb
is assigned to the value of theread()
command, which reads the GRIB data- rename the variable to simply
t1000
- drop your polar_europe icon into the Macro Editor
- drop your Coastlines icon into the Macro Editor
- underneath the generated code, type the following line:
Code Block |
---|
plot(polar_europe, coastlines, t1000) |
This says, "In the polar_europe view, using the coastlines definition, plot data t1000".
Your complete macro should look like this:
Code Block | ||
---|---|---|
| ||
# Metview Macro t1000 = read("/path/to/user/metview/t1000.grb") polar_europe = geoview( map_projection : "polar_stereographic", map_area_definition : "corners", area : [30,-25,50,65] ) coastlines = mcoast( map_coastline_thickness : 2, map_coastline_land_shade : "on", map_coastline_land_shade_colour : "cream" ) plot(polar_europe, coastlines, t1000)XXXX |
Now run the macro to generate the plot.
...
Future versions of Metview will incorporate more advanced plot-editing facilities available directly from the Layers tab. You can close the Display Window again.
XXX
Modifying the Contouring
XXX
Metview provides many ways to style the contours when plotting data. These are controlled via the Contouring icon. Create a new instance of this icon and rename it to shade. Edit it, setting the following parameters:
Contour Shade | On |
Contour Shade Method | Area Fill |
Contour Shade Max Level Colour | Red |
Contour Shade Min Level Colour | Blue |
Contour Shade Colour Direction | Clockwise |
Apply the changes, visualise the data icon again (t1000.grb) and drag the shade icon into the Display Window.
Our palette is automatically generated from a colour wheel. Try setting Contour Shade Colour Direction to Anti Clockwise to see the difference in the generated palette.
Creating a Legend
Create a legend by changing the first parameter in the Contour editor and dragging the icon into the Display Window again:
...
Contour Level Selection Type | Level List |
Contour Level List | -35/-20/-10/-5/0/5/10/15/20/2535 |
Contour Shade Colour Direction | Clockwise |
...
Code Block |
---|
plot(polar_europe, coastlines, t1000, fixed_t) |
Visual definition variables must appear just after the data variables to which they are to be applied. In fact, now that we have a shaded field covering the whole globe, there is no need to shade the land; we can remove coastlines
from the plot()
command. We will still see the coastlines, but Metview will use the default coastline definition, which is to draw the outline without shading the sea or the land.
Modifying a Default Icon
...