<!--
(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>
	<class action="podb"
		directory="odb"
		prefix="odb"
		xmltag="odb"
		name="OdbDecoder">
		<documentation>
		This is responsible for accessing the ODB and passing
		its data to MAGICS.
		</documentation>
		<parameter member="database"
			to="string"
			default=""
			from="string"
			name="odb_database">
			<documentation>Odb Database Path</documentation>
		</parameter>
		<parameter member="option"
			to="string"
			default=""
			from="string"
			name="odb_database_option">
			<documentation>Odb Database option : clean</documentation>
		</parameter>
		<parameter member="query"
			to="string"
			default=""
			from="string"
			name="odb_query">
			<documentation>Odb Query</documentation>
		</parameter>
		<parameter member="latitude"
			to="string"
			default="latitude"
			from="string"
			name="odb_latitude">
			<documentation>Odb latitude column name</documentation>
		</parameter>
		<parameter member="longitude"
			to="string"
			default="longitude"
			from="string"
			name="odb_longitude">
			<documentation>Odb longitude column name</documentation>
		</parameter>
		<parameter member="observation"
			to="string"
			default="obsvalue"
			from="string"
			name="odb_observation">
			<documentation>Odb observation column name</documentation>=
		</parameter>
		<parameter member="observation2"
			to="string"
			default="obsvalue"
			from="string"
			name="odb_observation_2">
			<documentation>Odb observation#2 column name (for vectors)</documentation>
		</parameter>
		<parameter member="level"
			to="string"
			default="press"
			from="string"
			name="odb_level">
			<documentation>Odb level column name</documentation>
		</parameter>
		<parameter member="date"
			to="string"
			default=""
			from="string"
			name="odb_date">
			<documentation>Odb date column name name used to save in to geopoint format</documentation>
		</parameter>
		<parameter member="time"
			to="string"
			default=""
			from="string"
			name="odb_time">
			<documentation>Odb time column name used to save in to geopoint format</documentation>
		</parameter>
		<parameter member="x"
			to="string"
			default="press"
			from="string"
			name="odb_x">
			<documentation>Odb  column name used as X input for curve plotting</documentation>
		</parameter>
		<parameter member="y"
			to="string"
			default="press"
			from="string"
			name="odb_y">
			<documentation>Odb  column name used as Y input for curve plotting</documentation>
		</parameter>
		<parameter member="parameters"
			to="floatarray"
			default="floatarray()"
			from="floatarray"
			name="odb_parameters">
			<documentation>enable to bind a float value to a odb parameter ($?)</documentation>
		</parameter>
		<parameter member="starting_row"
			to="int"
			default="1"
			from="int"
			name="odb_starting_row">
			<documentation>info sent to the odb server to set the starting row</documentation>
		</parameter>
		<parameter member="nb_rows"
			to="int"
			default="1000"
			from="int"
			name="odb_nb_rows">
			<documentation>info sent to the odb server to set the number of rows to be retrieved from the starting row</documentation>
		</parameter>
	</class>
</magics>
