| 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="wind_3" magml='off' title='Simple wind plotting on Europe' comment='In this example we will learn how to load a wind info from a grib file, and how to make a simple wind plotting over Europe'> |
| 13 |
<requirement name='1' subject='Geographical Area' text='Europe in sterographic polar projection' |
| 14 |
link_doc='layout_mapping_coastlines' link_ptr='Subpage_Mapping'> |
| 15 |
<action name='pcoast'/> |
| 16 |
<parameter name='subpage_map_projection' value='polar_stereographic' function='psetc'/> |
| 17 |
<parameter name='subpage_map_area_definition' value='centre' function='psetc'/> |
| 18 |
<parameter name='subpage_map_centre_longitude' value='0.' function='psetr'/> |
| 19 |
<parameter name='subpage_map_centre_latitude' value='50.' function='psetr'/> |
| 20 |
<parameter name='subpage_map_vertical_longitude' value='0.' function='psetr'/> |
| 21 |
<parameter name='subpage_map_scale' value='15.e6' function='psetr'/> |
| 22 |
</requirement> |
| 23 |
<requirement name='2' subject='Grid and coastlines setting' text='Shaded coastlines using RGB colour definition' |
| 24 |
link_doc='layout_mapping_coastlines' link_ptr='Coastlines_and_Gridlines'> |
| 25 |
<action name='pcoast'/> |
| 26 |
<parameter name='map_coastline_colour' value='black' function='psetc'/> |
| 27 |
<parameter name='map_grid_colour' value='black' function='psetc'/> |
| 28 |
<parameter name='map_coastline_thickness' value='2' function='pseti'/> |
| 29 |
<parameter name='map_grid_line_style' value='dot' 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='4' subject='Legend' text='Turn the legend on' |
| 34 |
link_doc='intro' link_ptr='Overview_Contour_Plotting'> |
| 35 |
<action name='pcont'/> |
| 36 |
<parameter name='legend' value='on' function='psetc'/> |
| 37 |
</requirement> |
| 38 |
<requirement name='3' subject='Wind loading' text='Wind components are in grib file uv500.grib' |
| 39 |
link_doc='data' link_ptr='Pseudo_Action_Routine_PGRIB'> |
| 40 |
<action name='pgrib'/> |
| 41 |
<parameter name='grib_input_type' value='file' function='psetc'/> |
| 42 |
<parameter name='grib_wind_position_1' value='1' function='pseti'/> |
| 43 |
<parameter name='grib_wind_position_2' value='2' function='pseti'/> |
| 44 |
<parameter name='grib_input_file_name' value='data/uv500.grib' function='psetc'/> |
| 45 |
</requirement> |
| 46 |
<requirement name='4' subject='Default plotting' text='Simple arrows' |
| 47 |
link_doc='wind' link_ptr='Plotting_Wind_Arrows'> |
| 48 |
<action name='pwind'/> |
| 49 |
</requirement> |
| 50 |
|
| 51 |
<requirement name='5' subject='Geopotential loading' text='500 Geopotential is in grib file z500.grib' |
| 52 |
link_doc='data' link_ptr='Pseudo_Action_Routine_PGRIB'> |
| 53 |
<action name='pgrib'/> |
| 54 |
<parameter name='grib_input_type' value='file' function='psetc'/> |
| 55 |
<parameter name='grib_input_file_name' value='data/z500.grib' function='psetc'/> |
| 56 |
</requirement> |
| 57 |
<requirement name='6' subject='Shading' text='Simple dot shading for the geopotential' |
| 58 |
link_doc='contour' link_ptr='Contour_Shading'> |
| 59 |
<action name='pcont'/> |
| 60 |
<parameter name='contour_highlight' value='off' function='psetc'/> |
| 61 |
<parameter name='contour_line_colour' value='grey' function='psetc'/> |
| 62 |
<parameter name='contour_line_style' value='dash' function='psetc'/> |
| 63 |
<parameter name='contour_shade_min_level_density' value='10.' function='psetr'/> |
| 64 |
<parameter name='contour_shade_max_level_density' value='70.' function='psetr'/> |
| 65 |
<parameter name='contour_shade_min_level_colour' value='green' function='psetc'/> |
| 66 |
<parameter name='contour_shade_max_level_colour' value='red' function='psetc'/> |
| 67 |
<parameter name='contour_shade' value='on' function='psetc'/> |
| 68 |
</requirement> |
| 69 |
|
| 70 |
|
| 71 |
<spot name='b' text='Difference on the legend'/> |
| 72 |
<spot name='c' text='Small difference in the thickness of the lines'/> |
| 73 |
</tutorial> |
| 74 |
</magics> |