You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Overview

This import is available in DELFT-FEWS versions after 2011.02

Imports ASCII type time series data in CSV formatted files. Used by FEWS-Basque

Structure of the IP1 file

The data file contains one row with data columns, seperated by a comma (,).

The columns of interest are:

Column

Description

Id assigned by IP1 import

1

code location

-

2

date/time

-

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="6c5e5536-6d2c-4d6f-a669-8d8add5d63a5"><ac:plain-text-body><![CDATA[

10

temperature air [in 0.1 °C]

temperature_air

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="4d26da31-7573-4335-982a-d52864a608df"><ac:plain-text-body><![CDATA[

18

rain [in 0.1 mm]

precipitation

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="fa5a7bad-61dc-426c-b64f-4a348b4d8cfd"><ac:plain-text-body><![CDATA[

21

water height (digital and priority) [in mm]

waterlevel_1

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="b92d12d2-b3df-4f49-b723-3f551b09e52d"><ac:plain-text-body><![CDATA[

22

water height (analogic) [in mm]

waterlevel_2

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="6e465b73-ae48-4912-b24e-40885982230e"><ac:plain-text-body><![CDATA[

34

discharge (flowmeter) [in m3/s]

discharge

]]></ac:plain-text-body></ac:structured-macro>

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

The following snippet illustrates a sample data file :

"C0D2","20110912233000",0,0,0,0,0,0,0,159.1,96.7,0,0,0,0,0,0,0,0,0,190,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13.37

Configuration

To import IP1 data, 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>
		<!--Bayern-->
		<general>
			<importType>IP1</importType>
			<folder>$IMPORT_FOLDER_IP1$</folder>
			<failedFolder>$IMPORT_FOLDER_IP1$</failedFolder>
			<backupFolder>$BACKUP_FOLDER_IP1$</backupFolder>
			<idMapId>IdImportIP1</idMapId>
			<unitConversionsId>ImportIP1Units</unitConversionsId>
			<importTimeZone>
				<!--EPS is in GMT-->
				<timeZoneOffset>+00:00</timeZoneOffset>
			</importTimeZone>
			<dataFeedId>IP1-DF</dataFeedId>
			<reportChangedValues>true</reportChangedValues>
		</general>
		<timeSeriesSet>
			<moduleInstanceId>ImportIP1</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>wlevel</parameterId>
			<locationSetId>IP1</locationSetId>
			<timeSeriesType>external forecasting</timeSeriesType>
			<timeStep unit="hour" multiplier="1"/>
			<readWriteMode>add originals</readWriteMode>
			<synchLevel>1</synchLevel>
			<expiryTime unit="day"/>
			<ensembleId>IP1</ensembleId>
		</timeSeriesSet>
		<timeSeriesSet>
			<moduleInstanceId>ImportIP1</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>T_air</parameterId>
			<locationSetId>IP1</locationSetId>
			<timeSeriesType>external forecasting</timeSeriesType>
			<timeStep unit="hour" multiplier="1"/>
			<readWriteMode>add originals</readWriteMode>
			<synchLevel>1</synchLevel>
			<expiryTime unit="day"/>
			<ensembleId>IP1</ensembleId>
		</timeSeriesSet>
		<timeSeriesSet>
			<moduleInstanceId>ImportIP1</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>Precip</parameterId>
			<locationSetId>IP1</locationSetId>
			<timeSeriesType>external forecasting</timeSeriesType>
			<timeStep unit="hour" multiplier="1"/>
			<readWriteMode>add originals</readWriteMode>
			<synchLevel>1</synchLevel>
			<expiryTime unit="day"/>
			<ensembleId>IP1</ensembleId>
		</timeSeriesSet>
		<timeSeriesSet>
			<moduleInstanceId>ImportIP1</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>wlevel_ana</parameterId>
			<locationSetId>IP1</locationSetId>
			<timeSeriesType>external forecasting</timeSeriesType>
			<timeStep unit="hour" multiplier="1"/>
			<readWriteMode>add originals</readWriteMode>
			<synchLevel>1</synchLevel>
			<expiryTime unit="day"/>
			<ensembleId>IP1</ensembleId>
		</timeSeriesSet>
		<timeSeriesSet>
			<moduleInstanceId>ImportIP1</moduleInstanceId>
			<valueType>Discharge</valueType>
			<parameterId>wlevel</parameterId>
			<locationSetId>IP1</locationSetId>
			<timeSeriesType>external forecasting</timeSeriesType>
			<timeStep unit="hour" multiplier="1"/>
			<readWriteMode>add originals</readWriteMode>
			<synchLevel>1</synchLevel>
			<expiryTime unit="day"/>
			<ensembleId>IP1</ensembleId>
		</timeSeriesSet>

                <externUnit parameterId="Precip" unit="0.1 mm" cumulativeSum="true"/>
                <externUnit parameterId="T_air"  unit="0.1 mm" cumulativeSum="true"/>
	</import>
</timeSeriesImportRun>

idMapping

The parser assigns IDs for the parameters as indicated in the table above.
To map these to current FEWS parameters an idMapping can be configured.
For example:

<?xml version="1.0" encoding="UTF-8"?>
<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">
  <parameter external="waterlevel_1" internal="wlevel"/>
  <parameter external="waterlevel_2" internal="wlevel_ana"/>
  <parameter external="temperature_air" internal="T_air"/>
  <parameter external="precipitation" internal="Precip"/>
  <parameter external="discharge" internal="Discharge"/>
  <location external="C0D2" internal="KNMI_NL001"/>
</idMap>
  • No labels