5 copy, 5 copy -20, In table 5-4 – Campbell Scientific PC400 Datalogger Support Software User Manual

Page 68

Advertising
background image

Section 5. Split

TABLE 5-4. Input File Entries to Process the

First Data Point for each Test

First Input File = DATA_1.DAT:1

Stop Condition = F,1[200]

Select

=

AVG(2)

5.3.1.5 Copy

The Copy Condition tells Split which arrays should be used for the output data.
After the Start Condition is satisfied, and before the Stop Condition is met, the
Copy condition must be satisfied before any data will be processed according
to Select line instructions. If the Copy condition is left blank, all arrays are
processed between the Start and Stop values. Syntax for the Copy condition is
similar to the Start and Stop values mentioned above. Logical “and” and “or”
statements (see Section 5.3.1.3, Start Condition) can be used when specifying
the Copy condition.

For example, referring to TABLE 5-1, if only those hours during day 189 when
the temperature was above 90 and the soil temperature was below 62 is desired,
or, during day 189 when the average wind speed was below 21 while the wind
direction was between 255 to 265 is desired, the Copy condition would be:

1[189]and4[90..150]and5[0..61.99]or1[189]and6[0..20.99]and7[255..265]

Only Output Arrays with hours 1300 and 1500, TABLE 5-1, conform to the
above Copy conditions.

The Copy Condition is used almost exclusively for mixed-array
dataloggers, except when time-syncing two or more data files.
See Section 5.3.1.15, Time Synchronization, for additional
information.

NOTE

Time Ranges

When specifying a Copy condition, a range of time values can be specified
instead of a single time. If the element being tested falls within the range, the
Copy condition is satisfied and the data is processed. A range is indicated by
entering two periods between the first and last values of the range.

Examples:

Table-based

With an entry of 1:1:1[600..1200]:1 in the Copy condition, Split will only
process the data file when the time is between 6:00 a.m. and 12:00 p.m.

(Since the timestamp for table-based dataloggers is all one string, each
portion of the timestamp (year, day, hour/minute, seconds) will use the
same element number. Colons are used to separate each portion. The
format is 1[year]:1[day]:1[hhmm]:1[seconds] (the number 1 was used
since, typically, the timestamp is the first element in the data string). In
this format, hhmm is the four-digit hour/minute.)

5-20

Advertising