1 | % 1 floater 2 pts |
---|
2 | figure(1) |
---|
3 | |
---|
4 | ls; |
---|
5 | load obs_float_test.dat; |
---|
6 | whos; |
---|
7 | obs_float_test (1:4,:) |
---|
8 | x=obs_float_test (1:2:40,4) |
---|
9 | y=obs_float_test (2:2:40,4) |
---|
10 | x=x+1 |
---|
11 | y=y+1 |
---|
12 | plot(x(1),y(1),'+') |
---|
13 | hold on; |
---|
14 | plot(x(20),y(20),'>') |
---|
15 | hold on; |
---|
16 | plot(x(1:20),y(1:20),'+'); |
---|
17 | hold on; |
---|
18 | plot(x(1:20),y(1:20),'-r') |
---|
19 | hold on; |
---|
20 | load rfloat_total.dat |
---|
21 | rfloat_total(:,:) |
---|
22 | x2=rfloat_total(:,4) |
---|
23 | y2=rfloat_total(:,3) |
---|
24 | x2=x2+1 |
---|
25 | y2=y2+1 |
---|
26 | [k,h]=size(x2); |
---|
27 | plot(x2(2),y2(2),'+') |
---|
28 | hold on; |
---|
29 | plot(x2(k-1),y2(k-1),'>') |
---|
30 | hold on; |
---|
31 | plot(x2(2:k-1),y2(2:k-1),'+') |
---|
32 | hold on; |
---|
33 | plot(x2(2:k-1),y2(2:k-1),'-g') |
---|
34 | hold on; |
---|
35 | |
---|
36 | load uv_total.dat; |
---|
37 | whos; |
---|
38 | X=uv_total(:,end-3); |
---|
39 | Y=uv_total(:,end-2); |
---|
40 | X=X+1; |
---|
41 | Y=Y+1; |
---|
42 | U=uv_total(:,end-1); |
---|
43 | V=uv_total(:,end); |
---|
44 | quiver(X,Y,U,V,'r'); |
---|
45 | X=X+1; |
---|
46 | Y=Y+1; |
---|
47 | load vel_bck_all.dat; |
---|
48 | whos; |
---|
49 | X=vel_bck_all(:,end-3); |
---|
50 | Y=vel_bck_all(:,end-2); |
---|
51 | U=vel_bck_all(:,end-1); |
---|
52 | V=vel_bck_all(:,end); |
---|
53 | quiver(X,Y,U,V,'b'); |
---|
54 | |
---|
55 | load vel_next_all.dat; |
---|
56 | whos; |
---|
57 | X=vel_next_all(:,end-3); |
---|
58 | Y=vel_next_all(:,end-2); |
---|
59 | U=vel_next_all(:,end-1); |
---|
60 | V=vel_next_all(:,end); |
---|
61 | quiver(X,Y,U,V,'g'); |
---|
62 | figure(2) |
---|
63 | |
---|
64 | it=find(vel_next_all(:,1)==1); |
---|
65 | T1=reshape(vel_next_all(it,4),58,87); |
---|
66 | it=find(vel_next_all(:,1)==2); |
---|
67 | T2=reshape(vel_next_all(it,4),58,87); |
---|
68 | it=find(vel_next_all(:,1)==3); |
---|
69 | T3=reshape(vel_next_all(it,4),58,87); |
---|
70 | it=find(vel_next_all(:,1)==4); |
---|
71 | T4=reshape(vel_next_all(it,4),58,87); |
---|
72 | it=find(vel_next_all(:,1)==5); |
---|
73 | T5=reshape(vel_next_all(it,4),58,87); |
---|
74 | it=find(vel_next_all(:,1)==6); |
---|
75 | T6=reshape(vel_next_all(it,4),58,87); |
---|
76 | it=find(vel_next_all(:,1)==7); |
---|
77 | T7=reshape(vel_next_all(it,4),58,87); |
---|
78 | it=find(vel_next_all(:,1)==8); |
---|
79 | T8=reshape(vel_next_all(it,4),58,87); |
---|
80 | it=find(vel_next_all(:,1)==9); |
---|
81 | T9=reshape(vel_next_all(it,4),58,87); |
---|
82 | it=find(vel_next_all(:,1)==10); |
---|
83 | T10=reshape(vel_next_all(it,4),58,87); |
---|
84 | it=find(vel_next_all(:,1)==11); |
---|
85 | T11=reshape(vel_next_all(it,4),58,87); |
---|
86 | it=find(vel_next_all(:,1)==12); |
---|
87 | T12=reshape(vel_next_all(it,4),58,87); |
---|
88 | it=find(vel_next_all(:,1)==13); |
---|
89 | T13=reshape(vel_next_all(it,4),58,87); |
---|
90 | it=find(vel_next_all(:,1)==14); |
---|
91 | T14=reshape(vel_next_all(it,4),58,87); |
---|
92 | it=find(vel_next_all(:,1)==15); |
---|
93 | T15=reshape(vel_next_all(it,4),58,87); |
---|
94 | it=find(vel_next_all(:,1)==16); |
---|
95 | T16=reshape(vel_next_all(it,4),58,87); |
---|
96 | it=find(vel_next_all(:,1)==17); |
---|
97 | T17=reshape(vel_next_all(it,4),58,87); |
---|
98 | it=find(vel_next_all(:,1)==18); |
---|
99 | T18=reshape(vel_next_all(it,4),58,87); |
---|
100 | it=find(vel_next_all(:,1)==19); |
---|
101 | T19=reshape(vel_next_all(it,4),58,87); |
---|
102 | |
---|
103 | T=(T1+T2+T3+T4+T5+T6+T7+T8+T9+T10+T11+T12+T13+T14+T15+T16+T17+T18+T19)/19; |
---|
104 | |
---|
105 | it=find(vel_bck_all(:,1)==1); |
---|
106 | A1=reshape(vel_bck_all(it,4),58,87); |
---|
107 | it=find(vel_bck_all(:,1)==2); |
---|
108 | A2=reshape(vel_bck_all(it,4),58,87); |
---|
109 | it=find(vel_bck_all(:,1)==3); |
---|
110 | A3=reshape(vel_bck_all(it,4),58,87); |
---|
111 | it=find(vel_bck_all(:,1)==4); |
---|
112 | A4=reshape(vel_bck_all(it,4),58,87); |
---|
113 | it=find(vel_bck_all(:,1)==5); |
---|
114 | A5=reshape(vel_bck_all(it,4),58,87); |
---|
115 | it=find(vel_bck_all(:,1)==6); |
---|
116 | A6=reshape(vel_bck_all(it,4),58,87); |
---|
117 | it=find(vel_bck_all(:,1)==7); |
---|
118 | A7=reshape(vel_bck_all(it,4),58,87); |
---|
119 | it=find(vel_bck_all(:,1)==8); |
---|
120 | A8=reshape(vel_bck_all(it,4),58,87); |
---|
121 | it=find(vel_bck_all(:,1)==9); |
---|
122 | A9=reshape(vel_bck_all(it,4),58,87); |
---|
123 | it=find(vel_bck_all(:,1)==10); |
---|
124 | A10=reshape(vel_bck_all(it,4),58,87); |
---|
125 | it=find(vel_bck_all(:,1)==11); |
---|
126 | A11=reshape(vel_bck_all(it,4),58,87); |
---|
127 | it=find(vel_bck_all(:,1)==12); |
---|
128 | A12=reshape(vel_bck_all(it,4),58,87); |
---|
129 | it=find(vel_bck_all(:,1)==13); |
---|
130 | A13=reshape(vel_bck_all(it,4),58,87); |
---|
131 | it=find(vel_bck_all(:,1)==14); |
---|
132 | A14=reshape(vel_bck_all(it,4),58,87); |
---|
133 | it=find(vel_bck_all(:,1)==15); |
---|
134 | A15=reshape(vel_bck_all(it,4),58,87); |
---|
135 | it=find(vel_bck_all(:,1)==16); |
---|
136 | A16=reshape(vel_bck_all(it,4),58,87); |
---|
137 | it=find(vel_bck_all(:,1)==17); |
---|
138 | A17=reshape(vel_bck_all(it,4),58,87); |
---|
139 | it=find(vel_bck_all(:,1)==18); |
---|
140 | A18=reshape(vel_bck_all(it,4),58,87); |
---|
141 | it=find(vel_bck_all(:,1)==19); |
---|
142 | A19=reshape(vel_bck_all(it,4),58,87); |
---|
143 | |
---|
144 | A=(A1+A2+A3+A4+A5+A6+A7+A8+A9+A10+A11+A12+A13+A14+A15+A16+A17+A18+A19)/19; |
---|
145 | F=(A-T).^2 |
---|
146 | imagesc(F) |
---|
147 | |
---|
148 | figure(3) |
---|
149 | it=find(uv_total(:,1)==1); |
---|
150 | I1=reshape(uv_total(it,4),58,87); |
---|
151 | it=find(uv_total(:,1)==2); |
---|
152 | I2=reshape(uv_total(it,4),58,87); |
---|
153 | it=find(uv_total(:,1)==3); |
---|
154 | I3=reshape(uv_total(it,4),58,87); |
---|
155 | it=find(uv_total(:,1)==4); |
---|
156 | I4=reshape(uv_total(it,4),58,87); |
---|
157 | it=find(uv_total(:,1)==5); |
---|
158 | I5=reshape(uv_total(it,4),58,87); |
---|
159 | it=find(uv_total(:,1)==6); |
---|
160 | I6=reshape(uv_total(it,4),58,87); |
---|
161 | it=find(uv_total(:,1)==7); |
---|
162 | I7=reshape(uv_total(it,4),58,87); |
---|
163 | it=find(uv_total(:,1)==8); |
---|
164 | I8=reshape(uv_total(it,4),58,87); |
---|
165 | it=find(uv_total(:,1)==9); |
---|
166 | I9=reshape(uv_total(it,4),58,87); |
---|
167 | it=find(uv_total(:,1)==10); |
---|
168 | I10=reshape(uv_total(it,4),58,87); |
---|
169 | it=find(uv_total(:,1)==11); |
---|
170 | I11=reshape(uv_total(it,4),58,87); |
---|
171 | it=find(uv_total(:,1)==12); |
---|
172 | I12=reshape(uv_total(it,4),58,87); |
---|
173 | it=find(uv_total(:,1)==13); |
---|
174 | I13=reshape(uv_total(it,4),58,87); |
---|
175 | it=find(uv_total(:,1)==14); |
---|
176 | I14=reshape(uv_total(it,4),58,87); |
---|
177 | it=find(uv_total(:,1)==15); |
---|
178 | I15=reshape(uv_total(it,4),58,87); |
---|
179 | it=find(uv_total(:,1)==16); |
---|
180 | I16=reshape(uv_total(it,4),58,87); |
---|
181 | it=find(uv_total(:,1)==17); |
---|
182 | I17=reshape(uv_total(it,4),58,87); |
---|
183 | it=find(uv_total(:,1)==18) |
---|
184 | I18=reshape(uv_total(it,4),58,87); |
---|
185 | it=find(uv_total(:,1)==19) |
---|
186 | I19=reshape(uv_total(it,4),58,87); |
---|
187 | |
---|
188 | I=(I1+I2+I3+I4+I5+I6+I7+I8+I9+I10+I11+I12+I13+I14+I15+I16+I17+I18+I19)/19; |
---|
189 | F1=(A-I).^2; |
---|
190 | imagesc(F1) |
---|
191 | |
---|
192 | F2=(I-T).^2; |
---|
193 | figure(4) |
---|
194 | imagesc(F2) |
---|