Overview

This import is available in DELFT-FEWS versions after 2011.01

Imports CSV kind of type time series data (discharge forecasts) from Hessen and RheinlandPfalz, location Cochem and Trier (Mosel), Kalkofen (Lahn) and Dietersheim and Grolsheim (Nahe).

Structure of the Hessen file

Data is to be obtained through a http request. The data consists of two sections; a header and the time series data.

The first part of the header represents the forecast time, where MEZ stands for Central European Time. The second column, separated by the ; character, represents the location name. Multiple columns with other locations may exist.

The other rows in the file are the time series date/time and values.
Date/time and values are again separated by the ; character.

Date/time is formatted as "dd.MM.yyyy HH"

The following snippet illustrates a sample data file :

09.01.2012 10 MEZ;Kalkofen;
09.01.2012 11;265.66;
09.01.2012 12;262.99;
09.01.2012 13;259.34;
09.01.2012 14;255.36;
09.01.2012 15;251.28;
09.01.2012 16;247.18;
09.01.2012 17;243.11;
09.01.2012 18;239.25;
09.01.2012 19;235.76;
09.01.2012 20;232.78;
09.01.2012 21;230.30;
09.01.2012 22;228.25;

Configuration

To import forecast data from Hessen, stored into a text file, configure a module like:

<?xml version="1.0" encoding="UTF-8"?>
<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>Hessen</importType>
			<folder>$IMPORT_FOLDER$/Hessen</folder>
			<failedFolder>$IMPORT_FAILED_FOLDER$</failedFolder>
			<backupFolder>$IMPORT_BACKUP_FOLDER$</backupFolder>
			<idMapId>IdImportLUBW</idMapId>
			<unitConversionsId>ImportUnitConversions</unitConversionsId>
			<importTimeZone>
				<timeZoneOffset>+01:00</timeZoneOffset>
			</importTimeZone>
			<dataFeedId>Hessen</dataFeedId>
		</general>
		<timeSeriesSet>
			<moduleInstanceId>ImportBranchesRhine</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>Q.fx</parameterId>
			<locationId>H-RN-0888</locationId>
			<timeSeriesType>external forecasting</timeSeriesType>
			<timeStep unit="hour"/>
			<readWriteMode>add originals</readWriteMode>
			<synchLevel>1</synchLevel>
			<expiryTime unit="day" multiplier="30"/>
		</timeSeriesSet>
	</import>
</timeSeriesImportRun>

idMapping

To map the external locationId with the FEWS location, IdMapping should be conifgured
For example:

<idMap version="1.1" 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">
	<location external="Kalkofen" internal="H-RN-0888"/>
	<enableOneToOneMapping/>
</idMap>
  • No labels