11 time series functions, details, and examples – Campbell Scientific RTDAQ Software User Manual

Page 308

Advertising
background image

Section 10. Utilities

10.3.3.1.11 Time Series Functions, Details, and Examples

TABLE 10.3-7. Time Series Functions

TIME SERIES FUNCTIONS

Avg(x;n)

=

Average

Blanks(x;n)

= Number of blanks in element

Count(x;n)

= Number of data points in element

Max(x;n)

=

Maximum

Min(x;n)

=

Minimum

RunTotal(x;n)

= Running total

Sd(x;n)

= Standard deviation

Smpl(x;n)

= Sample raw value

SmplMax(x;y;n)

= Sample (y) on a maximum (x)

SmplMin(x;y;n)

= Sample (y) on a minimum (x)

Total(x;n)

=

Totalize

WAvg(x;n)

= Unit vector mean wind direction (in degrees)

NOTE: x can be an element or a valid expression. n is optional and is the number of arrays to include in the
function. Date and Edate can be used for the “n” in the Time Series functions to produce monthly output (see
Table 10.3-8 Special Functions).


Time Series functions are used to perform vertical processing on selected
elements, such as calculating the average of an element over a specified range
of data. Time Series results are output in three instances:

1. when a Trigger on Stop Condition (F option) is met

2. at the end of a data file (or within a range specified by Start and Stop

Conditions)

3. when an interval count is met

When the Trigger on Stop Condition (or F option) is used, any time series data
defined in the Select line is output each time the Stop Condition is met. Refer
to Section 10.3.3.1.4.2 for more information on the Trigger on Stop Condition.

Results which are output at the end of a file or a range of data are referred to as
Final Summaries. A typical select line that would produce a Final Summary is:

1,2,3,4,Avg(4)

This line would output values for elements 1 through 4 each time an array was
output. Additionally, an average value for element 4 would be calculated for
the entire file and output as the last line of data in the output file.

1,2,3,4,Avg(4;24)

This line would output values for elements 1 through 4 each time an array was
output, and an average value for element 4 would be calculated every 24

th

array and output as an additional column in the file. An additional summary
would occur for an Interval Count if the count was not evenly divisible into the
number of output arrays present in the Input File. The summary, in this case,
is calculated from an incomplete interval count.

10-38

Advertising