...
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?> <generalAdapterRun 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/generalAdapterRun.xsd"> <general> <!-- general section to specify directories and id maps file --> <description>JFlow fluvial test for the Don</description> <rootDir>%REGION_HOME%/Modules/jflow/TestModel</rootDir> <workDir>%ROOT_DIR%</workDir> <exportDir>%ROOT_DIR%/input</exportDir> <exportIdMap>Jflow_Export_Test</exportIdMap> <importDir>%ROOT_DIR%/output</importDir> <importIdMap>Jflow_Import_Test</importIdMap> <dumpFileDir>$GA_DUMPFILEDIR$</dumpFileDir> <dumpDir>%ROOT_DIR%</dumpDir> <diagnosticFile>%ROOT_DIR%/diagnostics.xml</diagnosticFile> </general> <!-- burnInProfile - not currently used --> <activities> <startUpActivities> <!-- startUpActivities to remove files from previous runs --> <purgeActivity> <filter>%ROOT_DIR%/input/*.*</filter> </purgeActivity> <!--purgeActivity> <filter>%ROOT_DIR%/output/*.*</filter> </purgeActivity--> </startUpActivities> |
<?xml version="1.0" encoding="UTF-8"?> <generalAdapterRun 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/generalAdapterRun.xsd"> <general> <!-- general section to specify directories and id maps file --> <description>JFlow fluvial test for the Don</description> <rootDir>%REGION_HOME%/Modules/jflow/TestModel</rootDir> <workDir>%ROOT_DIR%</workDir> <exportDir>%ROOT_DIR%/input</exportDir> <exportIdMap>Jflow_Export_Test</exportIdMap> <importDir>%ROOT_DIR%/output</importDir> <importIdMap>Jflow_Import_Test</importIdMap> <dumpFileDir>$GA_DUMPFILEDIR$</dumpFileDir> <dumpDir>%ROOT_DIR%</dumpDir> <diagnosticFile>%ROOT_DIR%/diagnostics.xml</diagnosticFile> </general> <!-- burnInProfile - not currently used --> <activities> <startUpActivities> <!-- startUpActivities to remove files from previous runs --> <purgeActivity> <filter>%ROOT_DIR%/input/*.*</filter> </purgeActivity> <!--purgeActivity> <filter>%ROOT_DIR%/output/*.*</filter> </purgeActivity--> </startUpActivities> |
Export timseries time series from FEWS
The export file must be called export.xml (this is hard coded into the JFlow adapter).
Code Block | |
---|---|
|
<exportTimeSeriesActivity>
<description>Export flow timeseries</description>
| |||
<exportTimeSeriesActivity>
<description>Export flow timeseries</description>
|
...
<!-- exportFile is written to directory named in the General section unless specified otherwise--> |
...
<exportFile>export.xml</exportFile> |
...
<timeSeriesSets>
<timeSeriesSet>
...
<timeSeriesSets> <timeSeriesSet> <!-- the data to be exported --> |
...
<moduleInstanceId>ImportObservedForJflow</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>Q.obs</parameterId>
...
<moduleInstanceId>ImportObservedForJflow</moduleInstanceId> <valueType>scalar</valueType> <parameterId>Q.obs</parameterId> <locationId>JBA_TEST1_SP_1</locationId> |
...
<locationId>JBA_TEST1_SP_2</locationId> |
...
<locationId>JBA_TEST1_SP_3</locationId> |
...
<timeSeriesType>external historical</timeSeriesType>
...
<timeSeriesType>external historical</timeSeriesType> <timeStep unit="minute" multiplier="15"/> |
...
<relativeViewPeriod unit="hour" start="-24" end="0" endOverrulable="true"/> |
...
<readWriteMode>read only</readWriteMode>
</timeSeriesSet>
</timeSeriesSets>
</exportTimeSeriesActivity>
|
Execute the JFlow model
Code Block | ||||
---|---|---|---|---|
| ||||
<executeActivity>
<description>Run Jflow Adapter</description>
<command>
<!-- set path to Jflow adapter executable in the global properties file-->
|
<readWriteMode>read only</readWriteMode>
</timeSeriesSet>
</timeSeriesSets>
</exportTimeSeriesActivity>
Execute the JFlow model
<executeActivity>
<description>Run Jflow Adapter</description>
<command>
<!-- set path to Jflow adapter executable in the global properties file-->
...
<executable>$GA_JFLOW_ADAPTER$</executable> |
...
</command> |
...
<arguments>
...
<arguments> <argument>%ROOT_DIR%\jflow.ini</argument> |
...
</arguments> |
...
<timeOut>900000</timeOut> |
...
</executeActivity> |
Import model results to FEWS
Import the model results grids to a location in FEWS, as in the example below.
...
<locationID> should match the internal ID specified in the IdMaps file.
Code Block | ||
---|---|---|
|
<importActivities>
<importMapStacksActivity>
| ||
<importActivities>
<importMapStacksActivity>
|
...
<importFile>../output/jflowmapstacks.xml</importFile> |
...
<timeSeriesSets>
<timeSeriesSet>
...
<timeSeriesSets> <timeSeriesSet> <moduleInstanceId>Jflow_test_Historical</moduleInstanceId> |
...
<valueType>grid</valueType>
...
<valueType>grid</valueType> <parameterId>H.simulated.historical</parameterId> |
...
<locationId>Jflow_test_map</locationId> |
...
<timeSeriesType>simulated historical</timeSeriesType>
...
<timeSeriesType>simulated historical</timeSeriesType> <timeStep unit="nonequidistant"/> |
...
<readWriteMode>add originals</readWriteMode>
</timeSeriesSet>
</timeSeriesSets>
</importMapStacksActivity>
...
<readWriteMode>add originals</readWriteMode>
</timeSeriesSet>
</timeSeriesSets>
</importMapStacksActivity>
</importActivities>
|
2.4.2 Id maps
Export to JFlow from FEWS
...