7 Transform Functions

In RMC-TotalRisk, transform functions change one hazard type into another hazard type. For example, you can use a flow-stage rating curve derived from a hydraulic model to transform a peak flow-frequency function into a stage-frequency function. The following subsections describe each transform function option in detail.

7.1 Linear Transform Function

This option applies a simple linear function to transform one type of hazard into another:

\[\begin{equation} Y = \alpha + \beta X + \varepsilon \tag{7.1} \end{equation}\]

where \(\varepsilon \sim N(0, \sigma)\).

To create a linear transform function, right-click on the Transforms folder in the Project Explorer (Figure 7.1) or from Project Menu > Transforms and select Add Linear Transform…. Enter a name for the linear transform function and click OK.

The Add Linear Transform option under the right-click menu of Transforms on the left, and the Linear Transform dialog box on the right allowing the user to enter the name of the transform.

Figure 7.1: Create new linear transform function.

Creating a new linear transform function opens the Tabbed Documents area, and the Properties window displays the transform function properties (Figure 7.2). In the Properties window, you can set the name, description, hazard type, hazard units, transformed hazard, transformed units, and linear transform parameters. Unchecking the Uncertainty On checkbox removes the standard error (\(\sigma\)) parameter and the error term (\(\varepsilon\)), and only the slope (\(\beta\)) and intercept (\(\alpha\)) are required.

Properties window displaying name, description, hazard type, hazard units, transformed hazard, and transformed units. There is a check box for including uncertainty and text boxes to specify linear transform parameters.

Figure 7.2: Linear transform function properties.

The Tabbed Document for a linear transform function includes a graphical representation of the function (Figure 7.3).

A plot displaying mean and 90% confidence interval of Stage-Flow linear transform function with Flow in cfs on the x-axis and Stage in ft on the y-axis.

Figure 7.3: Linear transform function graphical display.

7.2 Power Transform Function

This option applies a power function to transform one type of hazard into another:

\[\begin{equation} Y = \left[ \alpha (X - \xi)^\beta \right] \cdot \varepsilon \tag{7.2} \end{equation}\]

where \(\varepsilon \sim N(0, \sigma)\). Ensure the standard error (\(\sigma\)) is in log-space.

To create a power transform function, right-click on the Transforms folder in the Project Explorer (Figure 7.4) or from Project Menu > Transforms and select Add Power Transform…. Next, give the power transform function a name and click OK.

The Add Power Transform option under the right-click menu of Transforms on the left, and the Power Transform dialog box on the right allowing the user to enter the name of the transform.

Figure 7.4: Create new power transform function.

Creating a new power transform function opens the Tabbed Documents area and displays the Properties window with the transform function properties (Figure 7.5). In the Properties window, you can set the name, description, hazard type, hazard units, transformed hazard, transformed units, and power transform parameters. Unchecking the Uncertainty On checkbox removes the standard error (\(\sigma\)) parameter and the error term (\(\varepsilon\)), and only the coefficient (\(\alpha\)), exponent (\(\beta\)), and location (\(\xi\)) are required.

Properties window displaying name, description, hazard type, hazard units, transformed hazard, and transformed units. There are check boxes for inverse function and including uncertainty, and text boxes to specify power transform parameters.

Figure 7.5: Power transform function properties.

The Tabbed Document for a power transform function contains a graphical representation of the function (Figure 7.6).

A plot displaying mean and 90% confidence interval of Stage-Flow power transform function with Flow in cfs on the x-axis and Stage in ft on the y-axis.

Figure 7.6: Power transform function graphical display.

7.3 Tabular Transform Function

This option allows you to easily define a hazard transform function using tabular data. A common use case involves copying and pasting a transform function (e.g., a flow-stage rating curve) from another application, such as Microsoft Excel or HEC-RAS.

To create a tabular transform function, right-click on the Transforms folder in the Project Explorer (Figure 7.7) or from Project Menu > Transforms and select Add Tabular Transform…. Next, give the tabular transform function a name and click OK.

The Add Tabular Transform option under the right-click menu of Transforms on the left, and the Tabular Transform dialog box on the right allowing the user to enter the name of the transform.

Figure 7.7: Create new tabular transform function.

Creating the new tabular transform function opens the Tabbed Documents area, and the Properties window displays the tabular function properties (Figure 7.8). In the Properties window, you can specify the name, description, hazard type, hazard units, transformed hazard, transformed units, and hazard and transformed hazard interpolation methods. These interpolation transforms define how the data is interpolated when sampling values between the specified tabular ordinates.

The tabular transform properties window displaying the name, description, created on and last modified dates, the hazard type, and units, and transformed hazard and transformed units, as well as the interpolation transforms options.

Figure 7.8: Tabular transform function properties.

The Tabbed Document for a tabular function includes a table for entering data and a graphical representation of that data (Figure 7.9). You can define uncertainty for the transformed hazard at each tabular ordinate. To do this, select a distribution type and enter the corresponding parameters for each ordinate in the tabular data.

Displays the tabular transform function table and distribution selection dropdown on the left and the corresponding graph with mean, median, minimum, maximum, and 90% confidence interval on the right with Flow in cfs on the x-axis and Stage in ft on the y-axis.

Figure 7.9: Example tabular transform function transforming flow to stage.

7.3.1 Data Validation

The input data table has built-in validation. Tabular data must meet the following requirements:

  • The hazard values must be in ascending order.

  • If uncertainty is defined, each uncertain ordinate must contain valid distribution parameters.

When you enter invalid data, the table cell turns red, and a tooltip explains the error, as shown in Figure 7.10. Additionally, an error message appears in the Message window, prompting you to resolve all errors in the data table.

The flow-stage data table with invalid data cell turned red, and a tooltip displaying the source of the error.

Figure 7.10: Tabular transform function data validation.