...
Code Block |
---|
language | xml |
---|
theme | Eclipse |
---|
firstline | 1 |
---|
title | Filters.xml |
---|
linenumbers | true |
---|
collapse | true |
---|
|
<filter id="FIAT Model locations QLD" name="FIAT Model Locations">
<validationIconsVisible>false</validationIconsVisible>
<timeSeriesSetsId>AUS_FIAT_Model_Locations</timeSeriesSetsId>
<locationConstraints>
<attributeTextContains id="REGION" contains="QLD"/>
</locationConstraints>
</filter>
|
Run ThresholdEventCrossing module in workflow
Define module in the ModuleDescriptors.xml file:
Code Block |
---|
language | xml |
---|
title | ModuleDescriptors.xml |
---|
|
<moduleDescriptor id="ThresholdChecks">
<description>Module to check on threshold event crossings</description>
<className>nl.wldelft.fews.system.plugin.threshold.ThresholdEventCrossingModule</className>
</moduleDescriptor> |
Create entry in ModuleInstanceDescriptors.xml file:
Code Block |
---|
language | xml |
---|
title | ModuleInstanceDescriptors.xml |
---|
|
<moduleInstanceDescriptor id="ThresholdChecks">
<moduleId>ThresholdChecks</moduleId>
</moduleInstanceDescriptor> |
Add module to the workflow. Keep in mind that the module needs to be added to the end of the workflow where the validation timeseries have been imported! Another important thing to keep in mind is that the relativeViewPeriod that has been configured for the validation timeseries in the ThresholdValueSets.xml file matches the period of the imported timeseries in the workflow. If this is not the case, not all import values will be validated.
Code Block |
---|
language | xml |
---|
title | workflow.xml |
---|
|
<activity>
<runIndependent>false</runIndependent>
<moduleInstanceId>ThresholdChecks</moduleInstanceId>
</activity> |
Set relativeViewPeriod correctly in ThresholdValueSets.xml
Code Block |
---|
language | xml |
---|
title | thresholdvaluesets.xml |
---|
|
<timeSeriesSet>
<moduleInstanceId>ImportCSV</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>H.obs</parameterId>
<locationId>Bhadra_Reservoir</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep id="daily0600"/>
<relativeViewPeriod unit="day" start="-365" end="0"/>
<readWriteMode>add originals</readWriteMode>
</timeSeriesSet> |