NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/tower_buoy/bin/meta_data/parse.table

Revision 7 (checked in by cbc, 18 years ago)

--

Line 
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 #GPS1                  "\>RPV([0-9]*)\+([0-9]*)\-([0-9]*)\;\*[0-9]*\<"   $junk,$gps_lat,$gps_lon
13 #GPS1                  ">RPV(.{5})\+(.{7})[\+\-]{1}(.{7})[.]{8}\;[.]{3}\<"   $junk,$gps_lat,$gps_lon,$junk2
14 GPS1                  ".{11}(.{7}).(.{7}).*"          $gps_lat,$gps_lon
15 BOOT                  (.*)                            $boot_time
16 SAMPLE_LOOP           (.*)                            $read_time
17 #ID                   (.*)                            $tower_id
18 #SOFTWARE             (.*)                            $software_version
19 SAMPLE_INTERVAL       (.*)                            $sample_interval
20 NEWFILE_INTERVAL      (.*)                            $newfile_interval
21 #serial               (.*)                            $serial_string
22 TT                    (.*)                            $t_time
23 #RLCAD                (.*)                            $rlc_string
24 #BBAD                 (.*)                            $bnb_string
25 CLOCK                 (.*)                            $sample_loop
26 #SAMPLE_LOOP          (.*)                            $sample_loop
27 #LINK                 "(.....)(.*)"     $link_time,$kw_hrs
28 LINK                  "([0-9]*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*)"     $link_time,$kw_hrs,$amps,$volts,$amp_hrs,$p_amp_hrs,$p_amps,$time_remain,$bar_graph,$box_temp
29 #LINK                  "([0-9]*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*)"     $link_time,$kw_hrs,$amps,$volts,$amp_hrs,$p_amp_hrs,$p_amps,$time_remain,$bar_graph
30
31 #"20522,-00.02,-0000.3,11.85,-0003.1,-0005.4,-0001.1,255.0,5,25"
32
33 DISK1                 ([0-9\.]+)%[\w\W\s]+[\s]([0-9]+\.[0-9]+)[\sM.*]             $disk1p,$disk1t
34 DISK2                 ([0-9\.]+)%[\w\W\s]+[\s]([0-9]+\.[0-9]+)[\sM.*]             $disk2p,$disk2t
35 MEM1                  ([0-9\.]+)%[\w\W\s]+[\s]([0-9]+\.[0-9]+)[\sM.*]             $mem1p,$mem1t
36 MEM2                  ([0-9\.]+)%[\w\W\s]+[\s]([0-9]+\.[0-9]+)[\sM.*]             $mem2p,$mem2t
37 #DISK2                 "(.*)\% of (.*) M.*"            $disk2p,$disk2t
38 FILES                 ([0-9]+)[\w\W\s]+[fF.*]                                      $num_files                         
39
40 #%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
41 #Met Sensors
42 #%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
43 ATEMP                 (.*)                            $a_temp
44 RH                    (.*)                            $r_hum
45 PSP                   (.*)                            $psp
46 PIRA                  (.*)                            $pir_case_t
47 PIRB                  (.*)                            $pir_dome_t
48 PIRC                  (.*)                            $pir_therm
49 BARO                  "PS\=\+[0]*([0-9]*\.[0-9]*)"    $baro
50 #RAIN                  "\*\*([0-9\.]*)"                $rain
51 RAIN                  @avg                            @cumrain
52 WSPDA                 @avg                            @wi_spd_a
53 WDIRA                 @avg                            @wi_dir_a
54 WSPDB                 @avg                            @wi_spd_b
55 WDIRB                 @avg                            @wi_dir_b
56 COMP1                 @avg                            @comp_1
57 COMP2                 @avg                            @comp_2
58 #COMP                  "\$C([0-9\.]*)P([0-9\.\-]*)R([0-9\.\-]*)T([0-9\.\*]*)"      $comp_dir,$comp_pitch,$comp_roll,$junk1
59 COMP                  @gva                            @comp  #_dir,@comp_pitch,@comp_roll
60
61 CTDA                  "TS(.*),(.*),(.*),(.*)S>"       $sal,$temp,$cond,$press
62 CTDB                  "TS(.*),(.*),(.*),(.*)S>"       $sal,$temp,$cond,$press
63
64 #CTD1                  "#00TS(.*),(.*),(.*),(.*),(.*),(.*)S>"       $sal,$temp,$cond,$press,$junk1,$junk2
65 #CTD2                  "#01TS(.*),(.*),(.*),(.*),(.*),(.*)S>"       $sal,$temp,$cond,$press,$junk1,$junk2
66
67 CTD1                  "#00TS([0-9\.]*),([0-9\.]*),([0-9\.]*),([0-9\.]*),(.*)"       $sn1,$temp1,$cond1,$press1,$junk1
68 CTD2                  "#01TS([0-9\.]*),([0-9\.]*),([0-9\.]*),([0-9\.]*),(.*)"       $sn2,$temp2,$cond2,$press2,$junk1
69
70
71 # Make sure the last data line has a carriage return for the chop statement
Note: See TracBrowser for help on using the browser.