Changeset 43 for trunk/src/paper01/fig8
- Timestamp:
- 04/11/11 18:05:51 (13 years ago)
- Location:
- trunk/src/paper01/fig8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/paper01/fig8/lhf_validation_scatter_2000_2009.pro
r41 r43 1 ;------------------------------------------------------------ 1 ;+ 2 ; .. _lhf_validation_scatter_2000_2009.pro 3 ; 4 ; ==================================== 5 ; lhf_validation_scatter_2000_2009.pro 6 ; ==================================== 7 ; 8 ; DESCRIPTION 9 ; =========== 10 ; 11 ; SEE ALSO 12 ; ======== 13 ; 14 ; :ref:`tropflux_profile.sh` 15 ; 16 ; EXAMPLES 17 ; ======== 18 ; 19 ; :: 20 ; 21 ; IDL> @tropflux_init 22 ; IDL> date1=++ 23 ; IDL> date2=++ 24 ; IDL> lhf_validation_scatter_2000_2009, date1, date2 25 ; 26 ; EVOLUTIONS 27 ; ========== 28 ; 29 ; $Id$ 30 ; 31 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 32 ; 33 ; * minimal header 34 ; 35 ;- 2 36 pro lhf_validation_scatter_2000_2009,date1,date2 3 37 @common 4 ;------------------------------------------------------------5 38 6 39 reinitplt, /z,/invert … … 8 41 9 42 openps, FILENAME = 'idl.ps' 10 ;------------------------------------------------------------11 43 ;; Before running this program, you have to compile the following subrutines 12 44 … … 31 63 ocean='global' 32 64 33 ;------------------------------------------------------------------------------------------------------------------------34 65 ;; This program will create the following text files with statistics of respective variables 35 ;------------------------------------------------------------------------------------------------------------------------36 66 close,/all 37 67 … … 53 83 printf,4, 'x y cor bias std rmsd mean_tao' 54 84 55 ;------------------------------------------------------------------------------------------------------------------------56 85 ;; first reading the whole ERAI uncorrected and corrected data 57 86 58 87 file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lhf_19890101_20091231_oafluxgrid.nc' 59 88 initncdf, file 60 unc=read_ncdf('lhf',date1,date2,file=file,/nostr) 89 unc=read_ncdf('lhf',date1,date2,file=file,/nostr) 61 90 help, unc 62 91 … … 74 103 fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/lhf_ncep2_oafluxgrid_19890101_20091231.nc' 75 104 initncdf, fi 76 nce=read_ncdf("lhf", date1, date2, file=fi,/nostr) 105 nce=read_ncdf("lhf", date1, date2, file=fi,/nostr) 77 106 help, nce 78 107 79 108 file='/Volumes/Iomega_HDD/flux_reconstruction/ncep/fluxe_ncep1_19890101_20091231.nc' 80 109 initncdf, file 81 nce1=-1*read_ncdf("lhf", date1, date2, file=file,/nostr) 110 nce1=-1*read_ncdf("lhf", date1, date2, file=file,/nostr) 82 111 help, nce1 83 112 84 113 nsmooth=1. 85 ;------------------------------------------------------------------------------------------------------------------------86 114 nn=n_elements(sitelist) 87 115 date1=date1 … … 101 129 102 130 lhf=lh & ind=where(finite(lhf)) & valid=n_elements(ind) 103 131 104 132 if (valid ge 180. ) then begin 105 133 … … 108 136 uncr=tropflux 109 137 110 extract_flux_tropflux,cor,box, $ 138 extract_flux_tropflux,cor,box, $ 111 139 tropflux 112 140 corr=tropflux 113 141 114 142 extract_flux_tropflux,oaf,box, $ 115 143 tropflux … … 130 158 statistics_3var_v1, lhf, uncr_lhf, corr_lhf, $ 131 159 cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 132 160 133 161 printf, 1, x, y, cor1, bias1, std1, rmsd1, mean_tao, format='(f6.2, 3x, f6.2, 3x, f4.2,3x,f7.2,3x,f4.2,3x,f5.2,3x,f6.2)' 134 162 printf, 2, x, y, cor2, bias2, std2, rmsd2, mean_tao, format='(f6.2, 3x, f6.2, 3x, f4.2,3x,f7.2,3x,f4.2,3x,f5.2,3x,f6.2)' … … 170 198 171 199 splot, mean_tao, mean_erai, charsize=1.1, title='LHF - TAO Vs ERAI', $ 172 xrange=[20,200], yrange=[20,200], small=[2,3,1], psym=2 200 xrange=[20,200], yrange=[20,200], small=[2,3,1], psym=2 173 201 xyouts, 50,25, cstat, charsize=1. 174 202 xyouts, 50,10, 'cor bias std rmsd', charsize=1. … … 305 333 oplot, [20,200], [20,200] 306 334 307 ;-----------------------------------------------------------308 335 closeps 309 336 … … 313 340 return 314 341 end 315 ;--------------------------------------------------------------------------316 342 function x_site_location, site 317 343 n1=strpos(site, 's') … … 328 354 return, float(x) 329 355 end 330 ;--------------------------------------------------------------------------331 356 function y_site_location, site 332 357 n1=strpos(site, 'e') … … 354 379 return,float(y) 355 380 end 356 357 ;--------------------------------------------------------------------------358 -
trunk/src/paper01/fig8/shf_validation_scatter_2000_2009.pro
r41 r43 1 ;------------------------------------------------------------ 1 ;+ 2 ; .. _shf_validation_scatter_2000_2009.pro 3 ; 4 ; ==================================== 5 ; shf_validation_scatter_2000_2009.pro 6 ; ==================================== 7 ; 8 ; DESCRIPTION 9 ; =========== 10 ; 11 ; SEE ALSO 12 ; ======== 13 ; 14 ; :ref:`tropflux_profile.sh` 15 ; 16 ; EXAMPLES 17 ; ======== 18 ; 19 ; :: 20 ; 21 ; IDL> @tropflux_init 22 ; IDL> date1=++ 23 ; IDL> date2=++ 24 ; IDL> shf_validation_scatter_2000_2009, date1, date2 25 ; 26 ; EVOLUTIONS 27 ; ========== 28 ; 29 ; $Id$ 30 ; 31 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 32 ; 33 ; * minimal header 34 ; 35 ;- 2 36 pro shf_validation_scatter_2000_2009,date1,date2 3 37 @common 4 ;------------------------------------------------------------5 38 6 39 reinitplt, /z,/invert … … 8 41 9 42 openps, FILENAME = 'idl.ps' 10 ;------------------------------------------------------------11 43 ;; Before running this program, you have to compile the following subrutines 12 44 ;; 1. .r read_variables_sh … … 30 62 ocean='global' 31 63 32 nsmooth=1. 33 ;------------------------------------------------------------------------------------------------------------------------ 64 nsmooth=1. 34 65 ;; This program will create the following text files with statistics of respective variables 35 ;------------------------------------------------------------------------------------------------------------------------36 66 close,/all 37 67 … … 55 85 printf,5, 'x y cor bias std rmsd mean_tao' 56 86 57 ;------------------------------------------------------------------------------------------------------------------------58 87 ;; first reading the whole ERAI uncorrected and corrected data 59 88 60 89 file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_shf_19890101_20091231_oafluxgrid.nc' 61 90 initncdf, file 62 unc=read_ncdf('shf',date1,date2,file=file,/nostr) 91 unc=read_ncdf('shf',date1,date2,file=file,/nostr) 63 92 help, unc 64 93 … … 76 105 fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/shf_ncep2_oafluxgrid_19890101_20091231.nc' 77 106 initncdf, fi 78 nce=read_ncdf("shf", date1, date2, file=fi,/nostr) 107 nce=read_ncdf("shf", date1, date2, file=fi,/nostr) 79 108 help, nce 80 109 … … 84 113 help, nce1 85 114 86 ;------------------------------------------------------------------------------------------------------------------------87 115 nn=n_elements(sitelist) 88 116 date1=date1 … … 102 130 at, sw,rh,sst,wu,wv,ws,sh 103 131 shf=sh & ind=where(finite(shf)) & valid=n_elements(ind) 104 132 105 133 if (valid ge 180. ) then begin 106 134 … … 109 137 uncr=tropflux 110 138 111 extract_flux_tropflux,cor,box, $ 139 extract_flux_tropflux,cor,box, $ 112 140 tropflux 113 141 corr=tropflux 114 142 115 143 extract_flux_tropflux,oaf,box, $ 116 144 tropflux … … 130 158 statistics_3var_v1, shf, uncr_shf, corr_shf, $ 131 159 cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 132 160 133 161 printf, 1, x, y, cor1, bias1, std1, rmsd1, mean_tao, format='(f6.2, 3x, f6.2, 3x, f4.2,3x,f7.2,3x,f4.2,3x,f5.2,3x,f6.2)' 134 162 printf, 2, x, y, cor2, bias2, std2, rmsd2, mean_tao, format='(f6.2, 3x, f6.2, 3x, f4.2,3x,f7.2,3x,f4.2,3x,f5.2,3x,f6.2)' … … 305 333 oplot, [-5,25], [-5,25] 306 334 307 ;-----------------------------------------------------------308 335 closeps 309 336 … … 313 340 return 314 341 end 315 ;--------------------------------------------------------------------------316 342 function x_site_location, site 317 343 n1=strpos(site, 's') … … 328 354 return, float(x) 329 355 end 330 ;--------------------------------------------------------------------------331 356 function y_site_location, site 332 357 n1=strpos(site, 'e') … … 354 379 return,float(y) 355 380 end 356 357 ;--------------------------------------------------------------------------358
Note: See TracChangeset
for help on using the changeset viewer.