<?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="a3" 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='blue' font_size='0.6'
               justification='left' display='absolute'>	
		</text>
		<horizontal_axis id="haxis" axis_line="false" line_thickness="4" colour='kelly_green'>
			<nolabel/>
			<date/>
			<noline/>
            <minortick colour='kelly_green'/>
			<grid line_style="dot" colour='kelly_green'/>
            <tick colour='kelly_green'/>
		</horizontal_axis>

		<vertical_axis id="vaxis" axis_line="false" line_thickness="4" colour='kelly_green'>
			<noline/>
            <label colour='kelly_green' quality='sansserif' height='0.5'/>
			<grid line_style="dot" colour='kelly_green'/>
            <tick colour='kelly_green'/>
		</vertical_axis>        
		<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='86%' use_id='title'/>
	<horizontal_axis use_id='haxis'/>    
	   <vertical_axis  use_id='vaxis'/> 
	<plot>                
			<epsgram use_id="station" parameter="cloud-cover" long_title='true'/>
			<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='86%' use_id='title'/>             
           <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='86%' use_id='title'/>
           <plot>
                <epsgram use_id="station" parameter="10m-wind"/>
				<epsgraph deterministic='on' whisker='on'> <both/> </epsgraph>
			</plot>
		  </map>
          </page>
          <page height="30%" 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='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'/>
           <vertical_axis  use_id='vaxis'/>                                       
          
            <horizontal_axis use_id="haxis">
                   <date>
                    <both label_colour='blue' label_height='0.5' />
                     <month label_height='0.5' label_colour='blue'> <monthandyear /> </month>
                     <noyear height='0.5'/>
                    </date>
                    <label quality='sansserif'/>
			</horizontal_axis>    
          
           <plot>
                <epsgram use_id="station" parameter="2mt"/>
				<epsgraph > <both/> </epsgraph>
			</plot> 
		<legend display='absolute' bottom='2%' left='0%' width='40%' height='18%' 
		        plot_direction='column' columns='3' 
		        text_colour='Rgb(0.5, 0.5, 0.5)' border='off' blanking='off'/>	
		  </map>
	</page>
</magics>
