50 spatial minimum, 51 spatial average, 52 running average – Campbell Scientific CR10X Measurement and Control System User Manual
Page 162: 53 scaling array with multiplier and offset

SECTION 10. PROCESSING INSTRUCTIONS
10-4
Parameter 3 cannot be entered as an indexed
location within a loop (Instruction 87). To use
Instruction 49 within a loop, enter Parameter 3
as a fixed location and follow 49 with the
Instruction 31 (Move Data). In Instruction 31,
enter the location in which 49 stores its result as
the source (fixed) and enter the destination as
an indexed location.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
4
Swath
[SWATH]
02:
4
Starting input location
[1ST LOC]
03:
4
Dest. input location for
maximum
[MAX or Z]
Input locations altered:
1 or 2
*** 50 SPATIAL MINIMUM ***
FUNCTION
Find the spatial minimum (SPA MIN) 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 minimum value occurs,
follow the instructions given above for SPATIAL
MAXIMUM.
Parameter 3 cannot be entered as an indexed
location in a loop. Within a loop, Instruction 50
must be used in conjunction with Instruction 31
as described for Instruction 49.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
4
Swath
[SWATH]
02:
4
Starting input location
[1ST LOC]
03:
4
Dest. input location for
minimum
[MIN or Z]
Input locations altered:
1 or 2
*** 51 SPATIAL AVERAGE ***
FUNCTION
Take the spatial average (SPA AVG) over the
given set or SWATH of input locations and
place the result in an input location.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
4
Swath
[SWATH]
02:
4
Starting input location
[1ST LOC]
03:
4
Dest. input location of
average
[AVG or Z]
Input locations altered:
1
*** 52 RUNNING AVERAGE ***
FUNCTION
This instruction calculates the running average of a
value in an input location. The most recent n values
(where n is the number specified in parameter 4)
are kept in intermediate storage. When Instruction
52 is executed, the current value is written over the
oldest value and the average of the values is
calculated and stored in the destination location.
Out of range values (displayed as -99999.) are not
included in the average.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
2
Reps (REPS)
02:
4
Input location of source
data
03:
4
Destination input location
04:
4
Number of values in
running average
window (NUMAVG)
Input locations altered: 1 per repetition
Intermediate locations required: Reps *(2+n)
*** 53 SCALING ARRAY WITH ***
MULTIPLIER AND OFFSET
FUNCTION
Take 4 input location values, multiply each by a
floating point constant, then add another floating
point constant to the resulting products and
place the final results back into each of the
original 4 input locations.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
4
First input location
[STRT LOC]
02:
FP
Multiplier 1
[A1]
03:
FP
Offset 1
[B1]
04:
FP
Multiplier 2
[A2]