3.1.5.10. Loading files generated by adcpsectΒΆ
No special programs are needed to read the adcpsect
output,
just some simple code.
The *_xy.mat
and *_uv.mat
files use code like the
following in matlab to turn the matrices into x,y,u,v,z:
Example:
load contour_uv.mat
load contour_xy.mat
x=xyt(1,:)';
y=xyt(2,:)';
dday=xyt(3,:)';
u=uv(:,1:2:end);
v=uv(:,2:2:end);
%zc is center of depth bins
badi=find(isnan(x));
x(badi)=[];
y(badi)=[];
dday(badi)=[];
u(:,badi)=[];
v(:,badi)=[];
Note
The time variable is a zero-based decimal day: Noon on Jan 1 is 0.5 (not 1.5). All CODAS data follow this standard.