| 1 |
<!-- |
| 2 |
(C) Copyright 1996-2016 ECMWF. |
| 3 |
|
| 4 |
This software is licensed under the terms of the Apache Licence Version 2.0 |
| 5 |
which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. |
| 6 |
In applying this licence, ECMWF does not waive the privileges and immunities |
| 7 |
granted to it by virtue of its status as an intergovernmental organisation nor |
| 8 |
does it submit to any jurisdiction. |
| 9 |
--> |
| 10 |
|
| 11 |
<magics> |
| 12 |
<tutorial name="contour_1" title='Geopotential on Europe' comment='In this example we will learn how to load a grib file, and how to make a simple plot over Europe'> |
| 13 |
<requirement name='1' subject='Geographical Area' text='Europe in cylindrical' |
| 14 |
link_doc='layout_mapping_coastlines' link_ptr='Subpage_Mapping'> |
| 15 |
<action name='pcoast'/> |
| 16 |
<parameter name='subpage_lower_left_longitude' value='-15.0' function='psetr'/> |
| 17 |
<parameter name='subpage_lower_left_latitude' value='30.0' function='psetr'/> |
| 18 |
<parameter name='subpage_upper_right_longitude' value='40.0' function='psetr'/> |
| 19 |
<parameter name='subpage_upper_right_latitude' value='70.0' function='psetr'/> |
| 20 |
</requirement> |
| 21 |
<requirement name='2' subject='Grid and coastlines setting' text='Grey coastlines and grid' |
| 22 |
link_doc='layout_mapping_coastlines' link_ptr='Coastlines_and_Gridlines'> |
| 23 |
<action name='pcoast'/> |
| 24 |
<parameter name='map_coastline_colour' value='tan' function='psetc'/> |
| 25 |
<parameter name='map_grid_colour' value='tan' function='psetc'/> |
| 26 |
<parameter name='map_grid_line_style' value='dash' function='psetc'/> |
| 27 |
</requirement> |
| 28 |
<requirement name='3' subject='Grib file loading' text='Geopotential in grib file z500.grib' |
| 29 |
link_doc='data' link_ptr='Pseudo_Action_Routine_PGRIB'> |
| 30 |
<action name='pgrib'/> |
| 31 |
<parameter name='grib_input_type' value='file' function='psetc'/> |
| 32 |
<parameter name='grib_input_file_name' value='z500.grib' function='psetc'/> |
| 33 |
</requirement> |
| 34 |
<requirement name='4' subject='Contour' text='Evergreen, thick (4) and dashed isolines every 8 units, low in brow, hi in orange' |
| 35 |
link_doc='contour' link_ptr='Action_Routine_PCONT'> |
| 36 |
<action name='pcont'/> |
| 37 |
<parameter name='contour_interval' value='8.0' function='psetr'/> |
| 38 |
<parameter name='contour_line_style' value='dash' function='psetc'/> |
| 39 |
<parameter name='contour_line_thickness' value='4' function='pseti'/> |
| 40 |
<parameter name='contour_line_colour' value='evergreen' function='psetc'/> |
| 41 |
<parameter name='contour_highlight_colour' value='evergreen' function='psetc'/> |
| 42 |
<parameter name='contour_hi_colour' value='orange' function='psetc'/> |
| 43 |
<parameter name='contour_lo_colour' value='brown' function='psetc'/> |
| 44 |
</requirement> |
| 45 |
<spot name='a' text='The lines are thinner in Magics++'/> |
| 46 |
<spot name='b' text='In Magics++, the colour of the labels is the colour of the isolines'/> |
| 47 |
</tutorial> |
| 48 |
</magics> |