43 abs(x), 44 fractional value of x, 45 integer value of x – Campbell Scientific CR23X Micrologger User Manual
Page 167: 46 x mod f, 47 xy, 48 sin(x), 49 spatial maximum

SECTION 10. PROCESSING INSTRUCTIONS
10-3
*** 43 ABS(X) ***
FUNCTION
Take the absolute (ABS) value of X and place
the result in an input location.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
4
Input location of X
[X]
02:
4
Dest. input location for
ABS(X)
[Z]
Input locations altered:
1
*** 44 FRACTIONAL VALUE OF X ***
FUNCTION
Take the fractional (FRAC) value (i.e., the non-
integer portion) of X and place the result in an
input location.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
4
Input location of X
[X]
02:
4
Dest. input location for
FRAC(X)
[Z]
Input locations altered:
1
*** 45 INTEGER VALUE OF X ***
FUNCTION
Take the integer (INT) value of X and place the
result in an input location.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
4
Input location of X
[X]
02:
4
Dest. input location for
INT(X)
[Z]
Input locations altered:
1
*** 46 X MOD F ***
FUNCTION
Do a modulo divide of X by F and place the
result in an input location. X MOD F is defined
as the REMAINDER obtained when X is divided
by F (e.g., 3 MOD 2 = 1). X MOD 0 returns X.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
4
Input location of X
[X]
02:
FP
Fixed divisor
[F]
03:
4
Dest. input loc. For X
MOD F
[Z]
Input locations altered:
1
*** 47 X
Y
***
FUNCTION
Raise X to the Y power and place the result in
an input location.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
4
Input location of X
[X]
02:
4
Input location of Y
[Y]
03:
4
Dest. input location for
X
Y
[Z]
Input locations altered:
1
*** 48 SIN(X) ***
FUNCTION
Calculate the sine of X (X is assumed to be in
degrees) and place the result in an input
location. The cosine of a number can be
obtained by adding 90 to the number and taking
the sine (COSX = SIN (X + 90)).
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
4
Input location of X
[X]
02:
4
Dest. input location for
SIN(X)
[Z]
Input locations altered:
1
*** 49 SPATIAL MAXIMUM ***
FUNCTION
Find the spatial maximum (SPA MAX) value of the
given set or SWATH of input locations and place
the result in an input location.
To find the input location where the maximum
value occurs, add 1000 to the input location
number destination selected [Z] and enter this
modified location number as Parameter 03. The
input location ID of the maximum value observed
will then be stored in destination [Z] plus 1.