<!--
/*****************************************************************************/
/*  Copyright 2019 WSL Institute for Snow and Avalanche Research  SLF-DAVOS  */
/*****************************************************************************/
/* This file is part of INIshell.
INIshell is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

INIshell is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with INIshell.  If not, see <http://www.gnu.org/licenses/>.
*/
-->

<!--
This is an INIshell configuration file for the software MeteoIO.
https://models.slf.ch/p/meteoio
-->

<inishell_config application="MeteoIO" icon="meteoio.png">
	<include file="meteoio_parametergroups.xml"/>

	<!-- GENERAL -->
	<include file="meteoio_general.xml"/>
	<parameter type="spacer" height="40"/>
	<parameter type="label" label="&lt;h3&gt;Application information&lt;/h3&gt;" color="sl_blue"/>
	<reference name="INFO_METEOIO"/>
	<include file="workflow_meteoio.xml"/>

	<!-- INPUT & OUTPUT -->
	<include file="meteoio_timeseries_input.xml"/>
	<include file="meteoio_timeseries_output.xml"/>
	<include file="meteoio_grids_input.xml"/>
	<include file="meteoio_grids_output.xml"/>

	<frame caption="Coordinate system and time zone">
		<section name="Input"/>
		<parameter key="COORDSYS" type="alternative" optional="false">
			<reference name="COORDSYSTEMS"/>
			<help>Choose the coordinate system of your data's location format.</help>
		</parameter>
		<!-- when giving a precision the default value should match (no 'unsaved changes' warning): -->
		<parameter key="TIME_ZONE" type="number" format="decimal" sign="true" default="1.00" min="-12" max="14" wrap="true" notoggle="true" optional="false">
			<help>The time zone your data is reported with</help>
		</parameter>
	</frame>
	<frame caption="Meteorological data format">
		<section name="Input"/>
		<reference name="METEOIO_TS_IN"/> <!-- all METEO input plugins -->
		<help>plugin for METEO data input</help>
	</frame>

	<include file="meteoio_input_data_editing.xml"/>
	<include file="meteoio_spatial_resampling.xml"/>
	<reference name="RESAMPLING_SPATIAL"/>
	<reference name="REGRIDDING"/>

	<!-- GRIDDED TYPES -->
	<include file="meteoio_grids_input.xml"/>
	<frame caption="Digital Elevation Model">
		<section name="Input"/>
		<reference name="DEMPLUGINS"/> <!-- all DEM input plugins -->
	</frame>
	<frame caption="Landuse">
		<section name="Input"/>
		<reference name="LANDUSEPLUGINS"/> <!-- all LANDUSE input plugins -->
	</frame>
	<frame caption="2D Grids">
		<section name="Input"/>
		<reference name="GRID2D_IN"/> <!-- all GRID2D input plugins -->
	</frame>

	<!-- FILTERS -->
	<include file="meteoio_filters.xml"/>
	<frame caption="Filters">
		<section name="Filters"/>
		<reference name="FILTERS"/>
	</frame>
	<parameter type="spacer" height="50" section="Filters"/>
	<frame caption="Time filters">
		<section name="Filters"/>
		<reference name="TIMEFILTERS"/>
	</frame>

	<!-- RESAMPLING -->
	<include file="meteoio_1dInterpolations.xml"/>
	<frame caption="Temporal 1D-resampling">
		<section name="Interpolations1D"/>
		<parameter key="ENABLE_RESAMPLING" label="ENABLE_RESAMPLING" caption="Interpolate data to have it available for exact requested dates" type="checkbox" default="TRUE">
			<help>Should the data be resampled to the timesteps requested from outside (it is very strongly suggested to keep it set to TRUE if running &lt;i&gt;SNOWPACK&lt;/i&gt;)</help>
		</parameter>
		<parameter key="WINDOW_SIZE" type="number" format="integer+" min="1" default="43200" unit="s">
			<section name="Interpolations1D"/>
			<help>Default width of the biggest data gap that can be filled by temporal interpolation (in seconds: 1/2 day= 43200, 1 day=86400, 1 week=604800)</help>
		</parameter>
		<reference name="1D_INTERPOLATIONS"/>
	</frame>
	
	<!-- GENERATORS -->
	<include file="meteoio_generators.xml"/>
	<frame caption="Data generators">
		<section name="Generators"/>
		<reference name="GENERATORS"/>
	</frame>

	<include file="meteoio_2dInterpolations.xml"/>
	<frame caption="Spatial 2D-resampling">
		<section name="Interpolations2D"/>
		<reference name="2D_INTERPOLATIONS"/>
	</frame>
	
	<frame caption="Coordinate system and time zone">
		<section name="Output"/>
		<parameter key="COORDSYS" type="alternative" optional="false">
			<reference name="COORDSYSTEMS"/>
			<help>Choose the coordinate system of your data's location format.</help>
		</parameter>
		<!-- when giving a precision the default value should match (no 'unsaved changes' warning): -->
		<parameter key="TIME_ZONE" type="number" format="decimal" sign="true" default="1.00" min="-12" max="14" wrap="true" notoggle="true" optional="false">
			<help>The time zone your data is reported with</help>
		</parameter>
	</frame>
	<frame caption="Meteorological data format">
		<section name="output"/>
		<reference name="METEOIO_TS_OUT"/> <!-- all METEO output plugins -->
		<help>plugin for METEO data output</help>
	</frame>
	<include file="meteoio_grids_output.xml"/>
	<frame caption="2D Grids">
		<reference name="GRID2D_OUT"/> <!-- all GRID2D output plugins -->
	</frame>

</inishell_config>
