<?xml version="1.0"?>
<!--
(C) Copyright 1996-2016 ECMWF.

This software is licensed under the terms of the Apache Licence Version 2.0
which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. 
In applying this licence, ECMWF does not waive the privileges and immunities 
granted to it by virtue of its status as an intergovernmental organisation nor
does it submit to any jurisdiction.
-->

<magics version="3.0" format="a4" orientation="portrait">
	<definition>
		<epsgram id="eps" 
			type='eps15'
			station_name='$station' 
			latitude="$latitude" longitude="$longitude" 
			date='$date' time="$time" station_height="$height" 
			eps_temperature_correction='yes'
			eps_database='$database/epsdb'> 
			<none/>
	</epsgram>
	
	<text id="title" justification="left" font_style='bold'  font_size='0.4' 
	      colour='Rgb(0.5, 0.5, 0.5)' font='sansserif' />

		<map id="box" margin_bottom='7%' margin_top='15%' 
		     border-colour='grey' border-thickness='2'/>

		<horizontal_axis id="haxis" 
                    axis_grid= "on"
                    axis_grid_colour= "grey"
                    axis_grid_line_style= "dot"
                    axis_line_colour= "charcoal"
                    axis_minor_tick= "on"
                    axis_minor_tick_colour= "charcoal"
                    axis_tick_colour= "charcoal"
                    axis_tick_label="off"
                    axis_type= "date" />
                
		

		<vertical_axis id="vaxis" 
                    axis_grid= "on"
                    axis_grid_colour= "grey"
                    axis_grid_line_style= "dot"
                    axis_grid_reference_level= "0"
                    axis_grid_reference_thickness= "1"
                    axis_label_font= "sansserif"
                    axis_line= "on"
                    axis_line_colour= "charcoal"
                    axis_tick_colour= "charcoal"
                    axis_tick_label_colour= "charcoal"
                    axis_tick_label_height= "0.3" />

	</definition>
		<drivers>
			<$ps/>
			<$pdf/>
			<$png/>
			<$gif/>
			<$svg/>
		</drivers>

	<page  height="7.5%" border='off'>
		<nopageid/>       
	</page>

	<page  height="19%" border='off'>
		<nopageid/>
			<$meta/>
			<map use_id='box'>
				<text use_id='title' margin_bottom='85%' 
                text_line_1="&lt;font size='0.4'&gt;Eps Meteogram&lt;/font&gt;"
                text_line_2="&lt;font size='0.4'&gt;&lt;spot_info key='station'/&gt;&lt;/font&gt;"
                text_line_3="&lt;font size='0.4'&gt;Extended Forecast based in EPS Distribution &lt;spot_info key='base_date'/&gt;&lt;/font&gt;"
                text_line_4="&lt;br/&gt;"
                text_line_5="&lt;font size='0.4'&gt;&lt;spot_info key='parameter'/&gt;&lt;/font&gt;"
                text_line_count="5"
                />
				<cartesian>
					<x_date  automatic='on' />
					<y_regular automatic='on' />
				</cartesian>  
				<plot>
					<epsgram use_id="eps" parameter="cloud-cover" long_title='true'/>                    
					<epsgraph box_colour='Rgb(0.925, 0.609, 0.953)' box_border_colour='Rgb(0.5, 0.5, 0.5)'> <both/> </epsgraph>
				</plot>
				<horizontal_axis use_id="haxis"/>
				<vertical_axis use_id="vaxis"/>
			</map>
	</page>
	<page height="19%" border='off'>
		<nopageid/>
		<map  use_id='box' >
          <text use_id='title' margin_bottom='85%' 
                 text_line_1= "&lt;font size='0.4'>&lt;spot_info key='parameter'/>&lt;/font&gt;"
                />
           <cartesian>
			<x_date  automatic='on' />
            <y_regular automatic='on' y_min='0' y_max='20' />
           </cartesian>  
          
			
                <plot>
					<epsgram use_id="eps" parameter="precip"/>
					<epsgraph max='20' box_colour='Rgb(0.49, 0.89, 0.51)' box_border_colour='Rgb(0.5, 0.5, 0.5)'> <both/> </epsgraph>

				</plot>
           <horizontal_axis use_id="haxis"/>
				<vertical_axis use_id="vaxis"/>
			
		</map> 
	</page>
	<page height="6%" border='off'>
		<nopageid/>
		<map margin_bottom='7%' margin_top='25%' 
		     border-colour='grey' border-thickness='2'>
			<cartesian>
				<x_date automatic='on'/>
				<y_regular  y_min="-43200" y_max="43200" />
			</cartesian> 
			 <text use_id='title' margin_bottom='75%' 
                 text_line_1="&lt;font size='0.4'>&lt;spot_info key='parameter'/>&lt;/font&gt; "
                />
			<horizontal_axis use_id="haxis"/>
			<vertical_axis use_id="vaxis" axis_tick_label='off' axis_tick='off' axis_grid='off'></vertical_axis> 
			<plot>
				<epsgram use_id="eps" parameter="10m-wind-dd"/>
				<epswind legend ='on' rose_wind_colour='gold' rose_wind_border_colour='Rgb(0.5000, 0.5000, 0.5000)'/>
			</plot>
       
        </map> <legend display='absolute' bottom='50%' left='65%' width='20%' height='90%' 
	        text_colour='Rgb(0.5, 0.5, 0.5)' border='off' blanking='off'/> 
        </page>
	<page height="19%" border='off'>
		<nopageid/>
		<map use_id='box'>
			 <text use_id='title' margin_bottom='85%' 
                text_line_1=" &lt;font size='0.4'>&lt;spot_info key='parameter'/>&lt;/font&gt; "
                />
			<cartesian>
				<x_date  automatic='on' />
				<y_regular automatic='on' y_min='0' y_max='20' />
			</cartesian>  
			<plot>
				<epsgram use_id="eps" parameter="10m-wind"/>
				<epsgraph box_colour='gold' box_border_colour='Rgb(0.5, 0.5, 0.5)'> <both/> </epsgraph>
			</plot>
			<horizontal_axis use_id="haxis"/>
			<vertical_axis use_id="vaxis"/>
		</map>
	</page>
	<page height="28%" border='off'>
		<pageid line_system_plot='off' line_date_plot='off' line_errors_plot='off' 
		        font='sansserif' line_colour='Rgb(0.8, 0.8, 0.8)'/>
		<map margin_bottom='37%' margin_top='10%' border-colour='Rgb(0.5, 0.5, 0.5)' >
			<cartesian>
				<x_date automatic='on'/>
				<y_regular automatic='on'/>
			</cartesian>
			<horizontal_axis axis_days_label= "both"
                    axis_days_label_colour= "charcoal"
                    axis_days_label_height= "0.3"
                    axis_grid= "on"
                    axis_grid_colour= "Rgb(0.5, 0.5, 0.5)"
                    axis_grid_line_style= "dash"
                    axis_line_colour= "charcoal"
                    axis_minor_tick= "on"
                    axis_minor_tick_colour= "charcoal"
                    axis_months_label_colour= "charcoal"
                    axis_months_label_height= "0.3"
                    axis_tick_colour= "charcoal"
                    axis_type= "date"
                    axis_years_label_colour= "charcoal"
                    axis_years_label_height= "0.3"
            />			
			<vertical_axis  use_id='vaxis'/> 
			 <text use_id='title' margin_bottom='90%' 
                text_line_1=" &lt;font size='0.4'>&lt;spot_info key='parameter'/>&lt;/font&gt; "
                />		
			<plot>
				<epsgram use_id="eps" parameter="temperature"/>
				<epsgraph border_colour='Rgb(0.5, 0.5, 0.5)' legend='on'
				left_box_colour='sky' box_median_colour='black' right_box_colour='RGB(1.0, 0.222, 0.222)'
				font='sansserif' font_colour='Rgb(0.5, 0.5, 0.5)' box_colour='grey'
				box_border_colour='Rgb(0.5, 0.5, 0.5)'> <both/> </epsgraph>
			</plot>
		</map>
		<legend display='absolute' bottom='0%' left='5%' width='20%' height='30%' 
		        plot_direction='column' text_colour='Rgb(0.5, 0.5, 0.5)' border='off' blanking='off'/>
        
	</page>
</magics>
