11 time series functions, details, and examples, 7. time series functions -25 – Campbell Scientific PC400 Datalogger Support Software User Manual

Page 73

Advertising
background image

Section 5. Split

SpaAvg(x..y)

returns the spatial average of elements x through y.
Examples:

SpaAvg(1..7)

=

258.74

SpaAvg(1,4,7)

=

122.54

SpaMax(x..y)

returns the maximum value of elements x

through y.
Examples:

SpaMax(1..7)

=

1200

SpaMax(1,2,5) = 176

SpaMin(x..y)

returns the minimum value of elements x through y.
Examples:

SpaMin(1..7)

=

-7.89

SpaMin(1,2,5)

=

55.1

SpaSd(x..y)

returns the standard deviation of elements x through y.
Examples:

SpaSd(1..7)

=

394.57

SpaSd(5,2,1) = 49.607

Sqrt(x)

returns the square root of element x.
Examples:

Sqrt(3) = 34.641

Sqrt(3^ 2.0) = 1200

5.3.1.11 Time Series Functions, Details, and Examples

TABLE 5-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 5-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)

5-25

Advertising