Scripting > Math Functions


Screen for Erroneous Values Based on Maximum/Minimum Range

 
screenWithMaxMin(floating-point minValueLimit,

      floating-point maxValueLimit,

      floating-point changeLimit)

 

Flag values in time series exceeding minimum and maximum limit values or maximum change limit.

 

Values in the time series are screened for quality. Values below minValueLimit or above maxValueLimit or with a change from the previous time series value greater than changeLimit fail the quality test.  The maximum change comparison is done only when consecutive values are not flagged.

Values failing the screening test are set to the "Missing" value.

 

Parameters:

        minValueLimit - minimum valid value limit.

        maxValueLimit - maximum valid value limit.

        changeLimit - maximum change allowed in the tested value from the previous time series value.

Example:

        screenedData = screenWithMaxMin(

   floating-point minValueLimit,

   floating-point maxValueLimit,

   floating-point changeLimit)

Returns:  a copy of the time series with values failing the quality test set to missing.