1 |
#%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
2 |
#VAR_ID #parsing tricks #parsing output |
---|
3 |
#%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
4 |
|
---|
5 |
#%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
6 |
#System Information |
---|
7 |
#%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
8 |
GPS "\>(.*)\;\*[0-9]*\<" $gps_string |
---|
9 |
RESET_TIME (.*) $reset_time |
---|
10 |
RESET_DIFF (.*) $reset_diff |
---|
11 |
GPS_TIME (.*) $gps_time |
---|
12 |
BOOT (.*) $boot_time |
---|
13 |
SAMPLE_LOOP (.*) $read_time |
---|
14 |
#ID (.*) $tower_id |
---|
15 |
#SOFTWARE (.*) $software_version |
---|
16 |
SAMPLE_INTERVAL (.*) $sample_interval |
---|
17 |
NEWFILE_INTERVAL (.*) $newfile_interval |
---|
18 |
#serial (.*) $serial_string |
---|
19 |
TT (.*) $t_time |
---|
20 |
#RLCAD (.*) $rlc_string |
---|
21 |
#BBAD (.*) $bnb_string |
---|
22 |
CLOCK (.*) $sample_loop |
---|
23 |
#SAMPLE_LOOP (.*) $sample_loop |
---|
24 |
#LINK "(.....)(.*)" $link_time,$kw_hrs |
---|
25 |
LINK "([0-9]*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*)" $link_time,$kw_hrs,$amps,$volts,$amp_hrs,$p_amp_hrs,$p_amps,$time_remain,$bar_graph,$box_temp |
---|
26 |
|
---|
27 |
#"20522,-00.02,-0000.3,11.85,-0003.1,-0005.4,-0001.1,255.0,5,25" |
---|
28 |
|
---|
29 |
DISK1 ([0-9\.]+)%[\w\W\s]+[\s]([0-9]+\.[0-9]+)[\sM.*] $disk1p,$disk1t |
---|
30 |
DISK2 ([0-9\.]+)%[\w\W\s]+[\s]([0-9]+\.[0-9]+)[\sM.*] $disk2p,$disk2t |
---|
31 |
MEM1 ([0-9\.]+)%[\w\W\s]+[\s]([0-9]+\.[0-9]+)[\sM.*] $mem1p,$mem1t |
---|
32 |
MEM2 ([0-9\.]+)%[\w\W\s]+[\s]([0-9]+\.[0-9]+)[\sM.*] $mem2p,$mem2t |
---|
33 |
#DISK2 "(.*)\% of (.*) M.*" $disk2p,$disk2t |
---|
34 |
FILES ([0-9]+)[\w\W\s]+[F.*] $num_files |
---|
35 |
|
---|
36 |
#%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
37 |
#Met Sensors |
---|
38 |
#%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
39 |
ATEMP (.*) $a_temp |
---|
40 |
RH (.*) $r_hum |
---|
41 |
PSP (.*) $psp |
---|
42 |
PIRA (.*) $pir_case_t |
---|
43 |
PIRB (.*) $pir_dome_t |
---|
44 |
PIRC (.*) $pir_therm |
---|
45 |
BARO "PS\=\+[0]*([0-9]*\.[0-9]*)" $baro |
---|
46 |
RAIN "\*\*([0-9\.]*)" $rain |
---|
47 |
WSPDA @avg @wi_spd_a |
---|
48 |
WDIRA @avg @wi_dir_a |
---|
49 |
WSPDB @avg @wi_spd_b |
---|
50 |
WDIRB @avg @wi_dir_b |
---|
51 |
COMP1 @avg @comp_1 |
---|
52 |
COMP2 @avg @comp_2 |
---|
53 |
COMP "\$C([0-9\.]*)P([0-9\.\-]*)R([0-9\.\-]*)T([0-9\.\*]*)" $comp_dir,$comp_pitch,$comp_roll,$junk1 |
---|
54 |
|
---|
55 |
CTDA "TS(.*),(.*),(.*),(.*)S>" $sal,$temp,$cond,$press |
---|
56 |
CTDB "TS(.*),(.*),(.*),(.*)S>" $sal,$temp,$cond,$press |
---|
57 |
|
---|
58 |
#CTD1 "#00TS(.*),(.*),(.*),(.*),(.*),(.*)S>" $sal,$temp,$cond,$press,$junk1,$junk2 |
---|
59 |
#CTD2 "#01TS(.*),(.*),(.*),(.*),(.*),(.*)S>" $sal,$temp,$cond,$press,$junk1,$junk2 |
---|
60 |
|
---|
61 |
CTD1 "#00TS([0-9\.]*),([0-9\.]*),([0-9\.]*),([0-9\.]*),(.*)" $sal,$temp,$cond,$press,$junk1 |
---|
62 |
CTD2 "#01TS(.*),(.*),(.*),(.*),(.*)" $sal,$temp,$cond,$press,$junk1 |
---|
63 |
|
---|
64 |
|
---|
65 |
# Make sure the last data line has a carriage return for the chop statement |
---|