Scripting > Math Functions


Reverse Rating Table Interpolation

reverseRatingTableInterpolation(TimeSeriesMath tsData)

 

Transform/interpolate values in the time series data set tsData using the reverse of the rating table stored in the current paired data set.  For example, the function may be used to transform a time series of flow to a time series of stage using a stage-flow rating table.  tsData may be a regular or irregular time interval data set.  Missing values in tsData are kept missing in the resultant data set.

 

The paired data set should be created with the rating table option to set values for “datum”, “shift”, and “offset.”  By default, these values are 0.0.  The shift is subtracted from, and the datum added to all input time series values.  If the rating table is Log-Log, the table x-values are adjusted by subtracting the offset.  Refer to the ratingTableInterpolation() description for comparison to this function.

Units and parameter type in resultant time series data set are defined by the x-units label and parameter type of the current paired data set.  All other names and labels are copied over from the tsData.

 

See also:  ratingTableInterpolation

Parameters:

tsData – A regular or irregular interval TimeSeriesMath object.

Example:

tsStage =

    stageFlowCurve.reverseRatingTableInterpolation(

tsFlow)

Returns:  A new TimeSeriesMath object.