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