WSL/SLF GitLab Repository

Commit a2be7edd authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Improved the CSV plugin: one more option, better help and fixed a wrong input validation

parent c296a2ad
......@@ -228,6 +228,9 @@ Please include meteoio_parametergroups before use!
<parameter key="CSV_NODATA" type="text">
<help>A value that should be interpreted as &lt;code&gt;nodata&lt;/code&gt;</help>
</parameter>
<parameter key="CSV_COMMENTS_MK" type="text" validate="^.$">
<help>Single character to use as marker for comments in the input file (default: none)</help>
</parameter>
<parameter key="CSV_DEQUOTE" type="alternative">
<option value="TRUE"/>
<option value="FALSE"/>
......@@ -278,7 +281,7 @@ Please include meteoio_parametergroups before use!
<frame caption="Date/Time handling" color="#c4c4c4">
<parameter type="helptext" wrap="true">
<help>Date/Time information is either provided as strings that will be parsed (as one combined timestamp or as a date and a time field, see below) or as separate components: then the fields must be named (either from the headers or through the CSV_FIELDS key) as YEAR, JDAY (number of days since the begining of the year), MONTH, DAY, NTIME (numerical representation of time, for example 952 for 09:52), HOURS, MINUTES, SECONDS (if minutes or seconds are missing, they will be assumed to be zero).</help>
<help>Date/Time information is either provided as strings that will be parsed (as one combined timestamp (DATETIME or TIMESTAMP) or as a date and a time field (DATE and TIME), see below) or as separate components: then the fields must be named (either from the headers or through the CSV_FIELDS key) as YEAR, JDAY (number of days since the begining of the year), MONTH, DAY, NTIME (numerical representation of time, for example 952 for 09:52), HOURS, MINUTES, SECONDS (if minutes or seconds are missing, they will be assumed to be zero).</help>
</parameter>
<parameter key="CSV_TIMESTAMP" type="alternative">
<option value="COMBINED">
......@@ -316,7 +319,7 @@ Please include meteoio_parametergroups before use!
<parameter key="CSV_SLOPE" type="number" format="integer+" min="0" max="90">
<help>The slope angle at the station, in degrees (if providing a slope, also provide an azimuth)</help>
</parameter>
<parameter key="CSV_AZIMUTH" type="number" format="integer+" min="0" max="90">
<parameter key="CSV_AZIMUTH" type="number" format="integer+" min="0" max="360">
<help>The slope azimuth at the station, in degrees from North </help>
</parameter>
<parameter key="POSITION" type="text" validate="(latlon|xy)\s*\([-\d\s\.,]+\)">
......@@ -357,6 +360,9 @@ Please include meteoio_parametergroups before use!
<parameter key="CSV#_NODATA" type="text">
<help>A value that should be interpreted as &lt;code&gt;nodata&lt;/code&gt;</help>
</parameter>
<parameter key="CSV#_COMMENTS_MK" type="text" validate="^.$">
<help>Single character to use as marker for comments in the input file (default: none)</help>
</parameter>
<parameter key="CSV#_DEQUOTE" type="alternative">
<option value="TRUE"/>
<option value="FALSE"/>
......@@ -438,7 +444,7 @@ Please include meteoio_parametergroups before use!
<parameter key="CSV#_SLOPE" type="number" format="integer+" min="0" max="90">
<help>The slope angle at the station, in degrees (if providing a slope, also provide an azimuth)</help>
</parameter>
<parameter key="CSV#_AZIMUTH" type="number" format="integer+" min="0" max="90">
<parameter key="CSV#_AZIMUTH" type="number" format="integer+" min="0" max="360">
<help>The slope azimuth at the station, in degrees from North </help>
</parameter>
<parameter key="CSV#_SPECIAL_HEADERS" type="text">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment