<?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="station" 
                station_name='$station' date='' time=''
                latitude="$latitude" longitude="$longitude" station_height='$height'
                eps_database='$database/epsdb'> 
                <none/>
        </epsgram>
	
        <text id="title" font='sansserif' colour='navy' font_size='0.4'
               justification='left' display='absolute'>	
		</text>
		<horizontal_axis  axis_grid= "on"
                    axis_grid_colour= "Rgb(0.5, 0.5, 0.5)"
                    axis_grid_line_style= "dash"
                    axis_line_colour= "navy"
                    axis_minor_tick= "on"
                    axis_type= "date"
                    axis_minor_tick_colour= "navy"
                    axis_tick_colour= "navy"
                    axis_tick_label= "off" id="haxis"/>

		<vertical_axis id="vaxis" 
                    axis_grid="on"
                    axis_grid_colour= "grey"
                    axis_grid_line_style= "dash"
                    axis_grid_reference_level= "0"
                    axis_grid_reference_thickness= "1"
                    axis_label_font="sansserif"
                    axis_line="on"
                    axis_line_colour="navy"
                    axis_tick_colour="navy"
                    axis_tick_label_colour="navy"
                    axis_tick_label_height= "0.3"/>        
		<map id='box'  margin_bottom='7%' margin_top='15%' border-colour='Rgb(0.5, 0.5, 0.5)'/>
	</definition>
	<drivers>
		<$ps/>
		<$pdf/>
		<$png/>
		<$gif/>
		<$svg/>
	</drivers>

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

	<page height="20%" border='off'>
		<nopageid/> 
		<map use_id='box'>
		<cartesian>
			<x_date   automatic='on'/>
			<y_regular y_min='0' y_max='8'/>
		</cartesian>  

	<text margin_bottom='85%' use_id='title'  
         text_line_1="&lt;font size='0.5'&gt;EPS Meteogram &lt;/font&gt;"
         text_line_2="&lt;font size='0.4'&gt;&lt;spot_info key='station'/&gt;  &lt;spot_info key='location'/&gt;&lt;/font&gt;"
         text_line_3="&lt;font size='0.4'&gt;Deterministic Forecast and 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"
         />
	<horizontal_axis  use_id="haxis"/>   
	   <vertical_axis  use_id='vaxis'/> 
	<plot>                
			<epsgram use_id="station" parameter="cloud-cover" />
			<epsgraph deterministic='on' whisker='on'> <both/> </epsgraph>
		</plot>
	  </map>
	</page>

          <page height="20%" border='off'> 
          <nopageid/> 
          <map use_id='box'>
       
          <cartesian>
			<x_date  automatic='on'/>
            <y_regular automatic='on'/>
           </cartesian>  
           <horizontal_axis use_id='haxis'/>    
		   <vertical_axis  use_id='vaxis'/>            
           <text margin_bottom='90s%' use_id='title' 
			text_line_1="&lt;font size='0.4'>&lt;spot_info key='parameter'/> &lt;/font&gt;"
         />           
           <plot>
                <epsgram use_id="station" y_axis_threshold='3'  parameter="precip"/>
				<epsgraph deterministic='on' whisker='on'> <both/> </epsgraph>
			</plot>
		  </map>
          </page>
          <page height="20%" border='off'> 
          <nopageid/>
           <map  use_id='box'>
       
          <cartesian>
			<x_date   automatic='on'/>
            <y_regular automatic='on'/>
           </cartesian>  
           <horizontal_axis use_id='haxis'/>    
		   <vertical_axis  use_id='vaxis'/> 
           <text margin_bottom='85%' use_id='title'  
			text_line_1="&lt;font size='0.4'&gt;&lt;spot_info key='parameter'/&gt; &lt;/font&gt;"
         />
         
           <plot>
                <epsgram use_id="station" parameter="10m-wind"/>
				<epsgraph deterministic='on' whisker='on'> <both/> </epsgraph>
			</plot>
		  </map>
          </page>
          <page height="30%" border='off'>
        
	   
        <nopageid />
        
        <map   margin_bottom='30%' margin_top='15%' border-colour='Rgb(0.5, 0.5, 0.5)' >
          <cartesian>
			<x_date    automatic='on'/>
            <y_regular automatic='on'/>
           </cartesian>  
           
           <text margin_bottom='85%' use_id='title'  
				text_line_1="&lt;font size='0.4'&gt;&lt;spot_info key='parameter'/&gt; &lt;/font&gt;"
			/>
           <vertical_axis  use_id='vaxis'/>                                       
          
            <horizontal_axis 
                axis_grid='on' 
                axis_grid_line_style="dot" 
                axis_grid_colour='kelly_green'
                axis_date_type = "days"
                axis_days_label=  "both" 
                axis_days_label_colour = "navy"
                axis_months_label_colour= "navy"
                axis_days_label_height= "0.3"
                axis_months_label_height= "0.3"
                axis_years_label_height ="0.3"
                axis_minor_tick= "on"
                axis_minor_tick_colour= "navy"
                axis_type= "date"
                axis_years_label_colour = "navy" />
                   
			
          
           <plot>
                <epsgram use_id="station" parameter="2mt"/>
				<epsgraph legend='on' eps_legend_font_size= "0.4" eps_legend_font_colour= "navy"> <both/> </epsgraph>
			</plot> 
		   
		  
          
           </map> 
           <legend
                border= "off"
                bottom= "-10%"
                display= "absolute"
                height= "35%"
                left= "0%"
                legend_entry_text_width= "99."
                legend_plot_direction= "column"
                legend_text_height= "0.3"
                legend_text_colour= "navy"
                width= "70%"
            />
	</page>
</magics>
