| 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_2" magml='off' title='Simple arrows 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_land_shade' value='on' function='psetc'/> |
| 29 |
<parameter name='map_coastline_land_shade_colour' value='RGB(0.9, 0.9,0.9)' function='psetc'/> |
| 30 |
<parameter name='map_coastline_thickness' value='2' function='pseti'/> |
| 31 |
<parameter name='map_grid_line_style' value='dot' function='psetc'/> |
| 32 |
<parameter name='map_grid_latitude_increment' value='5.0' function='psetr'/> |
| 33 |
<parameter name='map_grid_longitude_increment' value='5.0' function='psetr'/> |
| 34 |
</requirement> |
| 35 |
<requirement name='3' subject='Wind loading' text='Wind components are in grib file uv500.grib' |
| 36 |
link_doc='data' link_ptr='Pseudo_Action_Routine_PGRIB'> |
| 37 |
<action name='pgrib'/> |
| 38 |
<parameter name='grib_input_type' value='file' function='psetc'/> |
| 39 |
<parameter name='grib_wind_position_1' value='1' function='pseti'/> |
| 40 |
<parameter name='grib_wind_position_2' value='2' function='pseti'/> |
| 41 |
<parameter name='grib_input_file_name' value='data/uv500.grib' function='psetc'/> |
| 42 |
</requirement> |
| 43 |
<requirement name='4' subject='Arrows plotting' text='evergreen arrows ignoring the wind above 30 m/s' |
| 44 |
link_doc='wind' link_ptr='Plotting_Wind_Arrows'> |
| 45 |
<action name='pwind'/> |
| 46 |
<parameter name='wind_field_type' value='arrows' function='psetc'/> |
| 47 |
<parameter name='wind_thinning_factor' value='1.0' function='psetr'/> |
| 48 |
<parameter name='wind_arrow_thickness' value='3' function='pseti'/> |
| 49 |
<parameter name='wind_arrow_colour' value='evergreen' function='psetc'/> |
| 50 |
<parameter name='wind_arrow_max_speed' value='30.0' function='psetr'/> |
| 51 |
</requirement> |
| 52 |
|
| 53 |
<spot name='b' text='Magics++ will take into account the map_coastline_colour even when using land shading'/> |
| 54 |
<spot name='c' text='Small difference in the thickness of the arrows'/> |
| 55 |
</tutorial> |
| 56 |
</magics> |