1 | ;+ |
---|
2 | ; |
---|
3 | ; .. _ws_validation_scatter_2000_2009_basin.pro: |
---|
4 | ; |
---|
5 | ; ========================================= |
---|
6 | ; ws_validation_scatter_2000_2009_basin.pro |
---|
7 | ; ========================================= |
---|
8 | ; |
---|
9 | ; DESCRIPTION |
---|
10 | ; =========== |
---|
11 | ; |
---|
12 | ; .. graphviz:: |
---|
13 | ; |
---|
14 | ; digraph ws_validation_scatter_2000_2009_basin { |
---|
15 | ; |
---|
16 | ; ws_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/ws_2000_2009_erai_*.txt"]; |
---|
17 | ; ws_tropflux [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/ws_2000_2009_trop_*.txt"]; |
---|
18 | ; ws_oaflux [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/ws_2000_2009_oaflx_*.txt"]; |
---|
19 | ; ws_ncep [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/ws_2000_2009_ncep_*.txt"]; |
---|
20 | ; ws_ncep1 [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/ws_2000_2009_ncep1_*.txt"]; |
---|
21 | ; ws_tmi [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/ws_2000_2009_tmi_*.txt"]; |
---|
22 | ; |
---|
23 | ; figure [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/ws_validation_scatter_2000_2009_basin.ps"]; |
---|
24 | ; |
---|
25 | ; ws_validation_scatter_2000_2009_basin [shape=box, |
---|
26 | ; fontname=Courier, |
---|
27 | ; color=blue, |
---|
28 | ; URL="http://forge.ipsl.jussieu.fr/tropflux/browser/trunk/src/paper01/fig7/ws_validation_scatter_2000_2009_basin.pro", |
---|
29 | ; label="${TROPFLUX}/src/paper01/fig7/ws_validation_scatter_2000_2009_basin.pro"]; |
---|
30 | ; |
---|
31 | ; {ws_erai} -> {ws_validation_scatter_2000_2009_basin} -> {ws_tropflux ws_oaflux ws_ncep ws_ncep1 ws_tmi figure} |
---|
32 | ; } |
---|
33 | ; |
---|
34 | ; SEE ALSO |
---|
35 | ; ======== |
---|
36 | ; |
---|
37 | ; :ref:`project_profile.sh` |
---|
38 | ; :ref:`project_init.pro` |
---|
39 | ; :ref:`cm_project.pro` |
---|
40 | ; |
---|
41 | ; :func:`x_site_location` |
---|
42 | ; :func:`y_site_location` |
---|
43 | ; |
---|
44 | ; :ref:`read_variables_v2.pro` |
---|
45 | ; :ref:`statistics_3var_v1.pro` |
---|
46 | ; |
---|
47 | ; EXAMPLES |
---|
48 | ; ======== |
---|
49 | ; |
---|
50 | ; :: |
---|
51 | ; |
---|
52 | ; date1 = 19890101L |
---|
53 | ; date2 = 20091231L |
---|
54 | ; ws_validation_scatter_2000_2009_basin, date1, date2 |
---|
55 | ; |
---|
56 | ; TODO |
---|
57 | ; ==== |
---|
58 | ; |
---|
59 | ; make it work on cratos : pb restore, missing data |
---|
60 | ; |
---|
61 | ; ++ mooring data in graphviz |
---|
62 | ; |
---|
63 | ; coding rules |
---|
64 | ; |
---|
65 | ; complete description |
---|
66 | ; |
---|
67 | ; handle IO error |
---|
68 | ; |
---|
69 | ; EVOLUTIONS |
---|
70 | ; ========== |
---|
71 | ; |
---|
72 | ; $Id$ |
---|
73 | ; |
---|
74 | ; $URL$ |
---|
75 | ; |
---|
76 | ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
77 | ; |
---|
78 | ; * minimal header |
---|
79 | ; |
---|
80 | ;- |
---|
81 | pro ws_validation_scatter_2000_2009_basin,date1,date2 |
---|
82 | @cm_general |
---|
83 | @cm_project |
---|
84 | reinitplt, /z,/invert |
---|
85 | key_portrait = 1 |
---|
86 | ; |
---|
87 | openps, FILENAME = project_od_env+'ws_validation_scatter_2000_2009_'+ocean+'.ps' |
---|
88 | ; Give the location of mooring for validation of basic meteorological variables |
---|
89 | ; |
---|
90 | sitelist=['8s67e','12s55e', '8s55e', '8s80.5e', '1.5s80.5e', '0n80.5e', '1.5n80.5e', '1.5s90e', $ |
---|
91 | '0n90e', '1.5n90e', '4n90e','8n90e','12n90e', '15n90e', '5s95e', $ |
---|
92 | '8s165e', '8s180w', '8s155w', '8s125w', '8s110w', '8s95w', '5s156e', '5s165e', '5s180w', '5s170w', $ |
---|
93 | '5s155w', '5s140w', '5s125w', '5s110w', '5s95w', '2s156e', '2s165e', '2s180w', '2s170w', '2s155w', '2s140w', $ |
---|
94 | '2s125w', '2s110w', '2s95w', '0n147e', '0n156e', '0n165e', '0n180w', '0n170w', '0n155w', '0n140w', '0n125w', $ |
---|
95 | '0n110w', '0n95w', '2n147e', '2n156e', '2n165e', '2n180w', '2n170w', '2n155w', '2n140w', '2n125w', '2n110w', $ |
---|
96 | '2n95w', '5n147e', '5n156e', '5n165e', '5n170w', '5n155w', '5n140w', '5n125w', '5n110w', '5n95w', $ |
---|
97 | '8n156e', '8n165e', '8n180w', '8n170w', '9n140w', '8n125w', '8n110w', '8n95w', $ |
---|
98 | '0n0e', '0n10w', '0n23w', '0n35w', '10s10w', '12n23w', '12n38w', '14s32w', '15n38w', '19s34w', '20n38w', $ |
---|
99 | '21n23w', '4n23w', '4n38w', '6s10w', '8n38w', '8s30w'] |
---|
100 | ocean='global' |
---|
101 | ; |
---|
102 | sitelist=['8s67e','12s55e', '8s55e', '8s80.5e', '1.5s80.5e', '0n80.5e', '1.5n80.5e', '1.5s90e', $ |
---|
103 | '0n90e', '1.5n90e', '4n90e','8n90e','12n90e', '15n90e', '5s95e'] |
---|
104 | ocean='IO' |
---|
105 | ; |
---|
106 | sitelist=['8s165e', '8s180w', '8s155w', '8s125w', '8s110w', '8s95w', '5s156e', '5s165e', '5s180w', '5s170w', $ |
---|
107 | '5s155w', '5s140w', '5s125w', '5s110w', '5s95w', '2s156e', '2s165e', '2s180w', '2s170w', '2s155w', '2s140w', $ |
---|
108 | '2s125w', '2s110w', '2s95w', '0n147e', '0n156e', '0n165e', '0n180w', '0n170w', '0n155w', '0n140w', '0n125w', $ |
---|
109 | '0n110w', '0n95w', '2n147e', '2n156e', '2n165e', '2n180w', '2n170w', '2n155w', '2n140w', '2n125w', '2n110w', $ |
---|
110 | '2n95w', '5n147e', '5n156e', '5n165e', '5n170w', '5n155w', '5n140w', '5n125w', '5n110w', '5n95w', $ |
---|
111 | '8n156e', '8n165e', '8n180w', '8n170w', '9n140w', '8n125w', '8n110w', '8n95w'] |
---|
112 | ocean='Pac' |
---|
113 | ; |
---|
114 | sitelist=['8s165e', '8s180w', '8s155w','5s156e', '5s165e', '5s180w', '5s170w','2s156e', '2s165e', '2s180w', $ |
---|
115 | '2s170w','0n147e', '0n156e', '0n165e', '0n180w', '0n170w', '2n147e', '2n156e', '2n165e', '2n180w', $ |
---|
116 | '2n170w', '5n147e', '5n156e', '5n165e', '5n170w', '8n156e', '8n165e', '8n180w', '8n170w', '9n140w',$ |
---|
117 | '8n125w', '8n110w', '8n95w'] |
---|
118 | ocean='Pac_warmpool' |
---|
119 | ; |
---|
120 | sitelist=['8s125w', '8s110w', '8s95w','5s155w', '5s140w', '5s125w', '5s110w', '5s95w','2s155w', '2s140w', $ |
---|
121 | '2s125w', '2s110w', '2s95w', '0n155w', '0n140w', '0n125w', '0n110w', '0n95w', '2n155w', '2n140w', $ |
---|
122 | '2n125w', '2n110w', '2n95w', '5n155w', '5n140w', '5n125w', '5n110w', '5n95w'] |
---|
123 | ocean='Pac_coldtongue' |
---|
124 | ; |
---|
125 | ;sitelist=['0n0e', '0n10w', '0n23w', '0n35w', '10s10w', '12n23w', '12n38w', '14s32w', '15n38w', '19s34w', '20n38w', $ |
---|
126 | ; '21n23w', '4n23w', '4n38w', '6s10w', '8n38w', '8s30w'] |
---|
127 | ;ocean='AO' |
---|
128 | ; |
---|
129 | ;sitelist=['0n0e','0n35w', '4n23w', '4n38w', '8n38w'] |
---|
130 | ;ocean='AO_warmpool' |
---|
131 | ; |
---|
132 | ;sitelist=['0n10w','0n23w','10s10w','12n23w','12n38w','14s32w','15n38w', '19s34w','20n38w', $ |
---|
133 | ; '21n23w', '6s10w', '8s30w'] |
---|
134 | ;ocean='AO_coldtongue' |
---|
135 | ; |
---|
136 | nsmooth=1 |
---|
137 | ; This program will create the following text files with statistics of respective variables |
---|
138 | close,/all |
---|
139 | ; |
---|
140 | fi_ws_erai=project_id_env+'ws_2000_2009_erai_'+ocean+'.txt' |
---|
141 | openw,1,fi_ws_erai |
---|
142 | fi_ws_trop=project_id_env+'ws_2000_2009_trop_'+ocean+'.txt' |
---|
143 | openw,2,fi_ws_trop |
---|
144 | fi_ws_oaflx=project_id_env+'ws_2000_2009_oaflx_'+ocean+'.txt' |
---|
145 | openw,3,fi_ws_oaflx |
---|
146 | fi_ws_ncep=project_id_env+'ws_2000_2009_ncep_'+ocean+'.txt' |
---|
147 | openw,4,fi_ws_ncep |
---|
148 | fi_ws_tmi=project_id_env+'ws_2000_2009_tmi_'+ocean+'.txt' |
---|
149 | openw,5,fi_ws_tmi |
---|
150 | fi_ws_ncep1=project_id_env+'ws_2000_2009_ncep1_'+ocean+'.txt' |
---|
151 | openw,6,fi_ws_ncep1 |
---|
152 | ; |
---|
153 | printf,1, 'x y cor bias std rmsd mean_tao' |
---|
154 | printf,2, 'x y cor bias std rmsd mean_tao' |
---|
155 | printf,3, 'x y cor bias std rmsd mean_tao' |
---|
156 | printf,4, 'x y cor bias std rmsd mean_tao' |
---|
157 | printf,5, 'x y cor bias std rmsd mean_tao' |
---|
158 | printf,6, 'x y cor bias std rmsd mean_tao' |
---|
159 | ; |
---|
160 | ; first reading the whole ERAI uncorrected and corrected data |
---|
161 | ; date1=20000101 |
---|
162 | ; date2=20090931 |
---|
163 | ; |
---|
164 | file=project_id_env+'erai_ws_19890101_20091231_oafluxgrid.nc' |
---|
165 | initncdf, file |
---|
166 | u=read_ncdf('u10',date1,date2,file=file,/nostr) |
---|
167 | ;v=read_ncdf('v10',date1,date2,file=file,/nostr) |
---|
168 | ;unc=sqrt(u*u+v*v) |
---|
169 | ;help, unc |
---|
170 | ; |
---|
171 | ;save, unc, cor, oaf, nce, ws_tmi, nce1, filename="ws_era_trop_oaf_nce_qscat_2000_2009_global.idl" |
---|
172 | restore, file="/Users/pkb/work/MY_SAXO/ws_era_trop_oaf_nce_qscat_2000_2009_global.idl" |
---|
173 | help, unc, cor, oaf, nce, ws_tmi, nce1 |
---|
174 | ; |
---|
175 | nn=n_elements(sitelist) |
---|
176 | for n=0, nn-1 do begin |
---|
177 | ; |
---|
178 | ; reading data from mooring |
---|
179 | ; |
---|
180 | site=sitelist(n) |
---|
181 | csite=site |
---|
182 | print, csite |
---|
183 | x=x_site_location(site) |
---|
184 | y=y_site_location(site) |
---|
185 | if (y ge 0. and y le 30.) then y=y+360. |
---|
186 | dx=0.5 |
---|
187 | dy=0.5 |
---|
188 | box=[y-dy, y+dy, x-dx, x+dx] |
---|
189 | read_variables_v2, csite,date1,date2,nsmooth, $ |
---|
190 | at, sw,rh,sst,wu,wv,ws, lh |
---|
191 | ; |
---|
192 | ws=alog(10./0.000152)/alog(4./0.000152)*ws |
---|
193 | ; |
---|
194 | ; extracting the corrected and uncorrected ERAI data at the locations |
---|
195 | nsmooth=1. |
---|
196 | ; |
---|
197 | extract_flux_tropflux,unc,box, $ |
---|
198 | tropflux |
---|
199 | uncr=tropflux |
---|
200 | ; |
---|
201 | extract_flux_tropflux,cor,box, $ |
---|
202 | tropflux |
---|
203 | corr=tropflux |
---|
204 | ; |
---|
205 | extract_flux_tropflux,oaf,box, $ |
---|
206 | tropflux |
---|
207 | oafl=tropflux |
---|
208 | ; |
---|
209 | extract_flux_tropflux,nce,box, $ |
---|
210 | tropflux |
---|
211 | ncep=tropflux |
---|
212 | ; |
---|
213 | extract_flux_tropflux,ws_tmi,box, $ |
---|
214 | tropflux |
---|
215 | tmi=tropflux |
---|
216 | ; |
---|
217 | extract_flux_tropflux,nce1,box, $ |
---|
218 | tropflux |
---|
219 | ncep1=tropflux |
---|
220 | ; |
---|
221 | ind=where(finite(ws)) |
---|
222 | ws=ws(ind) |
---|
223 | uncr_ws=uncr(ind) |
---|
224 | corr_ws=corr(ind) |
---|
225 | oafl=oafl(ind) |
---|
226 | ncep=ncep(ind) |
---|
227 | tmi=tmi(ind) |
---|
228 | ncep1=ncep1(ind) |
---|
229 | ; |
---|
230 | mean_tao=total(ws)/n_elements(ws) |
---|
231 | ; |
---|
232 | statistics_3var_v1, ws, uncr_ws, corr_ws, $ |
---|
233 | cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 |
---|
234 | ; |
---|
235 | printf, 1, x, y, cor1, bias1, std1, rmsd1, mean_tao, format='(f6.2, 3x, f6.2, 3x, f5.2,3x,f5.2,3x,f4.2,3x,f4.2,3x,f5.2)' |
---|
236 | printf, 2, x, y, cor2, bias2, std2, rmsd2, mean_tao, format='(f6.2, 3x, f6.2, 3x, f5.2,3x,f5.2,3x,f4.2,3x,f4.2,3x,f5.2)' |
---|
237 | ; |
---|
238 | statistics_3var_v1, ws, oafl, ncep, $ |
---|
239 | cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 |
---|
240 | printf, 3, x, y, cor1, bias1, std1, rmsd1, mean_tao, format='(f6.2, 3x, f6.2, 3x, f5.2,3x,f5.2,3x,f4.2,3x,f4.2,3x,f5.2)' |
---|
241 | printf, 4, x, y, cor2, bias2, std2, rmsd2, mean_tao, format='(f6.2, 3x, f6.2, 3x, f5.2,3x,f6.2,3x,f4.2,3x,f4.2,3x,f5.2)' |
---|
242 | ; |
---|
243 | statistics_3var_v1, ws, tmi, ncep1, $ |
---|
244 | cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 |
---|
245 | printf, 5, x, y, cor1, bias1, std1, rmsd1, mean_tao, format='(f6.2, 3x, f6.2, 3x, f5.2,3x,f5.2,3x,f4.2,3x,f4.2,3x,f5.2)' |
---|
246 | printf, 6, x, y, cor2, bias2, std2, rmsd2, mean_tao, format='(f6.2, 3x, f6.2, 3x, f5.2,3x,f5.2,3x,f4.2,3x,f4.2,3x,f5.2)' |
---|
247 | ; |
---|
248 | endfor |
---|
249 | close,/all |
---|
250 | fi_ws_erai=project_id_env+'ws_2000_2009_erai_'+ocean+'.txt' |
---|
251 | res=read_ascii(fi_ws_erai,data_start=1) |
---|
252 | ff=res.field1 |
---|
253 | lat=reform(ff(0,*)) |
---|
254 | lon=reform(ff(1,*)) |
---|
255 | cor_era=reform(ff(2,*)) |
---|
256 | cor_erai=total(cor_era)/n_elements(cor_era) |
---|
257 | bias_era=reform(ff(3,*)) |
---|
258 | bias_erai=total(bias_era)/n_elements(bias_era) |
---|
259 | std_era=reform(ff(4,*)) |
---|
260 | std_erai=total(std_era)/n_elements(std_era) |
---|
261 | rmsd_era=reform(ff(5,*)) |
---|
262 | rmsd_erai=total(rmsd_era)/n_elements(rmsd_era) |
---|
263 | mean_tao=reform(ff(6,*)) |
---|
264 | mean_erai=bias_era+mean_tao |
---|
265 | ; |
---|
266 | print, '' |
---|
267 | print, 'ERAI' |
---|
268 | print, cor_erai, bias_erai, std_erai, rmsd_erai |
---|
269 | cstat=string(cor_erai, bias_erai, std_erai, rmsd_erai, format='(f4.2,1x,f6.2,1x,f4.2,1x,f4.2)') |
---|
270 | splot, mean_tao, mean_erai, title='WS - TAO Vs ERAI', subtitle='', $ |
---|
271 | charsize=1.1, xtitle='TAO WS', ytitle='ERAI WS', small=[2,3,1], psym=2, $ |
---|
272 | xrange=[2,10], yrange=[2,10], xmin=1,ymin=1 |
---|
273 | xyouts, 2.5,9.4, cstat, charsize=0.9 |
---|
274 | xyouts, 2.5,8.5, 'cor bias std rmsd', charsize=0.9 |
---|
275 | ; |
---|
276 | oplot, [2,10], [2,10] |
---|
277 | ab=linfit(mean_tao, mean_erai,yfit=yfit) |
---|
278 | a=float(ab(0)) |
---|
279 | b=float(ab(1)) |
---|
280 | oplot, mean_tao, yfit, color=250, thick=2 |
---|
281 | ; |
---|
282 | fi_ws_trop=project_id_env+'ws_2000_2009_trop_'+ocean+'.txt' |
---|
283 | res=read_ascii(fi_ws_trop,data_start=1) |
---|
284 | ff=res.field1 |
---|
285 | lat=reform(ff(0,*)) |
---|
286 | lon=reform(ff(1,*)) |
---|
287 | cor_tro=reform(ff(2,*)) |
---|
288 | cor_trop=total(cor_tro)/n_elements(cor_tro) |
---|
289 | bias_tro=reform(ff(3,*)) |
---|
290 | bias_trop=total(bias_tro)/n_elements(bias_tro) |
---|
291 | std_tro=reform(ff(4,*)) |
---|
292 | std_trop=total(std_tro)/n_elements(std_tro) |
---|
293 | rmsd_tro=reform(ff(5,*)) |
---|
294 | rmsd_trop=total(rmsd_tro)/n_elements(rmsd_tro) |
---|
295 | mean_tao=reform(ff(6,*)) |
---|
296 | mean_trop=bias_tro+mean_tao |
---|
297 | ; |
---|
298 | print, '' |
---|
299 | print, 'TropFlux' |
---|
300 | print, cor_trop, bias_trop, std_trop, rmsd_trop |
---|
301 | cstat=string(cor_trop, bias_trop, std_trop, rmsd_trop, format='(f4.2,1x,f6.2,1x,f4.2,1x,f4.2)') |
---|
302 | ; |
---|
303 | splot, mean_tao, mean_trop, title='WS - TAO Vs TropFlux', subtitle='', $ |
---|
304 | charsize=1.1, xtitle='TAO WS', ytitle='TropFlux WS', small=[2,3,2],/noer, psym=2, $ |
---|
305 | xrange=[2,10], yrange=[2,10], xmin=1,ymin=1 |
---|
306 | oplot, [2,10], [2,10] |
---|
307 | xyouts, 2.5,9.4, cstat, charsize=0.9 |
---|
308 | xyouts, 2.5,8.5, 'cor bias std rmsd', charsize=0.9 |
---|
309 | ; |
---|
310 | ab=linfit(mean_tao, mean_trop,yfit=yfit) |
---|
311 | a=float(ab(0)) |
---|
312 | b=float(ab(1)) |
---|
313 | oplot, mean_tao, yfit, color=250, thick=2 |
---|
314 | ; |
---|
315 | fi_ws_oaflx=project_id_env+'ws_2000_2009_oaflx_'+ocean+'.txt' |
---|
316 | res=read_ascii(fi_ws_oaflx,data_start=1) |
---|
317 | ff=res.field1 |
---|
318 | lat=reform(ff(0,*)) |
---|
319 | lon=reform(ff(1,*)) |
---|
320 | cor_oaf=reform(ff(2,*)) |
---|
321 | cor_oafl=total(cor_oaf)/n_elements(cor_oaf) |
---|
322 | bias_oaf=reform(ff(3,*)) |
---|
323 | bias_oafl=total(bias_oaf)/n_elements(bias_oaf) |
---|
324 | std_oaf=reform(ff(4,*)) |
---|
325 | std_oafl=total(std_oaf)/n_elements(std_oaf) |
---|
326 | rmsd_oaf=reform(ff(5,*)) |
---|
327 | rmsd_oafl=total(rmsd_oaf)/n_elements(rmsd_oaf) |
---|
328 | mean_tao=reform(ff(6,*)) |
---|
329 | mean_oafl=bias_oaf+mean_tao |
---|
330 | ; |
---|
331 | print, '' |
---|
332 | print, 'OAFlux' |
---|
333 | print, cor_oafl, bias_oafl, std_oafl, rmsd_oafl |
---|
334 | cstat=string(cor_oafl, bias_oafl, std_oafl, rmsd_oafl, format='(f4.2,1x,f6.2,1x,f4.2,1x,f4.2)') |
---|
335 | ; |
---|
336 | splot, mean_tao, mean_oafl, title='WS - TAO Vs OAFlux', subtitle='', $ |
---|
337 | charsize=1.1, xtitle='TAO WS', ytitle='OAFlux WS', small=[2,3,3],/noer, psym=2, $ |
---|
338 | xrange=[2,10], yrange=[2,10], xmin=1,ymin=1 |
---|
339 | oplot, [2,10], [2,10] |
---|
340 | xyouts, 2.5,9.4, cstat, charsize=0.9 |
---|
341 | xyouts, 2.5,8.5, 'cor bias std rmsd', charsize=0.9 |
---|
342 | ; |
---|
343 | ab=linfit(mean_tao, mean_oafl,yfit=yfit) |
---|
344 | a=float(ab(0)) |
---|
345 | b=float(ab(1)) |
---|
346 | oplot, mean_tao, yfit, color=250, thick=2 |
---|
347 | ; |
---|
348 | fi_ws_ncep=project_id_env+'ws_2000_2009_ncep_'+ocean+'.txt' |
---|
349 | res=read_ascii(fi_ws_ncep,data_start=1) |
---|
350 | ff=res.field1 |
---|
351 | lat=reform(ff(0,*)) |
---|
352 | lon=reform(ff(1,*)) |
---|
353 | cor_nce=reform(ff(2,*)) |
---|
354 | cor_ncep=total(cor_nce)/n_elements(cor_nce) |
---|
355 | bias_nce=reform(ff(3,*)) |
---|
356 | bias_ncep=total(bias_nce)/n_elements(bias_nce) |
---|
357 | std_nce=reform(ff(4,*)) |
---|
358 | std_ncep=total(std_nce)/n_elements(std_nce) |
---|
359 | rmsd_nce=reform(ff(5,*)) |
---|
360 | rmsd_ncep=total(rmsd_nce)/n_elements(rmsd_nce) |
---|
361 | mean_tao=reform(ff(6,*)) |
---|
362 | mean_ncep=bias_nce+mean_tao |
---|
363 | ; |
---|
364 | print, '' |
---|
365 | print, 'NCEP2' |
---|
366 | print, cor_ncep, bias_ncep, std_ncep, rmsd_ncep |
---|
367 | cstat=string(cor_ncep, bias_ncep, std_ncep, rmsd_ncep, format='(f4.2,1x,f6.2,1x,f4.2,1x,f4.2)') |
---|
368 | ; |
---|
369 | splot, mean_tao, mean_ncep, title='WS - TAO Vs NCEP2', subtitle='', $ |
---|
370 | charsize=1.1, xtitle='TAO WS', ytitle='NCEP2 WS', small=[2,3,4],/noer, psym=2, $ |
---|
371 | xrange=[2,10], yrange=[2,10], xmin=1,ymin=1 |
---|
372 | oplot, [2,10], [2,10] |
---|
373 | xyouts, 2.5,9.4, cstat, charsize=0.9 |
---|
374 | xyouts, 2.5,8.5, 'cor bias std rmsd', charsize=0.9 |
---|
375 | ; |
---|
376 | ab=linfit(mean_tao, mean_ncep,yfit=yfit) |
---|
377 | a=float(ab(0)) |
---|
378 | b=float(ab(1)) |
---|
379 | oplot, mean_tao, yfit, color=250, thick=2 |
---|
380 | ; |
---|
381 | fi_ws_tmi=project_id_env+'ws_2000_2009_tmi_'+ocean+'.txt' |
---|
382 | res=read_ascii(fi_ws_tmi,data_start=1) |
---|
383 | ff=res.field1 |
---|
384 | lat=reform(ff(0,*)) |
---|
385 | lon=reform(ff(1,*)) |
---|
386 | cor_tm=reform(ff(2,*)) |
---|
387 | cor_tmi=total(cor_tm)/n_elements(cor_tm) |
---|
388 | bias_tm=reform(ff(3,*)) |
---|
389 | bias_tmi=total(bias_tm)/n_elements(bias_tm) |
---|
390 | std_tm=reform(ff(4,*)) |
---|
391 | std_tmi=total(std_tm)/n_elements(std_tm) |
---|
392 | rmsd_tm=reform(ff(5,*)) |
---|
393 | rmsd_tmi=total(rmsd_tm)/n_elements(rmsd_tm) |
---|
394 | mean_tao=reform(ff(6,*)) |
---|
395 | mean_tmi=bias_tm+mean_tao |
---|
396 | ; |
---|
397 | print, '' |
---|
398 | print, 'Qscat' |
---|
399 | print, cor_tmi, bias_tmi, std_tmi, rmsd_tmi |
---|
400 | cstat=string(cor_tmi, bias_tmi, std_tmi, rmsd_tmi, format='(f4.2,1x,f6.2,1x,f4.2,1x,f4.2)') |
---|
401 | ; |
---|
402 | splot, mean_tao, mean_tmi, title='WS - TAO Vs Qscat', subtitle='', $ |
---|
403 | charsize=1.1, xtitle='TAO WS', ytitle='TMI WS', small=[2,3,5],/noer, psym=2, $ |
---|
404 | xrange=[2,10], yrange=[2,10], xmin=1,ymin=1 |
---|
405 | oplot, [2,10], [2,10] |
---|
406 | xyouts, 2.5,9.4, cstat, charsize=0.9 |
---|
407 | xyouts, 2.5,8.5, 'cor bias std rmsd', charsize=0.9 |
---|
408 | ; |
---|
409 | ab=linfit(mean_tao, mean_tmi,yfit=yfit) |
---|
410 | a=float(ab(0)) |
---|
411 | b=float(ab(1)) |
---|
412 | oplot, mean_tao, yfit, color=250, thick=2 |
---|
413 | ; |
---|
414 | fi_ws_ncep1=project_id_env+'ws_2000_2009_ncep1_'+ocean+'.txt' |
---|
415 | res=read_ascii(fi_ws_ncep1,data_start=1) |
---|
416 | ff=res.field1 |
---|
417 | lat=reform(ff(0,*)) |
---|
418 | lon=reform(ff(1,*)) |
---|
419 | cor_nce=reform(ff(2,*)) |
---|
420 | cor_ncep=total(cor_nce)/n_elements(cor_nce) |
---|
421 | bias_nce=reform(ff(3,*)) |
---|
422 | bias_ncep=total(bias_nce)/n_elements(bias_nce) |
---|
423 | std_nce=reform(ff(4,*)) |
---|
424 | std_ncep=total(std_nce)/n_elements(std_nce) |
---|
425 | rmsd_nce=reform(ff(5,*)) |
---|
426 | rmsd_ncep=total(rmsd_nce)/n_elements(rmsd_nce) |
---|
427 | mean_tao=reform(ff(6,*)) |
---|
428 | mean_ncep=bias_nce+mean_tao |
---|
429 | ; |
---|
430 | print, '' |
---|
431 | print, 'NCEP' |
---|
432 | print, cor_ncep, bias_ncep, std_ncep, rmsd_ncep |
---|
433 | cstat=string(cor_ncep, bias_ncep, std_ncep, rmsd_ncep, format='(f4.2,1x,f6.2,1x,f4.2,1x,f4.2)') |
---|
434 | ; |
---|
435 | splot, mean_tao, mean_ncep, title='WS - TAO Vs NCEP', subtitle='', $ |
---|
436 | charsize=1.1, xtitle='TAO WS', ytitle='NCEP WS', small=[2,3,6],/noer, psym=2, $ |
---|
437 | xrange=[2,10], yrange=[2,10], xmin=1,ymin=1 |
---|
438 | oplot, [2,10], [2,10] |
---|
439 | xyouts, 2.5,9.4, cstat, charsize=0.9 |
---|
440 | xyouts, 2.5,8.5, 'cor bias std rmsd', charsize=0.9 |
---|
441 | ; |
---|
442 | ab=linfit(mean_tao, mean_ncep,yfit=yfit) |
---|
443 | a=float(ab(0)) |
---|
444 | b=float(ab(1)) |
---|
445 | oplot, mean_tao, yfit, color=250, thick=2 |
---|
446 | ; |
---|
447 | closeps |
---|
448 | ; |
---|
449 | end |
---|