%% cruise configuration file template, used by cruisesetup.py

%% Edit this section to specify sources for position and attitude
%% (see below for examples of {instrument, message} pairs)

%%
%%                   instrument        message
%%                   ---------        --------
best.gps_rule  =    {'gpsnav',         'gps'};  %% usually pcode or other gps 
best.pitch_rule =   {'posmv',          'pmv'};  %% recorded, but not implemented
best.roll_rule  =   {'posmv',          'pmv'};  %% recorded, but not implemented


%% choose instrument to correct gyro  (at sea: this field was created
%%        using the value specified in  procsetup_onship.py)
%% Must be an available attitude.  "disable" by setting to 'gyro';
hcorr_inst = 'posmv';  %% eg 'posmv'

%% 
%% -----------------------------------------------------------------------------

%% how to specify position and attitude messages:

%%  This cellarray "msg_info" holds a list of all possible serially-logged rbin
%%  directories and the message names extracted from them.  This is
%%  only edited to ADD a new instrument.  Instruments with rbin files
%%  available are extracted as needed (see below for determination of "best"
%%  --> See "help get_instfields"   for more info
%%
%%      directory    extension   extension
%%                    to read     to write
%%     -----------  ---------   ----------
%%       {'gyro'  ,  'hdg',         %% gyro heading
%%       'ashtech',  'adu',         %% attitudes from adu
%%       'posmv',    'pmv',         %% attitudes from posmv
%%       'seapath',  'sea',         %% attitudes from seapath
%%       %
%%       'gpsnav',   'gps',         %% positions from generic GGA (eg. pcode)
%%       'simrad',   'gps',         %% positions from simrad
%%       'ashtech',  'gps',         %% positions from adu
%%       'posmv',    'gps',         %% positions from posmv
%%       'seapath',  'sea_gps',     %% positions from seapath
%%       %
%%       'sndspd',   'spd'},        %% soundspeed sensor (polar ships)
%%
%% %if msg_info is specified below, it overrides the default (which
%%          uses everthing)


%% These are unlikely to change.
best.rules = {'gps', 'heading', 'pitch', 'roll'};
best.heading_rule = {'gyro',           'hdg'};  %% "best" = "most reliable"

%% these variables are used by quick_adcp.py

yearbase = 2006;               % yearbase
cruiseid = 'kn182_15b';             % a title string, cruise designation
uhdas_dir = '/home/data/kn182_15b';   % root for dirs: raw, rbin, gbin, proc

%% PATHS

% set full paths to raw  bin, gbin, and processing  directories
rawdir   =  fullfile(uhdas_dir, 'raw');
rbindir  =  fullfile(uhdas_dir, 'rbin');

% directory to write processing log files
logfpath  =  fullfile(uhdas_dir, 'proc/proclog');

gbindirbase  =  fullfile(uhdas_dir, 'gbin');    %<--
         %contains son125, os38b, os38n for gbin subdirs (time, best...)




