pathall
path('/home3/ocn/jmanning/gbs99/adcp/matlab/codas3',path)
cd /data5/jmanning/adcp/al9707/codas/edit
%(got: Undefined function or variable v4 when running setup)
path('/home3/ocn/jmanning/gbs99/adcp/matlab/misc',path)
setup
getp(0,0,5000)
u
whos
% make one big matrix
[nr,nc]=size(U);
u=reshape(U,nr*nc,1);
v=reshape(V,nr*nc,1);
w=reshape(W,nr*nc,1);
lat=LAT*ones(nr,1);
la=reshape(lat',nr*nc,1);
lon=LON*ones(nr,1)';
lo=reshape(lon',nr*nc,1);
bottm=BOTTOM'*ones(nr,1)';
bot=reshape(bottm',nr*nc,1);
dep=reshape(DEPTH,nr*nc,1);
days=DAYS*ones(nr,1)';
day=reshape(days',nr*nc,1);
ycodas=[lo la dep bot u v u v day w];
save /data5/jmanning/adcp/al9707/codas/adcpdb/saveadcp ycodas
