NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/gliderproc/trunk/MATLAB/opnml/FCAST_1.2/matlab_cen/plot_pth_only.m

Revision 495 (checked in by cbc, 12 years ago)

Initial import of Stark code.

Line 
1 function plot_pth_only(filename,cl)
2 %
3 % Read .pth file
4 %
5    filename=blank(filename(1:length(filename)-4));
6    [gridname,ndrog,ndts,tsec,pth]=read_pth(filename,4);
7    size(pth);
8    ndts=ans(1)/ndrog;
9    xdr=pth(:,1);
10    xdr=reshape(xdr,ndrog,ndts);
11    xdr=xdr';
12    ydr=pth(:,2);
13    ydr=reshape(ydr,ndrog,ndts);
14    ydr=ydr';
15 %
16 % Plot particle tracks
17 %
18    h=plot(xdr(1,:),ydr(1,:),[cl(1:1),'o'])
19    for i=1:ndrog
20       h=plot(xdr(:,i),ydr(:,i),cl)
21    end
Note: See TracBrowser for help on using the browser.