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

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

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

Initial import of Stark code.

Line 
1 clear
2 for i=1:23,
3    [s2c2,freq,gridname]=read_v2r(['m2zeta',num2str(i+1),'.s2c']);
4    [s2c1,freq,gridname]=read_v2r(['m2zeta',num2str(i),'.s2c']);
5    i
6    diff(i,:)=mean(s2c2-s2c1)
7 end
8 figure
9 whitebg('w')
10 orient tall
11 wysiwyg
12 subplot(4,4,9)
13 plot(diff(:,2),'k-')
14 title('amp.s2c')
15 set(gca,'XLim',[0 25]);
16 grid('on')
17 subplot(4,4,10)
18 plot(diff(:,3),'k-')
19 title('pha.s2c')
20 set(gca,'XLim',[0 25]);
21 grid('on')
22 drawnow
23 %
24 %
25 %
26 clear
27 for i=1:23,
28    [s2c2,freq,gridname]=read_v2r(['resvbar',num2str(i+1),'.v2r']);
29    [s2c1,freq,gridname]=read_v2r(['resvbar',num2str(i),'.v2r']);
30    i
31    diff(i,:)=mean(s2c2-s2c1)
32 end
33 subplot(4,4,5)
34 plot(diff(:,2),'k-')
35 title('u.v2r')
36 set(gca,'XLim',[0 25]);
37 grid('on')
38 subplot(4,4,6)
39 plot(diff(:,3),'k-')
40 title('v.v2r')
41 set(gca,'XLim',[0 25]);
42 grid('on')
43 drawnow
44 %
45 %
46 %
47 clear
48 for i=1:23,
49    [s2c2,gridname]=read_s2r(['reszeta',num2str(i+1),'.s2r']);
50    [s2c1,gridname]=read_s2r(['reszeta',num2str(i),'.s2r']);
51    i
52    diff(i,:)=mean(s2c2-s2c1)
53 end
54 subplot(4,4,1)
55 plot(diff(:,2),'k-')
56 title('.s2r')
57 set(gca,'XLim',[0 25]);
58 grid('on')
59 drawnow
60 %
61 %
62 %
63 clear
64 for i=1:23,
65    [s2c2,freq]=read_v2c(['m2vbar',num2str(i+1),'.v2c']);
66    [s2c1,freq]=read_v2c(['m2vbar',num2str(i),'.v2c']);
67    i
68    diff(i,:)=mean(s2c2-s2c1)
69 end
70 subplot(4,4,13)
71 plot(diff(:,2),'k-')
72 title('uamp.v2c')
73 set(gca,'XLim',[0 25]);
74 grid('on')
75 subplot(4,4,14)
76 plot(diff(:,3),'k-')
77 title('upha.v2c')
78 set(gca,'XLim',[0 25]);
79 grid('on')
80 subplot(4,4,15)
81 plot(diff(:,4),'k-')
82 title('vamp.v2c')
83 set(gca,'XLim',[0 25]);
84 grid('on')
85 subplot(4,4,16)
86 plot(diff(:,5),'k-')
87 title('vpha.v2c')
88 set(gca,'XLim',[0 25]);
89 grid('on')
90 drawnow
Note: See TracBrowser for help on using the browser.