Campbell Scientific PC208 Datalogger Support Software User Manual
Page 64

SECTION 4. SPLIT
4-10
EXAMPLES OF SYNTAX FOR MATHEMATICAL OPERATORS
3*5
multiply element 3 by element 5
3/5
divide element 3 by element 5
(3..5)/(8..10)
same as 3/8, 4/9, 5/10
3+5
add element 3 to element 5
3-5
subtract element 5 from element 3
(3,9,5)-(8,7,10)
same as 3-8, 9-7, 5-10
3*2.0
multiply element 3 by a fixed number 2
MATH FUNCTIONS
Abs(x)
= Absolute value of x
Arctan(x)
= Arc tangent of x (in degrees)
Cos(x)
= Cosine of x (in degrees)
Exp(x)
= Exponential (ex)
Frac(x)
= Fractional portion of x
Int(x)
= Integer portion of x
Ln(x)
= Natural log of x
Sin(x)
= Sine of x (in degrees)
SpaAvg(x..y)
= Spatial average of elements x through y
SpaMax(x..y)
= Spatial max of elements x through y
SpaMin(x..y)
= Spatial min of elements x through y
SpaSd(x..y)
= Spatial std. deviation of elements x through y
Sqrt(x)
= Square root of x
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 (see SPECIAL
FUNCTIONS, this Section)
Illegal operations (e.g., log of a negative
number) will cause SPLIT to store blanks for the
OUTPUT. It is possible to get a run time error
(error 0/1) if the floating point math exceeds the
limits of the PC.
The greatest number that can be OUTPUT is
determined by the field width (Table 4.3-2, /#
option). If the width is 8 or greater the
maximum number is 99999; for widths less than
8 the maximum is 9999. Larger numbers will be
stored as 99999 or 9999.
SPECIAL FUNCTIONS
Crlf
= Insert carriage return line
feed in Output file.
Date(doy;y)
= Convert Julian day to
calendar date, where
doy=day of year and
y=year. Format is MM-
DD. When used as the
interval, n, with Time
Series Functions (see
example, this Section),
Date triggers monthly time
series summaries.