%%%%%%%%%%%%%%%%%%%%% raw logging %%%%%%%%%%%%%%%%%%

%% cruise configuration file template, used by cruisesetup.py
%% to write  ZHNG10RRcfg.m

%% Things marked with arrows may change if the installation
%% changes; this may be automated later, but for now it must
%% be done manually.

%% these variables are used by quick_adcp.py


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

%% startcruise.py should get instrument names from config/sensor_cfg.py

%%              directory    extension   extension
%%                           to read     to write

%  no posmv instrument exists;
% leave out the seapath attitude until we know what to do with it
msg_info = { 'gpsnav',   'gps',         %% positions from ashtech
             'gyro'  ,    'hdg',         %% gyro heading
             'ashtech',   'adu'};        %% attitude from ashtech


%% write the rules.
%% Only include the fields with values. they must be IN ORDER

best.rules = {'gps', 'heading', 'pitch', 'roll'};

%% rules for fields that have rules
%%                                                         (rule)
%%                  directory       rbin_suffix        reference_to

%% 2004/06/05 : until pcode comes back
best.gps_rule  =    { 'gpsnav',        'gps'};      %%best is pcode
best.heading_rule = { 'gyro',          'hdg'};
best.pitch_rule =   { 'ashtech',       'adu'};
best.roll_rule  =   { 'ashtech',       'adu'};


% 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');


%%%%%%%%%%%%%%%%%% processing (quick_adcp.py) %%%%%%%%%%%%%%%%%%

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


