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

Compare with Current View Page History

« Previous Version 3 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="7bd53ca8-51cd-49d6-ba98-097bea2e7422"><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="2e7518ed-89d9-47fb-98e3-32bd78cf62d6"><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="3f3dcd35-4622-4073-97e9-6013fd37cd27"><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="5e397ba4-4679-40d1-9474-52e83c8577a1"><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="b16ed50b-7278-4339-9345-c1329ea28efe"><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>Bayern</locationSetId>
			<timeSeriesType>external forecasting</timeSeriesType>
			<timeStep unit="hour" multiplier="1"/>
			<readWriteMode>add originals</readWriteMode>
			<synchLevel>1</synchLevel>
			<expiryTime unit="day"/>
			<ensembleId>IP1</ensembleId>
		</timeSeriesSet>
	</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"/>
  <location external="C0D2" internal="KNMI_NL001"/>
</idMap>
  • No labels