Overview
Imports Swiss Dadar Data time series data as ASCII files that are delivered by Meteo Swiss to FOEN in Switzerland. The files contain rainfall time series in mm computed for selected catcments. The files have a name that contains the delivery date ("BASIN_BAFU3_20071322100.txt"), this information is not used when importing the files.
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 Swiss Radar file has the following characteristics:
- Line containing “BASIN_TIME” holds the time of the readings
- Line containing “BASIN_MISSING” holds the missing value indicator used
- Line containing “ACCUM_UNIT” holds the unit. Other header lines can be ignored.
- Lines containing “BASIN_VALUE” contain a reading. This also contains the ID of the location
ModuleConfigFiles/
The following example of an Import Module Instance will import the time series as equidistant 1 hour interval series for time zone GMT.
<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>SwissRadar</importType> <folder>$IMPORT_FOLDER_ROOT$/radarprecip</folder> <failedFolder>$FAILED_FOLDER_ROOT$</failedFolder> <idMapId>ImportSwissRadar</idMapId> <unitConversionsId>ImportHydroUnits</unitConversionsId> <missingValue>-99</missingValue> <dataFeedId>Import.Radar</dataFeedId> <actionLogEventTypeId>Import.Radar</actionLogEventTypeId> </general> <timeSeriesSet> <moduleInstanceId>ImportSwissRadar</moduleInstanceId> <valueType>scalar</valueType> <parameterId>P.rad</parameterId> <locationSetId>InterpolationStations</locationSetId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="hour" multiplier="1"/> <readWriteMode>add originals</readWriteMode> <synchLevel>1</synchLevel> <expiryTime unit="day" multiplier="2"/> </timeSeriesSet> </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.
<!-- edited with XMLSpy v2006 sp1 U (http://www.altova.com) by WL|Delft Hydraulics (WL|Delft Hydraulics) --> <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"> <!----> <parameter internal="P.rad" external="P.im"/> <!----> <location internal="I-2135" external="AareBernSchoenau"/> <location internal="I-2019" external="AareBrienzwiler"/> <location internal="I-2029" external="AareBrueggAegerten"/> <location internal="I-2016" external="AareBrugg"/> <location internal="I-2085" external="AareHagneck"/> ........ </idMap>
Example File/
SOURCE: ACQUIRE VERSION: 3.5 (12Mar07, uge) ACCUM_N: 4 ACCUM_PS: 1 2 6 12 ACCUM_DT: 5.000000 ACCUM_UNIT: millimetre BASIN_MAP_N: 11 BASIN_MAP_IDS: 100 101 102 110 500 501 502 503 504 505 506 BASIN_TIME: 12May2007132 2000UTC BASIN_MISSING: -99.000000 BASIN_VALUE_505_003_SchussenGerbetshaus: 0.000000 BASIN_VALUE_505_003_WuttachOberlauchringen: 0.000000 BASIN_VALUE_505_003_RheinNeuhausenFlurlingerbruecke: 0.000000 BASIN_VALUE_505_003_WieseBasel: 0.000000 BASIN_VALUE_505_003_RheinRheinfeldenMessstation: 0.000000 BASIN_VALUE_505_003_ArgenGiessen: 0.000000 ........
Java source code
Delft-FEWS Java import parser source code: SwissRadarTimeSeriesParser.java