1 | % 1 floater 2 pts |
---|
2 | close all |
---|
3 | figure(1) |
---|
4 | scale=1000000 |
---|
5 | ls; |
---|
6 | load obs_float/obs_float_test.dat; |
---|
7 | whos; |
---|
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 | |
---|
21 | load obs_float/rfloat_total.dat |
---|
22 | rfloat_total(:,:) |
---|
23 | x2=rfloat_total(:,4) |
---|
24 | y2=rfloat_total(:,3) |
---|
25 | x2=x2+1; |
---|
26 | y2=y2+1; |
---|
27 | [k,h]=size(x2); |
---|
28 | plot(x2(2),y2(2),'+') |
---|
29 | hold on; |
---|
30 | plot(x2(k-1),y2(k-1),'>') |
---|
31 | hold on; |
---|
32 | plot(x2(2:k-1),y2(2:k-1),'+') |
---|
33 | hold on; |
---|
34 | plot(x2(2:k-1),y2(2:k-1),'-g') |
---|
35 | hold on; |
---|
36 | |
---|
37 | load obs_float/uv_total.dat; |
---|
38 | whos; |
---|
39 | X1=uv_total(1:5046,end-3); |
---|
40 | Y1=uv_total(1:5046,end-2); |
---|
41 | |
---|
42 | %change si pas de temps change |
---|
43 | U1=zeros(5046,1); |
---|
44 | V1=zeros(5046,1) |
---|
45 | e=1; |
---|
46 | for r=1:1:19 |
---|
47 | |
---|
48 | for count=1:5046 |
---|
49 | Unew(count)=uv_total(e,end-1); |
---|
50 | Vnew(count)=uv_total(e,end); |
---|
51 | e=e+1; |
---|
52 | end |
---|
53 | U1=U1+Unew'; |
---|
54 | V1=V1+Vnew'; |
---|
55 | |
---|
56 | |
---|
57 | end |
---|
58 | X1=X1+1; |
---|
59 | Y1=Y1+1; |
---|
60 | U1=U1/19; |
---|
61 | V1=V1/19; |
---|
62 | quiver(X1,Y1,U1,V1,2,'r','Autoscale','off'); |
---|
63 | |
---|
64 | load obs_float/uzero.dat; |
---|
65 | |
---|
66 | |
---|
67 | whos; |
---|
68 | X2=uzero(:,end-2); |
---|
69 | Y2=uzero(:,end-1); |
---|
70 | X2=X2; |
---|
71 | Y2=Y2; |
---|
72 | U2=uzero(:,end); |
---|
73 | load obs_float/vzero.dat |
---|
74 | |
---|
75 | V2=vzero(:,end); |
---|
76 | quiver(X2,Y2,U2,V2,2,'g','Autoscale','off'); |
---|
77 | |
---|
78 | % % load uv_total.dat; |
---|
79 | % whos; |
---|
80 | % X=uv_total(:,end-3); |
---|
81 | % Y=uv_total(:,end-2); |
---|
82 | % U=uv_total(:,end-1); |
---|
83 | % V=uv_total(:,end); |
---|
84 | % quiver(X,Y,U,V,2); |
---|
85 | % |
---|
86 | load obs_float/utrue.dat; |
---|
87 | |
---|
88 | utrue=roundn(utrue,-6) |
---|
89 | whos; |
---|
90 | X3=utrue(:,end-2); |
---|
91 | Y3=utrue(:,end-1); |
---|
92 | X3=X3; |
---|
93 | Y3=Y3; |
---|
94 | U3=utrue(:,end); |
---|
95 | load obs_float/vtrue.dat |
---|
96 | vtrue=roundn(vtrue,-6) |
---|
97 | V3=vtrue(:,end); |
---|
98 | quiver(X3,Y3,U3,V3,2,'b','Autoscale','off'); |
---|
99 | figure(2) |
---|
100 | |
---|
101 | load obs_float/vel_bck_all.dat |
---|
102 | it=find(vel_bck_all(:,1)==1); |
---|
103 | Tu=reshape(vel_bck_all(it,4),58,87); |
---|
104 | Tv=reshape(vel_bck_all(it,5),58,87); |
---|
105 | |
---|
106 | load obs_float/vel_true_all.dat |
---|
107 | it=find(vel_true_all(:,1)==1); |
---|
108 | Bu=reshape(vel_true_all(it,4),58,87); |
---|
109 | Bv=reshape(vel_true_all(it,5),58,87); |
---|
110 | |
---|
111 | F=(Bu-Tu).^2+(Bv-Tv).^2 |
---|
112 | imagesc(F) |
---|
113 | hold on |
---|
114 | |
---|
115 | x=obs_float_test (1:2:40,4) |
---|
116 | y=obs_float_test (2:2:40,4) |
---|
117 | x=x+1; |
---|
118 | y=y+1; |
---|
119 | plot(x(1),y(1),'+') |
---|
120 | hold on; |
---|
121 | plot(x(20),y(20),'>') |
---|
122 | hold on; |
---|
123 | plot(x(1:20),y(1:20),'+'); |
---|
124 | hold on; |
---|
125 | plot(x(1:20),y(1:20),'-r') |
---|
126 | hold on; |
---|
127 | |
---|
128 | figure(3) |
---|
129 | |
---|
130 | load obs_float/uv_total.dat |
---|
131 | it=find(uv_total(:,1)==0); |
---|
132 | Iu0=reshape(uv_total(it,4),58,87); |
---|
133 | Iv0=reshape(uv_total(it,5),58,87); |
---|
134 | it=find(uv_total(:,1)==1); |
---|
135 | Iu1=reshape(uv_total(it,4),58,87); |
---|
136 | Iv1=reshape(uv_total(it,5),58,87); |
---|
137 | it=find(uv_total(:,1)==2); |
---|
138 | Iu2=reshape(uv_total(it,4),58,87); |
---|
139 | Iv2=reshape(uv_total(it,5),58,87); |
---|
140 | it=find(uv_total(:,1)==3); |
---|
141 | Iu3=reshape(uv_total(it,4),58,87); |
---|
142 | Iv3=reshape(uv_total(it,5),58,87); |
---|
143 | it=find(uv_total(:,1)==4); |
---|
144 | Iu4=reshape(uv_total(it,4),58,87); |
---|
145 | Iv4=reshape(uv_total(it,5),58,87); |
---|
146 | it=find(uv_total(:,1)==5); |
---|
147 | Iu5=reshape(uv_total(it,4),58,87); |
---|
148 | Iv5=reshape(uv_total(it,5),58,87); |
---|
149 | it=find(uv_total(:,1)==6); |
---|
150 | Iu6=reshape(uv_total(it,4),58,87); |
---|
151 | Iv6=reshape(uv_total(it,5),58,87); |
---|
152 | it=find(uv_total(:,1)==7); |
---|
153 | Iu7=reshape(uv_total(it,4),58,87); |
---|
154 | Iv7=reshape(uv_total(it,5),58,87); |
---|
155 | it=find(uv_total(:,1)==8); |
---|
156 | Iu8=reshape(uv_total(it,4),58,87); |
---|
157 | Iv8=reshape(uv_total(it,5),58,87); |
---|
158 | it=find(uv_total(:,1)==9); |
---|
159 | Iu9=reshape(uv_total(it,4),58,87); |
---|
160 | Iv9=reshape(uv_total(it,5),58,87); |
---|
161 | it=find(uv_total(:,1)==10); |
---|
162 | Iu10=reshape(uv_total(it,4),58,87); |
---|
163 | Iv10=reshape(uv_total(it,5),58,87); |
---|
164 | it=find(uv_total(:,1)==11); |
---|
165 | Iu11=reshape(uv_total(it,4),58,87); |
---|
166 | Iv11=reshape(uv_total(it,5),58,87); |
---|
167 | it=find(uv_total(:,1)==12); |
---|
168 | Iu12=reshape(uv_total(it,4),58,87); |
---|
169 | Iv12=reshape(uv_total(it,5),58,87); |
---|
170 | it=find(uv_total(:,1)==13); |
---|
171 | Iu13=reshape(uv_total(it,4),58,87); |
---|
172 | Iv13=reshape(uv_total(it,5),58,87); |
---|
173 | it=find(uv_total(:,1)==14); |
---|
174 | Iu14=reshape(uv_total(it,4),58,87); |
---|
175 | Iv14=reshape(uv_total(it,5),58,87); |
---|
176 | it=find(uv_total(:,1)==15); |
---|
177 | Iu15=reshape(uv_total(it,4),58,87); |
---|
178 | Iv15=reshape(uv_total(it,5),58,87); |
---|
179 | it=find(uv_total(:,1)==16); |
---|
180 | Iu16=reshape(uv_total(it,4),58,87); |
---|
181 | Iv16=reshape(uv_total(it,5),58,87); |
---|
182 | it=find(uv_total(:,1)==17); |
---|
183 | Iu17=reshape(uv_total(it,4),58,87); |
---|
184 | Iv17=reshape(uv_total(it,5),58,87); |
---|
185 | it=find(uv_total(:,1)==18) |
---|
186 | Iu18=reshape(uv_total(it,4),58,87); |
---|
187 | Iv18=reshape(uv_total(it,5),58,87); |
---|
188 | % it=find(uv_total(:,1)==19) |
---|
189 | % Iu19=reshape(uv_total(it,4),58,87); |
---|
190 | % it=find(uv_total(:,1)==20); |
---|
191 | % I20=reshape(uv_total(it,4),58,87); |
---|
192 | % it=find(uv_total(:,1)==21); |
---|
193 | % I21=reshape(uv_total(it,4),58,87); |
---|
194 | % it=find(uv_total(:,1)==22); |
---|
195 | % I22=reshape(uv_total(it,4),58,87); |
---|
196 | % it=find(uv_total(:,1)==23); |
---|
197 | % I23=reshape(uv_total(it,4),58,87); |
---|
198 | % it=find(uv_total(:,1)==24); |
---|
199 | % I24=reshape(uv_total(it,4),58,87); |
---|
200 | % it=find(uv_total(:,1)==25); |
---|
201 | % I25=reshape(uv_total(it,4),58,87); |
---|
202 | % it=find(uv_total(:,1)==26); |
---|
203 | % I26=reshape(uv_total(it,4),58,87); |
---|
204 | % it=find(uv_total(:,1)==27); |
---|
205 | % I27=reshape(uv_total(it,4),58,87); |
---|
206 | % it=find(uv_total(:,1)==28); |
---|
207 | % I28=reshape(uv_total(it,4),58,87); |
---|
208 | % it=find(uv_total(:,1)==29); |
---|
209 | % I29=reshape(uv_total(it,4),58,87); |
---|
210 | % it=find(uv_total(:,1)==30); |
---|
211 | % I30=reshape(uv_total(it,4),58,87); |
---|
212 | % it=find(uv_total(:,1)==31); |
---|
213 | % I31=reshape(uv_total(it,4),58,87); |
---|
214 | % it=find(uv_total(:,1)==32); |
---|
215 | % I32=reshape(uv_total(it,4),58,87); |
---|
216 | % it=find(uv_total(:,1)==33); |
---|
217 | % I33=reshape(uv_total(it,4),58,87); |
---|
218 | % it=find(uv_total(:,1)==34); |
---|
219 | % I34=reshape(uv_total(it,4),58,87); |
---|
220 | % it=find(uv_total(:,1)==35); |
---|
221 | % I35=reshape(uv_total(it,4),58,87); |
---|
222 | % it=find(uv_total(:,1)==36); |
---|
223 | % I36=reshape(uv_total(it,4),58,87); |
---|
224 | |
---|
225 | Cu=(Iu0+Iu1+Iu2+Iu3+Iu4+Iu5+Iu6+Iu7+Iu8+Iu9+Iu10+Iu11+Iu12+Iu13+Iu14+Iu15+Iu16+Iu17+Iu18)/19; |
---|
226 | Cv=(Iv0+Iv1+Iv2+Iv3+Iv4+Iv5+Iv6+Iv7+Iv8+Iv9+Iv10+Iv11+Iv12+Iv13+Iv14+Iv15+Iv16+Iv17+Iv18)/19; |
---|
227 | |
---|
228 | F1=(Tu-Cu).^2+(Tv-Cv).^2; |
---|
229 | imagesc(F1) |
---|
230 | hold on |
---|
231 | x=obs_float_test (1:2:40,4) |
---|
232 | y=obs_float_test (2:2:40,4) |
---|
233 | x=x+1; |
---|
234 | y=y+1; |
---|
235 | plot(x(1),y(1),'+') |
---|
236 | hold on; |
---|
237 | plot(x(20),y(20),'>') |
---|
238 | hold on; |
---|
239 | plot(x(1:20),y(1:20),'+'); |
---|
240 | hold on; |
---|
241 | plot(x(1:20),y(1:20),'-r') |
---|
242 | hold on; |
---|
243 | F2=(Bu-Cu).^2+(Bv-Cv).^2; |
---|
244 | figure(4) |
---|
245 | imagesc(F2) |
---|
246 | hold on |
---|
247 | x=obs_float_test (1:2:40,4) |
---|
248 | y=obs_float_test (2:2:40,4) |
---|
249 | x=x+1; |
---|
250 | y=y+1; |
---|
251 | plot(x(1),y(1),'+') |
---|
252 | hold on; |
---|
253 | plot(x(20),y(20),'>') |
---|
254 | hold on; |
---|
255 | plot(x(1:20),y(1:20),'+'); |
---|
256 | hold on; |
---|
257 | plot(x(1:20),y(1:20),'-r') |
---|
258 | hold on; |
---|
259 | |
---|
260 | |
---|
261 | |
---|
262 | |
---|
263 | figure (5) |
---|
264 | imagesc(F) |
---|
265 | axis([70 77 38 46]) |
---|
266 | hold on |
---|
267 | x=obs_float_test (1:2:40,4) |
---|
268 | y=obs_float_test (2:2:40,4) |
---|
269 | x=x+1; |
---|
270 | y=y+1; |
---|
271 | plot(x(1),y(1),'+') |
---|
272 | hold on; |
---|
273 | plot(x(20),y(20),'>') |
---|
274 | hold on; |
---|
275 | plot(x(1:20),y(1:20),'+'); |
---|
276 | hold on; |
---|
277 | plot(x(1:20),y(1:20),'-r') |
---|
278 | hold on; |
---|
279 | |
---|
280 | |
---|
281 | figure (6) |
---|
282 | imagesc(F1) |
---|
283 | axis([70 77 38 46]) |
---|
284 | hold on |
---|
285 | x=obs_float_test (1:2:40,4) |
---|
286 | y=obs_float_test (2:2:40,4) |
---|
287 | x=x+1; |
---|
288 | y=y+1; |
---|
289 | plot(x(1),y(1),'+') |
---|
290 | hold on; |
---|
291 | plot(x(20),y(20),'>') |
---|
292 | hold on; |
---|
293 | plot(x(1:20),y(1:20),'+'); |
---|
294 | hold on; |
---|
295 | plot(x(1:20),y(1:20),'-r') |
---|
296 | hold on; |
---|
297 | |
---|
298 | |
---|
299 | sum=0; |
---|
300 | count=0; |
---|
301 | for r=70:77 |
---|
302 | for t=39:46 |
---|
303 | sum=sum+F(t,r); |
---|
304 | count=count+1; |
---|
305 | end |
---|
306 | end |
---|
307 | sum=sum/count |
---|
308 | |
---|
309 | sum3=0; |
---|
310 | count3=0; |
---|
311 | for r=70:77 |
---|
312 | for t=39:46 |
---|
313 | sum3=sum3+F1(t,r); |
---|
314 | count3=count3+1; |
---|
315 | end |
---|
316 | end |
---|
317 | sum3=sum3/count3 |
---|