- Timestamp:
- 08/30/11 14:38:29 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/paper01/fig7/air_validation_scatter_2000_2009_basin.pro
r94 r97 90 90 reinitplt, /z,/invert 91 91 key_portrait = 1 92 92 ; 93 93 openps, FILENAME = project_od_env+'air_validation_scatter_2000_2009_'+ocean+'.ps' 94 95 ; ;Give the location of mooring for validation of basic meteorological variables96 97 94 ; 95 ; Give the location of mooring for validation of basic meteorological variables 96 ; 97 ; 98 98 sitelist=['8s67e','12s55e', '8s55e', '8s80.5e', '1.5s80.5e', '0n80.5e', '1.5n80.5e', '1.5s90e', $ 99 99 '0n90e', '1.5n90e', '4n90e','8n90e','12n90e', '15n90e', '5s95e', $ … … 106 106 '0n0e', '0n10w', '0n23w', '0n35w', '10s10w', '12n23w', '12n38w', '14s32w', '15n38w', '19s34w', '20n38w', $ 107 107 '21n23w', '4n23w', '4n38w', '6s10w', '8n38w', '8s30w'] 108 108 ; 109 109 ocean='global' 110 110 ; 111 111 sitelist=['8s67e','12s55e', '8s55e', '8s80.5e', '1.5s80.5e', '0n80.5e', '1.5n80.5e', '1.5s90e', $ 112 112 '0n90e', '1.5n90e', '4n90e','8n90e','12n90e', '15n90e', '5s95e'] 113 113 ocean='IO' 114 114 ; 115 115 ;sitelist=['8s165e', '8s180w', '8s155w', '8s125w', '8s110w', '8s95w', '5s156e', '5s165e', '5s180w', '5s170w', $ 116 116 ; '5s155w', '5s140w', '5s125w', '5s110w', '5s95w', '2s156e', '2s165e', '2s180w', '2s170w', '2s155w', '2s140w', $ … … 120 120 ; '8n156e', '8n165e', '8n180w', '8n170w', '9n140w', '8n125w', '8n110w', '8n95w'] 121 121 ;ocean='Pac' 122 122 ; 123 123 ;sitelist=['0n0e', '0n10w', '0n23w', '0n35w', '10s10w', '12n23w', '12n38w', '14s32w', '15n38w', '19s34w', '20n38w', $ 124 124 ; '21n23w', '4n23w', '4n38w', '6s10w', '8n38w', '8s30w'] 125 125 ;ocean='AO' 126 126 ; 127 127 ;sitelist=['8s165e', '8s180w', '8s155w','5s156e', '5s165e', '5s180w', '5s170w','2s156e', '2s165e', '2s180w', $ 128 128 ; '2s170w','0n147e', '0n156e', '0n165e', '0n180w', '0n170w', '2n147e', '2n156e', '2n165e', '2n180w', $ … … 130 130 ; '8n125w', '8n110w', '8n95w'] 131 131 ;ocean='Pac_warmpool' 132 132 ; 133 133 ;sitelist=['8s125w', '8s110w', '8s95w','5s155w', '5s140w', '5s125w', '5s110w', '5s95w','2s155w', '2s140w', $ 134 134 ; '2s125w', '2s110w', '2s95w', '0n155w', '0n140w', '0n125w', '0n110w', '0n95w', '2n155w', '2n140w', $ 135 135 ; '2n125w', '2n110w', '2n95w', '5n155w', '5n140w', '5n125w', '5n110w', '5n95w'] 136 136 ;ocean='Pac_coldtongue' 137 137 ; 138 138 ;sitelist=['0n0e','0n35w', '4n23w', '4n38w', '8n38w'] 139 139 ;ocean='AO_warmpool' 140 140 ; 141 141 ;sitelist=['0n10w','0n23w','10s10w','12n23w','12n38w','14s32w','15n38w', '19s34w','20n38w', $ 142 142 ; '21n23w', '6s10w', '8s30w'] 143 143 ;ocean='AO_coldtongue' 144 145 nsmooth=1. ; ;statistics are with 7 day smoothed146 ; ;This program will create the following text files with statistics of respective variables144 ; 145 nsmooth=1. ; statistics are with 7 day smoothed 146 ; This program will create the following text files with statistics of respective variables 147 147 close,/all 148 148 ; 149 149 fi_air_erai=project_id_env+'air_2000_2009_erai_'+ocean+'.txt' 150 150 openw,1,fi_air_erai … … 157 157 fi_air_ncep1=project_id_env+'air_2000_2009_ncep1_'+ocean+'.txt' 158 158 openw,5,fi_air_ncep1 159 160 159 ; 160 ; 161 161 printf,1, 'x y cor bias std rmsd mean_tao' 162 162 printf,2, 'x y cor bias std rmsd mean_tao' … … 164 164 printf,4, 'x y cor bias std rmsd mean_tao' 165 165 printf,5, 'x y cor bias std rmsd mean_tao' 166 167 ; ;first reading the whole ERAI uncorrected and corrected data168 166 ; 167 ; first reading the whole ERAI uncorrected and corrected data 168 ; 169 169 file=project_id_env+'erai_t2m_19890101_20091231_oafluxgrid.nc' 170 170 initncdf, file 171 unc=read_ncdf('t2m',date1,date2,file=file,/nostr) 171 unc=read_ncdf('t2m',date1,date2,file=file,/nostr) 172 172 unc=unc-273.15 173 173 help, unc 174 174 ; 175 175 ;save, unc, cor, oaf, nce, nce1, filename="airt_unc_cor_oaf_nce_nce1_2000_2009_global.idl" 176 176 restore, file="/Users/pkb/work/MY_SAXO/airt_unc_cor_oaf_nce_nce1_2000_2009_global.idl" 177 177 help, unc, cor, oaf, nce, nce1 178 178 ; 179 179 nn=n_elements(sitelist) 180 180 for n=0, nn-1 do begin 181 182 ; ;reading data from mooring183 184 site=sitelist(n) 181 ; 182 ; reading data from mooring 183 ; 184 site=sitelist(n) 185 185 csite=site 186 186 print, csite … … 188 188 y=y_site_location(site) 189 189 if (y ge 0. and y le 30.) then y=y+360. 190 dx=0.5 191 dy=0.5 190 dx=0.5 191 dy=0.5 192 192 box=[y-dy, y+dy, x-dx, x+dx] 193 193 read_variables_v2, csite,date1,date2,nsmooth, $ 194 194 at, sw,rh,sst,wu,wv,ws,lh 195 196 197 ; air=rh_to_sphum(rh,at,1008) ; ;at -> air temperature198 air=at ; ;air -> sea surface temperature199 ; ;lh -> latent heat flux200 ; ;rh -> relative humidity201 ; ;wu,wv,ws -> wind speed202 ; ;203 204 205 ; ;extracting the corrected and uncorrected ERAI data at the locations195 ; 196 ; 197 ; air=rh_to_sphum(rh,at,1008) ; at -> air temperature 198 air=at ; air -> sea surface temperature 199 ; lh -> latent heat flux 200 ; rh -> relative humidity 201 ; wu,wv,ws -> wind speed 202 ; 203 ; 204 ; 205 ; extracting the corrected and uncorrected ERAI data at the locations 206 206 nsmooth=1. 207 207 ; 208 208 extract_flux_tropflux,unc,box, $ 209 209 tropflux 210 210 uncr=tropflux 211 211 ; 212 212 extract_flux_tropflux,cor,box, $ 213 213 tropflux 214 214 corr=tropflux 215 215 ; 216 216 extract_flux_tropflux,oaf,box, $ 217 217 tropflux 218 218 oafl=tropflux 219 219 ; 220 220 extract_flux_tropflux,nce,box, $ 221 221 tropflux 222 222 ncep=tropflux 223 223 ; 224 224 extract_flux_tropflux,nce1,box, $ 225 225 tropflux 226 226 ncep1=tropflux 227 228 229 ind=where(finite(air)) 230 air=air(ind) 231 uncr_air=uncr(ind) 227 ; 228 ; 229 ind=where(finite(air)) 230 air=air(ind) 231 uncr_air=uncr(ind) 232 232 corr_air=corr(ind) 233 oafl=oafl(ind) 234 ncep=ncep(ind) 233 oafl=oafl(ind) 234 ncep=ncep(ind) 235 235 ncep1=ncep1(ind) 236 236 mean_tao=total(air,/nan)/n_elements(ind) 237 237 ; 238 238 statistics_3var_v1, air, uncr_air, corr_air, $ 239 239 cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 240 240 ; 241 241 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)' 242 242 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)' 243 243 ; 244 244 statistics_3var_v1, air, oafl, ncep, $ 245 245 cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 246 246 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)' 247 247 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)' 248 248 ; 249 249 statistics_3var_v1, air, ncep1, ncep, $ 250 250 cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 251 251 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)' 252 252 ; 253 253 endfor 254 254 close,/all 255 255 ; 256 256 fi_air_erai=project_id_env+'air_2000_2009_erai_'+ocean+'.txt' 257 257 res=read_ascii(fi_air_erai,data_start=1) … … 259 259 lat=reform(ff(0,*)) 260 260 lon=reform(ff(1,*)) 261 cor_era=reform(ff(2,*)) 261 cor_era=reform(ff(2,*)) 262 262 cor_erai=total(cor_era)/n_elements(cor_era) 263 bias_era=reform(ff(3,*)) 263 bias_era=reform(ff(3,*)) 264 264 bias_erai=total(bias_era)/n_elements(bias_era) 265 std_era=reform(ff(4,*)) 265 std_era=reform(ff(4,*)) 266 266 std_erai=total(std_era)/n_elements(std_era) 267 rmsd_era=reform(ff(5,*)) 267 rmsd_era=reform(ff(5,*)) 268 268 rmsd_erai=total(rmsd_era)/n_elements(rmsd_era) 269 mean_tao=reform(ff(6,*)) 269 mean_tao=reform(ff(6,*)) 270 270 mean_erai=bias_era+mean_tao 271 271 ; 272 272 print, '' 273 273 print, 'ERAI' … … 279 279 xyouts, 22.3,30.2, cstat, charsize=0.9 280 280 xyouts, 22.3,29.5, 'cor bias std rmsd', charsize=0.9 281 281 ; 282 282 oplot, [22,31], [22,31] 283 283 ab=linfit(mean_tao, mean_erai,yfit=yfit) 284 a=float(ab(0)) 284 a=float(ab(0)) 285 285 b=float(ab(1)) 286 286 oplot, mean_tao, yfit, color=250, thick=2 287 287 ; 288 288 fi_air_trop=project_id_env+'air_2000_2009_trop_'+ocean+'.txt' 289 289 res=read_ascii(fi_air_trop,data_start=1) … … 291 291 lat=reform(ff(0,*)) 292 292 lon=reform(ff(1,*)) 293 cor_tro=reform(ff(2,*)) 293 cor_tro=reform(ff(2,*)) 294 294 cor_trop=total(cor_tro)/n_elements(cor_tro) 295 bias_tro=reform(ff(3,*)) 295 bias_tro=reform(ff(3,*)) 296 296 bias_trop=total(bias_tro)/n_elements(bias_tro) 297 std_tro=reform(ff(4,*)) 297 std_tro=reform(ff(4,*)) 298 298 std_trop=total(std_tro)/n_elements(std_tro) 299 rmsd_tro=reform(ff(5,*)) 299 rmsd_tro=reform(ff(5,*)) 300 300 rmsd_trop=total(rmsd_tro)/n_elements(rmsd_tro) 301 mean_tao=reform(ff(6,*)) 301 mean_tao=reform(ff(6,*)) 302 302 mean_trop=bias_tro+mean_tao 303 303 ; 304 304 print, '' 305 305 print, 'TropFlux' 306 306 print, cor_trop, bias_trop, std_trop, rmsd_trop 307 307 cstat=string(cor_trop, bias_trop, std_trop, rmsd_trop, format='(f4.2,1x,f6.2,1x,f4.2,1x,f4.2)') 308 308 ; 309 309 splot, mean_tao, mean_trop, title='T2m - TAO Vs TropFlux', subtitle='', $ 310 310 charsize=1.1, xtitle='TAO T2m', ytitle='TropFlux T2m', small=[2,3,2],/noer, psym=2, $ … … 313 313 xyouts, 22.3,30.2, cstat, charsize=0.9 314 314 xyouts, 22.3,29.5, 'cor bias std rmsd', charsize=0.9 315 315 ; 316 316 ab=linfit(mean_tao, mean_trop,yfit=yfit) 317 a=float(ab(0)) 317 a=float(ab(0)) 318 318 b=float(ab(1)) 319 319 oplot, mean_tao, yfit, color=250, thick=2 320 320 ; 321 321 fi_air_oaflx=project_id_env+'air_2000_2009_oaflx_'+ocean+'.txt' 322 322 res=read_ascii(fi_air_oaflx,data_start=1) … … 324 324 lat=reform(ff(0,*)) 325 325 lon=reform(ff(1,*)) 326 cor_oaf=reform(ff(2,*)) 326 cor_oaf=reform(ff(2,*)) 327 327 cor_oafl=total(cor_oaf)/n_elements(cor_oaf) 328 bias_oaf=reform(ff(3,*)) 328 bias_oaf=reform(ff(3,*)) 329 329 bias_oafl=total(bias_oaf)/n_elements(bias_oaf) 330 std_oaf=reform(ff(4,*)) 330 std_oaf=reform(ff(4,*)) 331 331 std_oafl=total(std_oaf)/n_elements(std_oaf) 332 rmsd_oaf=reform(ff(5,*)) 332 rmsd_oaf=reform(ff(5,*)) 333 333 rmsd_oafl=total(rmsd_oaf)/n_elements(rmsd_oaf) 334 mean_tao=reform(ff(6,*)) 334 mean_tao=reform(ff(6,*)) 335 335 mean_oafl=bias_oaf+mean_tao 336 336 ; 337 337 print, '' 338 338 print, 'OAFlux' 339 339 print, cor_oafl, bias_oafl, std_oafl, rmsd_oafl 340 340 cstat=string(cor_oafl, bias_oafl, std_oafl, rmsd_oafl, format='(f4.2,1x,f6.2,1x,f4.2,1x,f4.2)') 341 341 ; 342 342 splot, mean_tao, mean_oafl, title='T2m - TAO Vs OAFlux', subtitle='', $ 343 343 charsize=1.1, xtitle='TAO T2m', ytitle='OAFlux T2m', small=[2,3,3],/noer, psym=2, $ … … 346 346 xyouts, 22.3,30.2, cstat, charsize=0.9 347 347 xyouts, 22.3,29.5, 'cor bias std rmsd', charsize=0.9 348 348 ; 349 349 ab=linfit(mean_tao, mean_oafl,yfit=yfit) 350 a=float(ab(0)) 350 a=float(ab(0)) 351 351 b=float(ab(1)) 352 352 oplot, mean_tao, yfit, color=250, thick=2 353 354 355 353 ; 354 ; 355 ; 356 356 fi_air_ncep=project_id_env+'air_2000_2009_ncep2_'+ocean+'.txt' 357 357 res=read_ascii(fi_air_ncep,data_start=1) … … 359 359 lat=reform(ff(0,*)) 360 360 lon=reform(ff(1,*)) 361 cor_nce=reform(ff(2,*)) 361 cor_nce=reform(ff(2,*)) 362 362 cor_ncep=total(cor_nce)/n_elements(cor_nce) 363 bias_nce=reform(ff(3,*)) 363 bias_nce=reform(ff(3,*)) 364 364 bias_ncep=total(bias_nce)/n_elements(bias_nce) 365 std_nce=reform(ff(4,*)) 365 std_nce=reform(ff(4,*)) 366 366 std_ncep=total(std_nce)/n_elements(std_nce) 367 rmsd_nce=reform(ff(5,*)) 367 rmsd_nce=reform(ff(5,*)) 368 368 rmsd_ncep=total(rmsd_nce)/n_elements(rmsd_nce) 369 mean_tao=reform(ff(6,*)) 369 mean_tao=reform(ff(6,*)) 370 370 mean_ncep=bias_nce+mean_tao 371 371 ; 372 372 print, '' 373 373 print, 'NCEP2' 374 374 print, cor_ncep, bias_ncep, std_ncep, rmsd_ncep 375 375 cstat=string(cor_ncep, bias_ncep, std_ncep, rmsd_ncep, format='(f4.2,1x,f6.2,1x,f4.2,1x,f4.2)') 376 376 ; 377 377 splot, mean_tao, mean_ncep, title='T2m - TAO Vs NCEP2', subtitle='', $ 378 378 charsize=1.1, xtitle='TAO T2m', ytitle='NCEP2 T2m', small=[2,3,4],/noer, psym=2, $ … … 381 381 xyouts, 22.3,30.2, cstat, charsize=0.9 382 382 xyouts, 22.3,29.5, 'cor bias std rmsd', charsize=0.9 383 383 ; 384 384 ab=linfit(mean_tao, mean_ncep,yfit=yfit) 385 a=float(ab(0)) 385 a=float(ab(0)) 386 386 b=float(ab(1)) 387 387 oplot, mean_tao, yfit, color=250, thick=2 388 388 ; 389 389 fi_air_ncep1=project_id_env+'air_2000_2009_ncep1_'+ocean+'.txt' 390 390 res=read_ascii(fi_air_ncep1,data_start=1) … … 392 392 lat=reform(ff(0,*)) 393 393 lon=reform(ff(1,*)) 394 cor_nce=reform(ff(2,*)) 394 cor_nce=reform(ff(2,*)) 395 395 cor_ncep=total(cor_nce)/n_elements(cor_nce) 396 bias_nce=reform(ff(3,*)) 396 bias_nce=reform(ff(3,*)) 397 397 bias_ncep=total(bias_nce)/n_elements(bias_nce) 398 std_nce=reform(ff(4,*)) 398 std_nce=reform(ff(4,*)) 399 399 std_ncep=total(std_nce)/n_elements(std_nce) 400 rmsd_nce=reform(ff(5,*)) 400 rmsd_nce=reform(ff(5,*)) 401 401 rmsd_ncep=total(rmsd_nce)/n_elements(rmsd_nce) 402 mean_tao=reform(ff(6,*)) 402 mean_tao=reform(ff(6,*)) 403 403 mean_ncep=bias_nce+mean_tao 404 404 ; 405 405 print, '' 406 406 print, 'NCEP1' 407 407 print, cor_ncep, bias_ncep, std_ncep, rmsd_ncep 408 408 cstat=string(cor_ncep, bias_ncep, std_ncep, rmsd_ncep, format='(f4.2,1x,f6.2,1x,f4.2,1x,f4.2)') 409 409 ; 410 410 splot, mean_tao, mean_ncep, title='T2m - TAO Vs NCEP_NCAR', subtitle='', $ 411 411 charsize=1.1, xtitle='TAO T2m', ytitle='NCEP', small=[2,3,5],/noer, psym=2, $ … … 414 414 xyouts, 22.3,30.2, cstat, charsize=0.9 415 415 xyouts, 22.3,29.5, 'cor bias std rmsd', charsize=0.9 416 416 ; 417 417 ab=linfit(mean_tao, mean_ncep,yfit=yfit) 418 a=float(ab(0)) 418 a=float(ab(0)) 419 419 b=float(ab(1)) 420 420 oplot, mean_tao, yfit, color=250, thick=2 421 421 ; 422 422 closeps 423 423 ; 424 424 end
Note: See TracChangeset
for help on using the changeset viewer.