beautypg.com

5 spatial processing – Campbell Scientific CR200/CR200X-series Dataloggers User Manual

Page 115

background image

Section 10. CRBASIC Programming Instructions

LOG

Returns the natural logarithm of a number. Ln and Log perform the same

function.

Syntax

x = LOG(source)

x = LN(source)

Note LOGN = LOG(X) / LOG(N)
LOG10

The LOG10 function returns the base 10 logarithm of a number.

Syntax

x = LOG10 (number)

MOD

Divides two numbers and returns only the remainder.

Syntax

result = operand1 MOD operand2

RectPolar

Converts from rectangular to polar coordinates.

Syntax

RectPolar (Dest, Source)

SGN

Finds the sign value of a number.

Syntax

x = SGN(source)

Sqr

Returns the square root of a number.

Syntax

x = SQR(number)

10.6.5 Spatial Processing

AvgSpa

Computes the spatial average of the values in the source array.

Syntax

AvgSpa (Dest, Swath, Source)

CovSpa

Computes the spatial covariance of sets of data.

Syntax

CovSpa (Dest, NumOfCov, SizeOfSets, CoreArray,

DatArray)

MaxSpa

Finds the maximum value in an array.

Syntax

MaxSpa (Dest, Swath, Source)

103