% set parameters used for logging and calculations
% first field is the same as the raw logging directory (eg. os75)
% second field is the ping type (in case of interleaved pings)
%% parsed  manually or by running
%  cruise_proc; params = get_params(allparams, 'os75', 'nb');


%%  OS75 processing parameters
%h_align = 68.5;     % tweak as h_align - btcaluv.out = 45 - (-23.5) JH 2006/01/19
h_align = 67.26;     % tweak as h_align - btcaluv.out -adcpcal.out = 45 - (-23.5) JH 2006/01/19 - (1.24) fb, 1/30/06
%  the additional fine tweak of -1.24 came from bottom track cal at the end of cruise AT13 (btcaluv.out: +1.24)
ducer_depth  = 5;

%---------------------------------
%% OS75, BB pings
% processing  sources:
os75.bb.h_align      = h_align;
os75.bb.ducer_depth = ducer_depth;
os75.bb.velscale     = 1.0;


% os75.bb.editcfg.weakprof_numbins = 2;

%---------------------------------
%% OS75, NB pings
% processing  sources:
os75.nb.h_align      = h_align;
os75.nb.ducer_depth  = ducer_depth;
os75.nb.velscale     = 1.0;

%os75.nb.editcfg.weakprof_numbins = 1;    % default

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


%%%% NBP NB150 processing parameters

% processing  sources:
nb150.nb.h_align      = 45;   % tweak as h_align - btcaluv.out
nb150.nb.ducer_depth  = 5;
nb150.nb.beamangle    = 30;

nb150.nb.badbeam      = 4;   % for 3-beam sol; beam 4 appears bad on Oceanus


%%%%%%%%%%%% soundspeed correction 
%% applied to ensemble average
%%
%% set velocity scale factor:
%%
%% obsolete: (still works, but deprecated)
%%------------
%%   wh300.bb.velscale = 2.0;
%%
%% newer method:
%  -----------
%  option       what it does
%
% 'calculate'   (calc from thermistor temperature and salinity (below)
%     []         (don't change anything; i.e. use the original 1536 constant)
%   1536        (or some other constant -- use this constant
%               
%                (At some later date we could add soundspeed input directly

nb150.nb.velscale.soundspeed = 'calculate'; 
nb150.nb.velscale.salinity   = 35;         %% if 'calculate', use this S
nb150.nb.velscale.scalefactor = 1.0;       %% also apply this scale factor

allparams = struct('os75', os75, 'nb150', nb150);

