Math Functions > General Functions


Generate Data Pairs

The Generate Data Pairs function generates a paired data set by pairing values (by time) from two time series data sets.  The data pairs in the paired data set may optionally be sorted by ascending x-value.  An example use of the function would be to mate a time series record of stage to one of flow to generate a stage-flow paired data set. 

 

The times in the two time series data sets must match exactly.  If a value for a time is missing in either time series, no data value pair is formed and added to the paired data set. 

 

Units and parameter type from the primary time series data set are assigned to the paired data set x-units and x-parameter type.  Units and parameter type from the second time series are assigned to the paired data set y-units and y-parameter type. 

 

To generate a paired data set by pairing values in two time series data sets:

  1. Choose the General tab of the Math Functions screen and select the Generate Data Pairs operator.
  2. From the Selected Data Set list, select the primary time series data set.  Time series values from this data set will comprise the x-values of the resultant paired data set.
  3. From the Data Set list, select the second time series data set.  Time series values from this data set will comprise the y-values of the resultant paired data set.
  4. Check the Sorted box if the data pairs are to be sorted by ascending x-values.
  5. Click Compute.

If time points in the two time series data sets do not match exactly, an error message will be posted and the function operation will not performed.