% 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 = 45;     % tweak as h_align - btcaluv.out
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      = 2;   % for 3-beam sol; beam 2 is bad


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

