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="6ede719c-3366-49d3-bb0d-1632c51a1d6a"><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="f92d4c3c-0f80-4b02-b68b-0f97ed306c53"><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="0daccc6e-168b-4c56-92e7-abcc3bf28236"><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="aaf33ea4-ab2d-432b-8d75-ffaa227d5c89"><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="aeba1c3a-45ba-4409-845f-cd0f3db27579"><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>