1 mathematic functions, details and examples, 2 time series functions, details and examples – Campbell Scientific PC208 Datalogger Support Software User Manual

Page 65

Advertising
background image

SECTION 4. SPLIT

4-11

Edate(doy;y) = Convert Julian day to

European date, where
doy=day of year and
y=year. Format is DD-
MM. When used as the
interval, n, with Time
Series Functions (see
example, this Section),
Edate triggers monthly
time series summaries.

"Label"

= Insert Comment in Output

file. (Label is anything
within the quote marks.)

Line

= Number of lines written to

Output file.

.PA

= Page break to printer or to

the .RPT file.

4.3.6.1 MATHEMATICAL FUNCTIONS,
DETAILS AND EXAMPLES

The following array of PRINTABLE ASCII data
will be used for all Mathematical function
examples.

0105 0176 1200 -07.89 55.10 12.45 270.5

Abs(x)

returns the absolute, or
positive value of element x.
Examples:
Abs(4) = 7.89
Abs(4*5) = 434.74

Arctan(x)

returns the arc tangent of
element x in degrees.
Examples:
Arctan(7) = 89.788
Arctan(7/6) = 87.365

Cos(x)

returns the cosine of
element x in degrees.
Examples:
Cos(5) = .57215
Cos(5-6) = .73551

Exp(x)

returns the exponential
base e to the power of
element x.
Example:
Exp(4) = .00037

Frac(x)

returns the fractional value
of the element x.
Examples:
Frac(4) = -.89
Frac(6+7) = .95

Int(x)

returns the integer portion
of the element x.
Examples:
Int(7) = 270
Int(5*6) = 685

Ln(x)

returns the natural log of
element x. Examples:
Ln(6) = 2.5217
Ln(7/6*5/1) = 2.4337

Sin(x)

returns the sine of element
x in degrees. Examples:
Sin(7) = -.99996
Sin(7-2+5) = .50603

Spatial functions, included under Mathematical
functions, operate on a per Output Array basis.
The average, maximum, minimum, and
standard deviation of a specified group of
elements within an array are calculated.

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

4.3.6.2 TIME SERIES FUNCTIONS, DETAILS
AND EXAMPLES

Time Series Functions perform vertical
processing on selected elements. Time Series
results are output only at the end of the file,

Advertising