| 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_3" title='Geopotential on North America using dot shading' |
| 13 |
comment='Shading using dot shading and a list of colours'> |
| 14 |
<requirement name='1' subject='Geographical Area' text='North America' |
| 15 |
link_doc='layout_mapping_coastlines' link_ptr='Subpage_Mapping'> |
| 16 |
<action name='pcoast'/> |
| 17 |
<parameter name='subpage_map_projection' value='polar_stereographic' function='psetc'/> |
| 18 |
<parameter name='subpage_map_area_definition' value='centre' function='psetc'/> |
| 19 |
<parameter name='subpage_map_centre_longitude' value='-95.' function='psetr'/> |
| 20 |
<parameter name='subpage_map_centre_latitude' value='47.' function='psetr'/> |
| 21 |
<parameter name='subpage_map_vertical_longitude' value='-95.' function='psetr'/> |
| 22 |
<parameter name='subpage_map_scale' value='32.e6' function='psetr'/> </requirement> |
| 23 |
<requirement name='2' subject='Grid and coastlines setting' text='tan coastlines and grey grid' |
| 24 |
link_doc='layout_mapping_coastlines' link_ptr='Coastlines_and_Gridlines'> |
| 25 |
<action name='pcoast'/> |
| 26 |
<parameter name='map_coastline_colour' value='tan' function='psetc'/> |
| 27 |
<parameter name='map_grid_colour' value='grey' function='psetc'/> |
| 28 |
<parameter name='map_coastline_thickness' value='3' function='pseti'/> |
| 29 |
<parameter name='map_grid_line_style' value='solid' function='psetc'/> |
| 30 |
<parameter name='map_grid_latitude_increment' value='5.0' function='psetr'/> |
| 31 |
<parameter name='map_grid_longitude_increment' value='5.0' function='psetr'/> |
| 32 |
</requirement> |
| 33 |
<requirement name='3' subject='Grib file loading' text='Geopotential in grib file z500.grib' |
| 34 |
link_doc='data' link_ptr='Pseudo_Action_Routine_PGRIB'> |
| 35 |
<action name='pgrib'/> |
| 36 |
<parameter name='grib_input_type' value='file' function='psetc'/> |
| 37 |
<parameter name='grib_input_file_name' value='z500.grib' function='psetc'/> |
| 38 |
</requirement> |
| 39 |
<requirement name='4' subject='Legend' text='Turn the legend on' |
| 40 |
link_doc='intro' link_ptr='Overview_Contour_Plotting'> |
| 41 |
<action name='pcont'/> |
| 42 |
<parameter name='legend' value='on' function='psetc'/> |
| 43 |
</requirement> |
| 44 |
<requirement name='5' subject='Contour levels Selection' |
| 45 |
text='use the following level list /480., 520.,530.,560.,575.,590./' |
| 46 |
link_doc='contour' link_ptr='Contour_Levels'> |
| 47 |
<action name='pcont'/> |
| 48 |
<parameter name='contour_level_selection_type' value='level_list' function='psetc'/> |
| 49 |
<parameter name='contour_level_list' value='/480., 520.,530.,560.,575.,590./' function='pset1r'/> |
| 50 |
</requirement> |
| 51 |
<requirement name='6' subject='Dot shading' |
| 52 |
text='dot shading using the following colours /navy, blue, green, yellow, orange/' |
| 53 |
link_doc='contour' link_ptr='Contour_Shading'> |
| 54 |
<action name='pcont'/> |
| 55 |
<parameter name='contour_shade' value='on' function='psetc'/> |
| 56 |
<parameter name='contour_hilo' value='off' function='psetc'/> |
| 57 |
<parameter name='contour_shade_colour_method' value='list' function='psetc'/> |
| 58 |
<parameter name='contour_shade_colour_list' value='/navy, blue, green, yellow, orange/' function='pset1c'/> |
| 59 |
</requirement> |
| 60 |
<requirement name='7' subject='More on dot shading' text='Try to play with the size of the dots and the density' |
| 61 |
link_doc='contour' link_ptr='DOT'> |
| 62 |
<action name='pcont'/> |
| 63 |
<parameter name='contour_shade_dot_size' value='0.05' function='psetr'/> |
| 64 |
<parameter name='contour_shade_max_level_density' value='70.' function='psetr'/> |
| 65 |
<parameter name='contour_shade_min_level_density' value='20.' function='psetr'/> |
| 66 |
</requirement> |
| 67 |
<spot name='a' text='The legend looks different'/> |
| 68 |
<spot name='b' text='The size of the dot differs slightly'/> |
| 69 |
</tutorial> |
| 70 |
</magics> |