(2a) processing: /home/adcp/procsetup_onship.py It is OK to have extra lines for unused instruments in this section. These are just look-up tables Look for the lines around line 72, and add more so it looks like this: ## for quick_adcp.py: # initialize; # fill firstdepth = {} firstdepth['wh300'] = 15 firstdepth['nb150'] = 25 firstdepth['os150bb'] = 20 firstdepth['os150bb'] = 25 firstdepth['os75bb'] = 25 firstdepth['os75nb'] = 40 # averaging interval (seconds) Do not decrease this under 120sec enslength = {} enslength['wh300'] = 120 enslength['nb150'] = 300 enslength['os150bb'] = 300 enslength['os150nb'] = 300 enslength['os75bb'] = 300 enslength['os75nb'] = 300 ## which instrument and pingtype to be used for kts+dir 5-minute vector? kt_vec = {} kt_vec['instname'] = 'nb150' ### choose an instrument and ping type kt_vec['depthrange'] = [0, 50]; ### that will exist kt_vec['prof_depthrange'] = [0, 400]; ----------------------------------------------------------------------------- (2b) matlab code, for processing. in /home/adcp/config/cruise_proc.m__ There needs to be a block for each instrument that might be used. This is just a lookup table, so it is OK if there are unused instruments in here. This code is in matlab, so "%" is a comment, whitespace is irrelevant, and all lines should be terminated by a semicolon (to suppress echo to stdout) The variable "h_align" is the transducer angle, the angle of beam 3 from the bow (positive is degrees clockwise). NOTE: the transducer alignment variable ("h_align") should be adjusted using watertrack or bottom track calibration, and should be correct to within 0.2-0.3deg. The nominal value for h_align (nearest whole 5deg) is the value that should be used in the EA command in sensor_cfg.py There are three kines of blocks: (1) ocean surveyor, (2) workhorse (3) narrowband. An example of each is given below. %--------------- % Here is a block of code for OS75. The whole block is indented for clarity. % Create a similar block for os150 or os38 by copying this block, and then % replacing all instances of "os75" with "os150" or "os38", respectively. %% OS75 processing parameters os75.ducer_depth = 5; os75.h_align = 43.5; % 45.0 - xx.x (where xx.x is from cal/watertrack) %--------------------------------- %% OS75, BB pings % processing sources: os75.bb.h_align = os75.h_align; os75.bb.ducer_depth = os75.ducer_depth; os75.bb.velscale = 1.0; os75.bb.interval = 300; % os75.bb.editcfg.weakprof_numbins = 4; %--------------------------------- %% OS75, NB pings % processing sources: os75.nb.h_align = os75.h_align; os75.nb.ducer_depth = os75.ducer_depth; os75.nb.velscale = 1.0; os75.nb.interval = 300; % os75.nb.editcfg.weakprof_numbins = 2; %------------------------------------------------------- % Here is a similar block for nb150. %%%% NBP NB150 processing parameters nb150.ducer_depth = 5; nb150.h_align = 3.7; %% nominal - cal watertrk % processing sources: nb150.nb.h_align = nb150.h_align; nb150.nb.ducer_depth = nb150.ducer_depth; nb150.nb.interval = 300; nb150.nb.beamangle = 30; 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 % and for wh300 %%%% NBP NB150 processing parameters wh300.ducer_depth = 7; wh300.h_align = 44.1; % nominal - cal watertrk % processing sources: wh300.bb.h_align = wh300.h_align; wh300.bb.ducer_depth = wh300.ducer_depth; wh300.bb.interval = 300; wh300.bb.velscale.soundspeed = []; wh300.bb.velscale.scalefactor = 1.0; %% also apply this scale factor At the end of the file, the instruments specified, or at least the instruments to be used, should be gathered in a structure statement: Choose only one line, which uses all relevant instruments. % melville, now allparams = struct('os75', os75, 'nb150', nb150); % if wh300 is added to the back allparams = struct('os75', os75, 'nb150', nb150, 'wh300', wh300); % if os150 is added to the back allparams = struct('os75', os75, 'nb150', nb150, 'os150', os150); % after nb150 is removed allparams = struct('os75', os75, 'os150', os150, 'wh300', wh300);