3 special functions, details and examples – Campbell Scientific PC208 Datalogger Support Software User Manual

Page 68

Advertising
background image

SECTION 4. SPLIT

4-14

Smpl(x;n)

returns a sample of element
x every nth value. The
Sample function must always
have an interval specified.
Examples:
Smpl(4;8) = 23.98 (RH every
8 hours)
24.31 (RH every 8 hours)
37.13 (RH every 8 hours)

SmplMax(x;(y);n) looks for a maximum

value in element x and
samples element y when the
maximum is found. If an nth
value is specified then it
outputs the sample on a
maximum every nth value,
otherwise it outputs the
sample on a maximum at the
EOF.
Examples: SmplMax(5;(3)) =

55.48 (on max
wind speed
sample
temperature)
SmplMax(5;(3,6);
8) = 56.57 307.3
60.93 317.5
55.48 338.7

(on max wind speed sample
temperature and wind
direction every 8 hours)

SmplMin(x;(y);n)

looks for a minimum

value in element x and
samples element y when the
minimum is found. If an nth
value is specified then it
outputs the sample on a
minimum every nth value,
otherwise it outputs the
sample on a minimum at the
EOF. Examples:
SmplMin(3;(5)) = 11.86 (on
min temp sample wind
speed)
SmplMin(3; (5,6);8) = 8.99
317.7
5.458 312
11.86 351.6
(on min temperature sample
wind speed and wind
direction every 8 hours)

Total(x;n)

returns the total of element x
over a data set or every nth
value.
Examples:

Total(5) =
211.36 (daily
wind run)

WAvg(x;n)

returns the unit vector mean
wind direction in degrees of
element x (wind direction in
degrees) over a full data set
or every nth value.
Example:
WAvg(6) =

323.14 (mean wind

direction for the
day)

WAvg(6;4) =

333.41 (mean wind

direction for 4
hours)

315.73 (mean wind

direction for 4
hours)

306

(mean wind
direction for 4
hours)

314.92 (mean wind

direction for 4
hours)

341.03 (mean wind

direction for 4
hours)

328.09 (mean wind

direction for 4
hours)

4.3.6.3 SPECIAL FUNCTIONS, DETAILS AND
EXAMPLES

The Mount Logan Peak data set is used for the
Special Function examples. These functions
are helpful in converting day of year to months
and days of month and formatting the output.

Crlf

returns a carriage return and
line feed where the Crlf is
placed in the parameter file.
Examples:

Smpl("Max
Temp";24),Max(3;24),

Smpl(Crlf;24),Smpl("Max
RH";24),Max(4;24)
= Max Temp 67.33

Max RH

38.8

Advertising