Scripting > Math Functions


Rating Table Interpolation

ratingTableInterpolation(TimeSeriesMath tsData)

 

Transform/interpolate values in the time series data set tsData using the rating table x-y values stored in the current paired data set.  For example, you can use the function to transform a time series of stage to a time series of flow 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.

 

Create the paired data set with the rating table option to set values for “datum”, “shift”, and “offset.”  By default these values are 0.0.  The shift is added to and the datum subtracted from all input time series values.  If the rating table is Log-Log, the table x-values are adjusted by subtracting the offset.

 

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

 

See also:  reverseRatingTableInterpolation()

Parameters:

tsData – A regular or irregular interval TimeSeriesMath object.

Example:

tsFlow =

    stageFlowCurve.ratingTableInterpolation(tsStage)

Returns: A new TimeSeriesMath object.