Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
themeEclipse
firstline1
titleFilters.xml
linenumberstrue
collapsetrue
<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
languagexml
titleModuleDescriptors.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
languagexml
titleModuleInstanceDescriptors.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
languagexml
titleworkflow.xml
<activity>
	<runIndependent>false</runIndependent>
	<moduleInstanceId>ThresholdChecks</moduleInstanceId>
</activity>	

 

Set relativeViewPeriod correctly in ThresholdValueSets.xml

Code Block
languagexml
titlethresholdvaluesets.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>