5 copy, Copy -52 – Campbell Scientific LoggerNet Datalogger Support Software User Manual

Page 350

Advertising
background image

Section 8. Working with Data Files on the PC

A typical application for the Trigger on Stop Condition is to reduce days of

hourly data into daily summaries. A logical element to use for the Stop

Condition is time (hrmn). Assuming the third element of the hourly Output

Array is hrmn, and midnight is output as 0, the Stop Condition is entered as

3[0] (or F,3[0] if the F option is used). The Time Series processing is

performed over a day defined by midnight to midnight.

If only hourly Output Arrays were contained in the Input File, the Copy line

could be left blank. If other Output Arrays are present which need not be

included in the Time Series processing, a logical Copy condition would be the

Output Array ID of the hourly output.

The Trigger on Stop Condition functions the same for multiple Input files as it

does for a single Input File. If the option is enabled on several Input Files, and

the Stop Conditions do not occur at the same point in each file, when a file’s

Stop Condition is met, its time series data are output and blanks are output for

data selected from the other Input Files.

Say, for example, that you were interested in the average value of the first data

point (element 2) for each test, in the data set listed in TABLE 8-2. The Input

File template would look like that shown in TABLE 8-4.

TABLE 8-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)

8.2.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 8.2.3.1.3, Start Condition) can be used when specifying

the Copy condition.

For example, referring to TABLE 8–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 8–1, conform to the

above Copy conditions.

8-52

Advertising