| 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_4" magml='off' title='Coloured wind over the globe' comment='In this example we will learn how to load a wind info from a grib file, and how to make a coloured wind plotting 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='Shaded coastlines using HSL colour definition' |
| 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_coastline_thickness' value='2' function='pseti'/> |
| 26 |
<parameter name='map_coastline_land_shade' value='on' function='psetc'/> |
| 27 |
<parameter name='map_coastline_land_shade_colour' value='HSL(0.40, 0.15,0.95)' function='psetc'/> |
| 28 |
<parameter name='map_grid_colour' value='tan' function='psetc'/> |
| 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 |
|
| 34 |
<requirement name='3' subject='Wind loading' text='Wind components are in grib file uv500.grib' |
| 35 |
link_doc='data' link_ptr='Pseudo_Action_Routine_PGRIB'> |
| 36 |
<action name='pgrib'/> |
| 37 |
<parameter name='grib_input_type' value='file' function='psetc'/> |
| 38 |
<parameter name='grib_wind_position_1' value='1' function='pseti'/> |
| 39 |
<parameter name='grib_wind_position_2' value='2' function='pseti'/> |
| 40 |
<parameter name='grib_input_file_name' value='data/uv500.grib' function='psetc'/> |
| 41 |
</requirement> |
| 42 |
<requirement name='4' subject='Green flags' text='Green flags for the wind below 5 m/s' |
| 43 |
link_doc='wind' link_ptr='Plotting_Wind_Arrows'> |
| 44 |
<action name='pwind'/> |
| 45 |
<parameter name='wind_flag_thickness' value='3' function='pseti'/> |
| 46 |
<parameter name='wind_field_type' value='flags' function='psetc'/> |
| 47 |
<parameter name='wind_flag_max_speed' value='5.0' function='psetr'/> |
| 48 |
<parameter name='wind_flag_origin_marker' value='dot' function='psetc'/> |
| 49 |
<parameter name='wind_flag_colour' value='green' function='psetc'/> |
| 50 |
</requirement> |
| 51 |
<requirement name='5' subject='Yellow flags' text='Yellow flags for the wind between 5 m/s and 10m/s' |
| 52 |
link_doc='wind' link_ptr='Plotting_Wind_Arrows'> |
| 53 |
<action name='pwind'/> |
| 54 |
<parameter name='wind_flag_min_speed' value='5.0' function='psetr'/> |
| 55 |
<parameter name='wind_flag_max_speed' value='10.0' function='psetr'/> |
| 56 |
</requirement> |
| 57 |
<requirement name='6' subject='Orange flags' text='Orange flags for the wind between 10 m/s and 15m/s' |
| 58 |
link_doc='wind' link_ptr='Plotting_Wind_Arrows'> |
| 59 |
<action name='pwind'/> |
| 60 |
<parameter name='wind_flag_min_speed' value='10.0' function='psetr'/> |
| 61 |
<parameter name='wind_flag_max_speed' value='15.0' function='psetr'/> |
| 62 |
</requirement> |
| 63 |
<requirement name='7' subject='Red flags' text='Red flags for the wind between 10 m/s and 15m/s' |
| 64 |
link_doc='wind' link_ptr='Plotting_Wind_Arrows'> |
| 65 |
<action name='pwind'/> |
| 66 |
<parameter name='wind_flag_min_speed' value='20' function='psetr'/> |
| 67 |
<parameter name='wind_flag_max_speed' value='' function='preset'/> |
| 68 |
</requirement> |
| 69 |
|
| 70 |
<spot name='a' text='Small difference in the thickness of the lines'/> |
| 71 |
</tutorial> |
| 72 |
</magics> |