Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Allow nulls: This functionality allows the aggregation to ignore/show any null values. It works with the repeating date range filter and all aggregation methods.

Transforms, as its name suggests, Transforms allow you to modify (or transform) the view of the data. Once generated, they can be used as a template for another action, such as applying to custom charts. Transforms are a form of data manipulation. They are centrally managed using the Transforms Manager and Manager and are saved with the project.

Info
iconfalse
Note: Applying a transform results in changes to all three data views - Charts, Tables and Statistics tabs. Refer to Data manipulation in Results manager.

Working with transforms

Working with transforms is a two-step process:

...

.

Data manipulation

Anchor
DataManipulation
DataManipulation
There are two main methods for manipulating a single result in Results Manager; applying a transform and changing the chart type. A chart type must be selected and can be changed in the Chart tab. Applying a transform is optional. Both of these changes will affect your result in all three data views (Chart, Table and Statistics; Figure 1). For example, if you add a date filter and change the chart type to cumulative, the statistics will update to reflect both these manipulations, ie. the mean will be the mean of the filtered, cumulative data. Note that filtering your data using the search feature in the Table tab does not affect the chart or the statistics. 

Figure 1. Results Manager, single result data manipulation

Image Added 


The same two methods of data manipulation apply in a custom chart. However, any transforms that are applied to single results remain applied to those results in the custom chart. You can then apply transforms to the custom chart, and these will affect all results in the custom chart, regardless of what other transforms were applied to the individual results (Figure 2). For example, if you had observed flow at a daily time step, and the rest of your model was at a monthly time step, you could load the observed flow time series and aggregate it to a monthly time step using an aggregator transform. Then, you could add it to a custom chart with modelled flow, and investigate the low flows by applying a number filter transform to the custom chart. Note that for custom charts, while the Data tab lists the results in the custom chart, it does not indicate whether a transform has been applied to those individual results.

Figure 2. Results Manager, complex data manipulation

Image Added

Creating transforms

Transforms are created and configured using the Transforms Manager (Figure 13).

  1. First open it the Transform Manager using one of the following methods:
    • The Options menu;
    • The Results manager toolbar; or
    • The equivalent hotkeys (Ctrl+Shift+T). 
  2. Then, specify the type of transform using the Add transform drop-down menu;
  3. Configure it the transform using the pane on the right.

...

To delete a transform, select it from the list, then click Remove transform in the toolbar.

Figure

...

3. Transforms Manager

Applying transforms

Info
iconfalse
Note: Transforms should have units compatible with the data they are being applied to. 

Once defined, transform can be applied to charts in one of two ways:

  • In the tree menu of the Results Manager, right click on the result and choose Add Transform » <name of transform>; or
  • In the Transform application Transforms tab (Figure 24), enable the transform you wish to apply (below the Search functionality).
    • The panel on the left shows all the transforms that have been defined. Only compatible transforms will appear
    • The panel on the right provides a summary of all the applied transforms. 
    • Transforms are applied in the order they appear (ie. from top to bottom). The They can be re-ordered by dragging them up or down the list. You can get different results by applying transforms in a different order.

Once a transform has been applied, the transformed result(s) will be displayed in the Charts tabChart, Table and Statistics tabs.

Figure

...

4. Transform application tab

Anchor
TypesOfTransforms
TypesOfTransforms
Types of transforms

There are six types of transforms available in Source.

Aggregator

This transform (Figure 5) aggregates a shorter timestep to a longer timestep, eg. aggregates daily data to monthly or yearly using one of the aggregation methods described in Table 1.

Info
iconfalse
Note: When choosing a yearly time-step, you must also specify the start date of the water year.
Table 1. Transform aggregation methods
Aggregation methodDescriptionExample for aggregating rainfall from a daily to a monthly timestep
Max

Returns the maximum value for the original timestep for each aggregated timestep.

The minimum maximum daily rainfall value for that month.
MinReturns the minimum value for the original timestep for each aggregated timestep.The maximum minimum daily rainfall value for that month.
MeanReturns the mean of all values for the original timestep for each aggregated timestep.The mean daily rainfall for all days that month.
Percentile

For each aggregated timestep, returns the value below which x% of all values for the original timestep fall.

When percentile equals 75, 75% of the days of the month have rainfall below this value.
Standard deviationReturns the standard deviation of all values for the original timestep for each aggregated timestep.The standard deviation in daily rainfall for all days that month.
SumReturns the sum of all values for the original timestep for each aggregated timestep.The sum of the daily rainfall values for that month (ie. total monthly rainfall).
Figure

...

5. Aggregator transform

...

Date range filter

This transform returns values within the entered date range (Figure 6). Note that the start date must be before the end date. Select 'Add' to enter another date range, this can be done multiple times. The filter will return all values that match any of the date ranges entered (ie. this transform returns values within either the first date range or second date range, etc.). In comparison, if you create two date range filter transforms each with a single date range, and apply both transforms to a result, only values that are within the overlap between both date range filters will be returned (ie. applying multiple date range filter transforms returns the overlap between the first date range filter and the second date range filter, etc).

...

  • Enable the Start date checkbox only. This will display all values from the date specified to the last date in the time series;
  • Enable the End date checkbox only to display all values from the first date in the time series to the specified end date; and 
  • Enable both the Start Date and End Date checkboxes to specify either a range;

...

  • single date range, or when specifying multiple different date ranges, you can enable/disable a combination of start and end dates.
Figure 6. Date range transform

Inverter 

As its name suggests, this transform returns the inverted values of a result, ie. it multiples multiplies all values by -1.

Number range filter

This transform returns values within the range of entered numbers (Figure 7). You can choose:

  • A single range (for eg. > 25). In this case, values that are above 25 will be displayed in the chart;
  • A combination of ranges. By enabling the second range, and using and/or, you can filter all values that match the ranges of numbers specified.

Note that you must also specify units for both ranges.

...

 Figure 7. Number range transform

Percentile range filter

The percentile is a statistical measure, used to indicate the value below which a given percentage of data falls. For example, the 20th percentile is the value below which 20% of data may be found. So, if you configure < 20 percentile, this refers to the smallest 20% of all values. 

This window transform (Figure 8) works in a similar way to the Number range transform. The values entered must be real numbers between the range 0 and 100.

Figure

...

8. Percentile range transform

Image Modified

Repeating range filter

This transform The repeating range filter works in a similar way to the Date range transform, without the year. For the example shown in Figure 9, if the transform is applied, the view will consist of data from April to June (first range) 

...

and from September to December (second range) for every year included in your data. If you want to cover a repeating date range that goes over the 31st December and 1st of January, you will need to use two date ranges - one up to 31st December and one from 1st January. Figure 9 shows how to create a repeating date range for 20th October to 20th March.

Figure 9. Repeating range transform

Image Modified


Allow nulls:

This functionality allows the aggregation to ignore/show any null values. It works with the repeating date range filter and all aggregation methods.

Image Added