Instruction manual

SECTION 3. REPORT: SPLIT
3-14 PC208W, Version 3.0, Instruction Manual
element 5, subtracted from element 4. A
numeric value is distinguished from an array
element by the inclusion of a decimal point.
Variables must be declared before they can be
used in the Select line. A variable name must
start with an alpha character, can include
numbers and must not exceed eight characters.
Variable names can start with the same
character but they must not start with another
complete variable name (e.g., the variable XY is
not valid if there is also the variable X). A
comma must follow each variable statement, as
with all parameters in the Select line. Once the
variables have been declared they can be used
later in the Select line (i.e., x=4-5∗(6∗3.0),
y=6/3,2,3,6,7,7∗x,6+y). Variables can be
defined in the first four Input File’s Select lines
only, but may be used in subsequent Input File’s
Select lines.
Processing is accomplished through arithmetic
operators, math functions, spatial functions, and
time series functions. The following is a list of
operators, math functions, and Time Series
functions supported by SPLIT.
TABLE 3.3-7. SPLIT Operators, Math Functions, and Time Series Functions
OPERATORS OPERATOR PRECEDENCE ORDER
(3 = high, 1 = low)
^ = raise to the power 3
x Mod y = Modulo divide of x by y 2
∗ / = multiplication, division 2
+ - = addition, subtraction 1
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
2^3.0 raise element 2 to the third power
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) = Natural Exponent function (e
x
)
Frac(x) = Fractional portion of x
Int(x) = Integer portion of x
Ln(x) = Natural logarithm of x
Sin(x) = Sine of x (in degrees)
SpaAvg(x..y) = Spatial average of elements x through y
SpaMax(x..y) = Spatial maximum of elements x through y
SpaMin(x..y) = Spatial minimum of elements x through y
SpaSd(x..y) = Spatial standard 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