You can compute some statistics of the children locations of a parent location. This transformation is available since 2013.01.

For example: you may have a parent location that has some children locations that have all their own discharge. To compute the total sum of all the discharges you can simply use the StatisticsChildrenLocations-sum.
Therefore you define as output location (or locationSet) the parent location(s) and as input locations the children locations.

The transformation is applied to all children-parent relations (if supplied locationSet contains all these locations). However, if you have a child-parent relation and that parent has another relation to a parent ("great-parent") (so nested child-parent relations) and there's not already data present on the parent, the transformation won't go through the whole nesting. So if the parent doesn't already contain data, the parent to great-parent relation will lead to missings. To solve this you need to chain multiple transformation after another, as many as you have nestings of child-parent relations.

The possible statistics are:

  • count
  • kurtosis
  • max
  • mean
  • median
  • min
  • percentileExceedence (with % value)
  • percentileNonExceedence (with % value)
  • quartile (with quartile value)
  • rootMeanSquareError
  • rsquared
  • skewness
  • standardDeviation
  • sum
  • variance
<transformation id="aggregate laterals">
  <statisticsChildrenLocations>
    <sum>
      <inputVariable>
        <timeSeriesSet>
          <moduleInstanceId>Prep</moduleInstanceId>
          <valueType>scalar</valueType>
          <parameterId>Q</parameterId>
          <locationSetId>laterals</locationSetId>
          <timeSeriesType>temporary</timeSeriesType>
          <timeStep unit="minute" multiplier="5"/>
          <relativeViewPeriod unit="hour" start="-96" end="0" startOverrulable="true"/>
          <readWriteMode>read only</readWriteMode>
        </timeSeriesSet>
      </inputVariable>
      <outputVariable>
        <timeSeriesSet>
          <moduleInstanceId>Prep</moduleInstanceId>
          <valueType>scalar</valueType>
          <parameterId>Q</parameterId>
          <locationSetId>parents_of_laterals</locationSetId>
          <timeSeriesType>temporary</timeSeriesType>
          <timeStep unit="minute" multiplier="5"/>
          <relativeViewPeriod unit="hour" start="-96" end="0" startOverrulable="true"/>
          <readWriteMode>add originals</readWriteMode>
        </timeSeriesSet>
      </outputVariable>
    </sum>
  </statisticsChildrenLocations>
</transformation>
  • No labels