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