%%     Roger Revelle  ADCP configurations

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



%%%% NBP NB150 processing parameters
nb150.ducer_depth = 5;
nb150.h_align     = 2.09    %% 1.78 - (-.41 from cal/watertrk in 2005)

% processing  sources:
nb150.nb.h_align      = nb150.h_align;
nb150.nb.ducer_depth  = nb150.ducer_depth;
nb150.nb.interval     = 300;
nb150.nb.beamangle    = 30;


%%%%%%%%%%%% soundspeed correction 
%% applied to ensemble average
%%
%% set velocity scale factor:
%%
%% obsolete: (still works, but deprecated)
%%------------
%%   nb150.nb.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 = .9777;     %% also apply this scale factor


allparams = struct('nb150', nb150);


