# This configuration file is Python code. You should not # need to change it; but if you do, you need to know that # in Python, the *indentation matters*. # The following will normally be empty lists, like this: # #ignore_ADCPs = [] #ignore_other_sensors = [] # # But if you want to run with only a subset of the ADCPs # and/or ancillary sensors that are defined in this file, # you can list the ones you want to ignore like this: # #ignore_ADCPs = ['wh300', 'os75'] #ignore_other_sensors = ['GPS'] # # In this case, you are listing the 'instrument' field of each # ADCP or sensor you wish to exclude. # ignore_ADCPs = [] ignore_other_sensors = [] # 2-letter abbreviation for logging file prefix and constructing dbase name; # read by procsetup.py shipabbrev = "rr" ADCPs = [ { 'instrument' : 'nb150', 'setup' : 'rdi_setup', 'terminal' : 'nb_term', 'defaultcmd' : 'nb150_default.cmd', 'commands' : (), 'datatypes' : ('nb150',), 'wakeup_baud' : 19200 } ] common_opts = '-f %s -F -m 1 -H 2 ' % (shipabbrev,) # In the following list of "sensors" (which are simply serial streams # being logged) the ADCPs must come first, and they must come in # the same order as in the ADCPs list above; that is, there must # be a 1:1 correspondence between the instrument fields in the # ADCPs list and those in the first entries in the sensors list. sensors = [ { 'instrument' : 'nb150', # Passive logging of NB150 'device' : 'ttyS0', 'baud' : 19200, 'format' : 'binary', 'subdir' : 'nb150', 'ext' : 'raw', 'opt' : '-rlE -c -I'}, # Again, -I option. { 'instrument' : 'GP90 GPS', 'device' : 'ttyR0', 'baud' : 4800, 'format' : 'ascii', 'subdir' : 'gpsnav', # changed 2007/02/06 JH 'ext' : 'gps', 'strings' : ('$GPGGA',), 'messages' : ('gps',), 'opt' : '-tc'}, { 'instrument' : 'Sperry Gyro', 'device' : 'ttyR1', 'baud' : 9600, 'format' : 'ascii', 'subdir' : 'gyro', 'ext' : 'hnc', 'strings' : ('$HEHDT',), 'messages' : ('hnc',), 'opt' : '-t -s2 '}, #needs to be subsampled?? { 'instrument' : 'Ashtech', 'device' : 'ttyR2', 'baud' : 9600, 'format' : 'ascii', 'subdir' : 'ashtech', 'ext' : 'adu', 'strings' : ('$GPGGA', '$PASHR,ATT'), 'messages' : ('gps', 'adu'), 'opt' : '-tc'}, { 'instrument' : 'PHINS', 'device' : 'ttyR5', 'baud' : 9600, 'format' : 'ascii', 'subdir' : 'phins', 'ext' : 'hdg', 'strings' : ('$HEHDT',), 'messages' : ('hdg',), 'opt' : '-tc -s5'}, # comes in at 5Hz ] ## enabling or disabling this occurs in procsetup_onship.py speedlog_config = { 'instrument' : 'nb150', 'serial_device' : '/dev/ttyR7', 'baud' : 9600, 'dir_output' : '', 'heading_offset' : 46.0, 'scale' : 1.0, 'bins' : (1,12), 'heading_sensor' : 'ashtech', 'heading_msg' : 'adu', 'soundspeed_sensor' : None, 'soundspeed_msg' : 'snd', 'nominal_soundspeed': 1536.0, } #### DO NOT CHANGE the following ################ ADCPs = [A for A in ADCPs if A['instrument'] not in ignore_ADCPs] sensors = [S for S in sensors if S['instrument'] not in ignore_ADCPs] sensors = [S for S in sensors if S['instrument'] not in ignore_other_sensors]