...
Info | ||
---|---|---|
| ||
In the ImportActivities the state files and the timeseries can be imported to Delft-FEWS. It is important to convert the extension of the state files before you import it to Delft-FEWS, this can be done by adding the </relativeExportFile> to your configuration. |
Improved DIMR adapter
The new DimrPreAdapter needs to be called with as only argument a reference to the run file.
Diagnostics can be ignored because it will write a plain text file dimr_pre_adapter.log in the workDir.
Code Block | ||||
---|---|---|---|---|
| ||||
<executeActivity>
<description>Run DIMR FEWS pre-adapter</description>
<command>
<className>nl.deltares.dimr.DimrPreAdapter</className>
<binDir>%ROOT_DIR%/fews-dimr-adapter-bin</binDir>
</command>
<arguments>
<argument>%ROOT_DIR%/input/pi-run.xml</argument>
</arguments>
<timeOut>1200000</timeOut>
<ignoreDiagnostics>true</ignoreDiagnostics>
</executeActivity>
|
In the pi run file property with key="dimrConfigFile" must be present with a reference to the dimr configuration file. This reference must be relative to the parent directory of the pi run file.
If multiple pi time series files are exported, it must be specified which file is meant for which component, there are 3 different properties for the components:
key="piFileForFlow1d"
key="piFileForFm"
key="piFileForFbc"
The time series xml files must be numbered in the order they appear in the <inputTimeSeriesFile> elements
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?>
<Run xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.wldelft.nl/fews/PI" xsi:schemaLocation="http://www.wldelft.nl/fews/PI http://fews.wldelft.nl/schemas/version1.0/pi-schemas/pi_run.xsd" version="1.5">
<timeZone>0.0</timeZone>
<startDateTime date="2017-03-26" time="06:00:00"/>
<endDateTime date="2017-03-29" time="06:00:00"/>
<time0 date="2017-03-26" time="06:00:00"/>
<workDir>X:\XXX\DimrPreAdapterTest\piRunFile1d2dRTC\dimr_model</workDir>
<inputTimeSeriesFile>X:\XXX\piRunFile1d2dRTC\Input\export_pi_flow1d.xml</inputTimeSeriesFile>
<inputTimeSeriesFile>X:\XXX\piRunFile1d2dRTC\Input\export_pi_fm.xml</inputTimeSeriesFile>
<inputTimeSeriesFile>X:\XXX\piRunFile1d2dRTC\Input\export_pi_fbc.xml</inputTimeSeriesFile>
<outputDiagnosticFile>notUsed.xml</outputDiagnosticFile>
<properties>
<!-- Reference to dimr configuration file, relative to parent directory of the/this pi-run.xml file -->
<!-- This file will be read to see which components of the dimr are used and find references to .md1d, .mdu, flow1d2d.ini and/or fbc runtime config -->
<string key="dimrConfigFile" value="../dimr_config.xml"/>
<!-- Specify which of the above time series xml files is meant for flow1d -->
<string key="piFileForFlow1d" value="inputTimeSeriesFile-1"/>
<!-- Specify which of the above time series xml files is meant for FM -->
<string key="piFileForFm" value="inputTimeSeriesFile-2"/>
<!-- Specify which of the above time series xml files is meant for FBC (rtc1) -->
<string key="piFileForFbc" value="inputTimeSeriesFile-3"/>
</properties>
</Run>
|
Code Block | ||||
---|---|---|---|---|
| ||||
<component name="real-time control"> <library>FBCTools_BMI</library> <workingDir>rtc</workingDir> <!-- Look hardcoded for rtcRuntimeConfig.xml --> <inputFile>.</inputFile> </component> |
...