#%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #VAR_ID #parsing tricks #parsing output #%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #System Information #%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GPS "\>(.*)\;\*[0-9]*\<" $gps_string RESET_TIME (.*) $reset_time RESET_DIFF (.*) $reset_diff GPS_TIME (.*) $gps_time BOOT (.*) $boot_time SAMPLE_LOOP (.*) $read_time #ID (.*) $tower_id #SOFTWARE (.*) $software_version SAMPLE_INTERVAL (.*) $sample_interval NEWFILE_INTERVAL (.*) $newfile_interval #serial (.*) $serial_string TT (.*) $t_time #RLCAD (.*) $rlc_string #BBAD (.*) $bnb_string CLOCK (.*) $sample_loop #SAMPLE_LOOP (.*) $sample_loop #LINK "(.....)(.*)" $link_time,$kw_hrs LINK "([0-9]*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*)" $link_time,$kw_hrs,$amps,$volts,$amp_hrs,$p_amp_hrs,$p_amps,$time_remain,$bar_graph,$box_temp #"20522,-00.02,-0000.3,11.85,-0003.1,-0005.4,-0001.1,255.0,5,25" DISK1 ([0-9\.]+)%[\w\W\s]+[\s]([0-9]+\.[0-9]+)[\sM.*] $disk1p,$disk1t DISK2 ([0-9\.]+)%[\w\W\s]+[\s]([0-9]+\.[0-9]+)[\sM.*] $disk2p,$disk2t MEM1 ([0-9\.]+)%[\w\W\s]+[\s]([0-9]+\.[0-9]+)[\sM.*] $mem1p,$mem1t MEM2 ([0-9\.]+)%[\w\W\s]+[\s]([0-9]+\.[0-9]+)[\sM.*] $mem2p,$mem2t #DISK2 "(.*)\% of (.*) M.*" $disk2p,$disk2t FILES ([0-9]+)[\w\W\s]+[F.*] $num_files #%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #Met Sensors #%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ATEMP (.*) $a_temp RH (.*) $r_hum PSP (.*) $psp PIRA (.*) $pir_case_t PIRB (.*) $pir_dome_t PIRC (.*) $pir_therm BARO "PS\=\+[0]*([0-9]*\.[0-9]*)" $baro RAIN "\*\*([0-9\.]*)" $rain WSPDA @avg @wi_spd_a WDIRA @avg @wi_dir_a WSPDB @avg @wi_spd_b WDIRB @avg @wi_dir_b COMP1 @avg @comp_1 COMP2 @avg @comp_2 COMP "\$C([0-9\.]*)P([0-9\.\-]*)R([0-9\.\-]*)T([0-9\.\*]*)" $comp_dir,$comp_pitch,$comp_roll,$junk1 CTDA "TS(.*),(.*),(.*),(.*)S>" $sal,$temp,$cond,$press CTDB "TS(.*),(.*),(.*),(.*)S>" $sal,$temp,$cond,$press #CTD1 "#00TS(.*),(.*),(.*),(.*),(.*),(.*)S>" $sal,$temp,$cond,$press,$junk1,$junk2 #CTD2 "#01TS(.*),(.*),(.*),(.*),(.*),(.*)S>" $sal,$temp,$cond,$press,$junk1,$junk2 CTD1 "#00TS([0-9\.]*),([0-9\.]*),([0-9\.]*),([0-9\.]*),(.*)" $sal,$temp,$cond,$press,$junk1 CTD2 "#01TS(.*),(.*),(.*),(.*),(.*)" $sal,$temp,$cond,$press,$junk1 # Make sure the last data line has a carriage return for the chop statement