You’ll need to know the cruise name being used by UHDAS for logging this cruise (it’s on the top left of the green panels on the console). For example, suppose the cruise is ‘vg0601’.
Identify processing directory path for the instrument of choice. Data acquisition takes place in adcp_data under the cruise name. Processing always takes place in the ‘proc’ subdirectory, in a sundirectory named for the instrument, eg. ‘os75nb’. Data acquisition takes place in the ‘raw’ subdirectory.
Decide which processing directory you want, eg ‘os75nb’.
adcp_data/vg0601/proc/os75nb
The corresponding raw data directory is
adcp_data/vg0601/raw/os75
Determine the transducer offset. This is a variable in the file below, The variable will be written as os75.h_align in the file:
adcp_data/vg0601/proc/os75nb/config/vg0601_proc.m
get a file list from the raw data directory:
rawdir = ‘adcp_home/cruise/raw/os75’;
filelist = dirs(fullfile(rawdir, ‘*.raw’), ‘fullfile’,1);
eg. read the 12th file: % it may take a while
os_halign = 42.3; %set this to what you found in #2 data=get_xfraw(os, filelist(12).name,’h_align’, os_halign); [osdd, cfg] = restruct(os, data);
Variations on a theme:
rawdir = 'adcp_home/cruise/raw/wh300';
filelist = dirs(fullfile(rawdir, '*.raw'), 'fullfile',1);
wh_halign = -45.2; %set this to what you found in #2 for wh300
data=get_xfraw(bb, filelist(12).name,'h_align', wh_halign);
[bbdd,cfg] = restruct(bb, data);
rawdir = 'adcp_home/cruise/raw/nb150;
filelist = dirs(fullfile(rawdir, '*.raw'), 'fullfile',1);
nb_halign = 55; %set this to what you found in #2 for nb150
data=get_xfraw(bb, filelist(12).name,'h_align', nb_halign,...
'yearbase', 2006,'beamangle',30); %need these for nb150
[nbdd, cfg] = restruct(nb, data);
figure
aplotit(osdd, cfg,'fn','amp1', 'ilist', 10); %subsample by 10
figure
aplotit(data,config,'fn','amp1','cur_ax', subplot(211), 'ilist', 10);
subplot(212)
plot(data.dday(1:10:end), data.smmps(1:10:end))
xlabel('zero-based decimal day')
title('ship speed')
ylabel('m/s')
$GPGGA,035959.955,6530.6843,S,00020.4139,E,1,06,1.1,029.2,M,-016.0,M,,*5A
The rbin files are
intermediate files only, generated on the fly by UHDAS
- mached by name and directory, but located under “rbin” (rather
than “raw”, and with an additional suffix “.rbin”
readable with matlab by using the function “read_bin”. This function returns the data and a structure describing the data, noteably with a field “rows” that contains the names of each row. So for a gps file, the raw would look like you see and the “rbin” would look like this
[navdata, navstruct] = ...
read_bin('rbin/gpsnav/np2005_192_36000.gps.rbin');
The first output (navdata) is an array:
navdata 6x7200 345600 double array
The second output is a structure, with navstruct.rows as:
ans =
'u_dday'
'dday'
'lon'
'lat'
'quality'
'hdop'
The gbin files are written so they can be read the same way (readable by read_bin). The “g” in “gbin” is “gridded” (i.e. gridded onto the ping times). There is one subdirectory per ascii serial input, and one more (“time” that contains the look-up table for instrument time to UTC and the best estimate of navigation and heading).
Take a look here for many more details about UHDAS files.