Overview
Imports Austrian Hydro Data time series data as ASCII files that are delivered to FOEN in Switzerland. The files contain discharge time series in m3/s and water levels in cm. The files have an extension that contains the delivery date, example of file name "gisq3t.roh2002120107".
Configuration (Example)
A complete import module configuration consists of an ID Mapping file and an Import Module Instance file. Examples of the two are provided below.
The AHD file has the following characteristics: • Missing value identifier is expected to be: -999 • Line that start with “#”are expected to be comment lines • Lines that start with CH have the location ID after the CH characters: CH50200147 • Lines that start with KB have the parameter ID after the KP characters: KBPegel • Lines that start with KE have the parameter Unit after the KE characters: KEcm • Lines that start with IM have the actual values: IM000000231102 0301 0108 o After IM there is the date time of the data value in format “HHmmssddMMyy” o After date time the 2 parameters are expected
ModuleConfigFiles/
The following example of an Import Module Instance will import the time series as equidistant 15 minute interval series for time zone GMT+1 hour.
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>AHD</importType>
<folder>$IMPORT_FOLDER_ROOT$/austrian_hydro</folder>
<failedFolder>$FAILED_FOLDER_ROOT$</failedFolder>
<idMapId>ImportAustrian</idMapId>
<unitConversionsId>ImportHydroUnits</unitConversionsId>
<importTimeZone>
<timeZoneOffset>+01:00</timeZoneOffset>
</importTimeZone>
<dataFeedId>Import.Austrian</dataFeedId>
</general>
<timeSeriesSet>
<moduleInstanceId>Observed</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>Q.m</parameterId>
<locationSetId>HydroStations_AUSTRIA</locationSetId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="minute" multiplier="15"/>
<readWriteMode>add originals</readWriteMode>
</timeSeriesSet>
<timeSeriesSet>
<moduleInstanceId>Observed</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>H.m</parameterId>
<locationSetId>HydroStations_AUSTRIA</locationSetId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="minute" multiplier="15"/>
<readWriteMode>add originals</readWriteMode>
</timeSeriesSet>
<externUnit parameterId="Q.m" unit="m3/s"/>
</import>
</timeSeriesImportRun>
|
IdMapFiles/
The ID mapping file will contain a mapping of the parameters and locations in the data file with the internal parameter and location ID’s of the Delft-FEWS application.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<idMap 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/idMap.xsd" version="1.1">
<!--mapped Observed water level data series-->
<map internalParameter="H.m" internalLocation="H-8000" externalParameter="Pegel" externalLocation="50200147"/>
<!--mapped Observed Discharge data series-->
<map internalParameter="Q.m" internalLocation="H-8000" externalParameter="Abfluss" externalLocation="50200147"/>
</idMap>
|
Example File/
Code Block | ||||
---|---|---|---|---|
| ||||
SX000000009999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
CH50200147
KBPegel
KEcm
KBAbfluss
KEm^3/s
IM000000231102 0301 0108
IM001500231102 0301 0108
IM003000231102 0301 0108
IM004500231102 0301 0108
IM010000231102 0301 0108
IM011500231102 0301 0108
........
|
Java source code
Delft-FEWS Java import parser source code: AhdTimeSeriesParser.javadfdfdf