...
- Header lines start with a %
- A new datasection data section (time series) in the file starts with %ASCII%ASCI or ASCII
- The third second header line contains the location ID, parameter ID and qualifier ID.
In the old header formatting (using <importType> "SHD"): the header %GL-04140875-10-0 is split by the '-' character, so first part %GL is ignored, the second part is used as location ID, the third as the parameter ID and the forth as the qualifier ID , Parameter ID and Unit(if present).
In the new header formatting (using <importType> "shd-extloc", available since 2017.01): the header %GL-04140875-10-0 the starting % is removed, then the header is split by the '-' character, the first and second part are used as location ID (separated by '-', "GL-04140875" for the example), the third as the parameter ID and the forth as the qualifier ID. - The third header line contains the unit. The header %Schwanden Sernf - Abfluss - m3/s is split by the '-' character, only last part is used (m3/s)
- All rows that does not start with % are data lines
- Missing value identifier is expected to be: blank
- First column contains data with format "dd.MM.yyyy"
- Second column contains time with format ""HH:mm:ss" or ""HH:mm"
- Third column contains value with decimal point.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<timeSeriesImportRun xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/timeSeriesImportRun.xsd"> <import> <general> <importType>SHD</importType><importType>shd-extloc</importType> <!-- use importType "SHD" for the old location id formatting --> <folder>$IMPORT_FOLDER_ROOT$//hbcha</folder> <failedFolder>$FAILED_FOLDER_ROOT$</failedFolder> <idMapId>ImportSwiss</idMapId> <unitConversionsId>ImportHydroUnits</unitConversionsId> <missingValue>-999</missingValue> <importTimeZone> <timeZoneOffset>+01:00</timeZoneOffset> </importTimeZone> <dataFeedId>Import.HBCHA</dataFeedId> </general> <timeSeriesSet> <moduleInstanceId>Observed</moduleInstanceId> <valueType>scalar</valueType> <parameterId>Q.m</parameterId> <locationSetId>HydroStations_ALL</locationSetId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="hour" multiplier="1"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> <timeSeriesSet> <moduleInstanceId>Observed</moduleInstanceId> <valueType>scalar</valueType> <parameterId>H.m</parameterId> <locationSetId>HydroStations_ALL</locationSetId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="hour" multiplier="1"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> </import> </timeSeriesImportRun> |
...