Changeset 43 for trunk/src/paper01/fig3
- Timestamp:
- 04/11/11 18:05:51 (13 years ago)
- Location:
- trunk/src/paper01/fig3
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/paper01/fig3/air_validation_scatter_2000_2009_v50.pro
r41 r43 1 ;------------------------------------------------------------ 2 pro air_validation_scatter_2000_2009_v50,date1,date2 1 ;+ 2 ; _air_validation_scatter_2000_2009_v50.pro: 3 ; 4 ; ======================================== 5 ; air_validation_scatter_2000_2009_v50.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> air_validation_scatter_2000_2009_v50, date1, date2 25 ; 26 ; 27 ; EVOLUTIONS 28 ; ========== 29 ; 30 ; $Id$ 31 ; 32 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 33 ; 34 ; * minimal header 35 ; 36 ;- 37 38 pro air_validation_scatter_2000_2009_v50, date1, date2 3 39 @common 4 ;------------------------------------------------------------5 40 6 41 reinitplt, /z,/invert … … 8 43 9 44 openps, FILENAME = 'idl.ps' 10 ;------------------------------------------------------------11 45 ;; Before running this program, you have to compile the following subrutines 12 46 ;; 1. .r read_era_total … … 31 65 32 66 nsmooth=1. ;; statistics are with 7 day smoothed 33 ;------------------------------------------------------------------------------------------------------------------------34 67 ;; This program will create the following text files with statistics of respective variables 35 ;------------------------------------------------------------------------------------------------------------------------36 68 close,/all 37 69 … … 54 86 printf,5, 'x y cor bias std rmsd mean_tao' 55 87 56 ;------------------------------------------------------------------------------------------------------------------------57 88 ;; first reading the whole ERAI uncorrected and corrected data 58 89 59 90 file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_t2m_19890101_20091231_oafluxgrid.nc' 60 91 initncdf, file 61 unc=read_ncdf('t2m',date1,date2,file=file,/nostr) & unc=unc-273.15 92 unc=read_ncdf('t2m',date1,date2,file=file,/nostr) & unc=unc-273.15 62 93 help, unc 63 94 … … 75 106 fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/air_2m_ncep2_oafluxgrid_19890101_20091231.nc' 76 107 initncdf, fi 77 nce=read_ncdf("air", date1-1, date2, file=fi,/nostr) 108 nce=read_ncdf("air", date1-1, date2, file=fi,/nostr) 78 109 nce=nce-273.15 79 110 help, nce … … 81 112 file='/Volumes/Iomega_HDD/flux_reconstruction/ncep/t2m_ncep1_19890101_20091231.nc' 82 113 initncdf, file 83 nce1=read_ncdf("t2m", date1, date2, file=file,/nostr) 114 nce1=read_ncdf("t2m", date1, date2, file=file,/nostr) 84 115 nce1=nce1-273.15 85 116 help, nce1 86 117 87 ;------------------------------------------------------------------------------------------------------------------------88 118 nn=n_elements(sitelist) 89 119 date1=date1 … … 107 137 ;; lh -> latent heat flux 108 138 ;; rh -> relative humidity 109 ;; wu,wv,ws -> wind speed 110 ;; 139 ;; wu,wv,ws -> wind speed 140 ;; 111 141 112 142 … … 118 148 uncr=tropflux 119 149 120 extract_flux_tropflux,cor,box, $ 150 extract_flux_tropflux,cor,box, $ 121 151 tropflux 122 152 corr=tropflux 123 153 124 154 extract_flux_tropflux,oaf,box, $ 125 155 tropflux … … 135 165 136 166 137 ind=where(finite(air)) & air=air(ind) & uncr_air=uncr(ind) & corr_air=corr(ind) 167 ind=where(finite(air)) & air=air(ind) & uncr_air=uncr(ind) & corr_air=corr(ind) 138 168 oafl=oafl(ind) & ncep=ncep(ind) & ncep1=ncep1(ind) 139 169 mean_tao=total(air,/nan)/n_elements(ind) 140 170 141 171 statistics_3var_v1, air, uncr_air, corr_air, $ 142 172 cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 143 173 144 174 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)' 145 175 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)' … … 155 185 156 186 endfor 157 ;----------------------------------------------------------------------------------------- 158 close,/all 187 close,/all 159 188 160 189 fi_air_erai='/Users/pkb/work/MY_SAXO/flux_automat/air_2000_2009_erai_v50.txt' … … 294 323 oplot, mean_tao, yfit, color=250, thick=2 295 324 296 ;-----------------------------------------------------------297 325 closeps 298 326 … … 302 330 return 303 331 end 304 ;--------------------------------------------------------------------------305 332 function x_site_location, site 306 333 n1=strpos(site, 's') … … 317 344 return, float(x) 318 345 end 319 ;--------------------------------------------------------------------------320 346 function y_site_location, site 321 347 n1=strpos(site, 'e') … … 343 369 return,float(y) 344 370 end 345 346 ;--------------------------------------------------------------------------347 -
trunk/src/paper01/fig3/q2m_validation_scatter_2000_2009_v50.pro
r41 r43 1 ;------------------------------------------------------------ 2 pro q2m_validation_scatter_2000_2009_v50,date1,date2 1 ;+ 2 ; .. _q2m_validation_scatter_2000_2009_v50.pro 3 ; 4 ; ======================================== 5 ; q2m_validation_scatter_2000_2009_v50.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> q2m_validation_scatter_2000_2009_v50, 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 ;- 36 pro q2m_validation_scatter_2000_2009_v50, 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_era_total … … 31 63 32 64 nsmooth=1. ;; statistics are with 7 day smoothed 33 ;------------------------------------------------------------------------------------------------------------------------34 65 ;; This program will create the following text files with statistics of respective variables 35 ;------------------------------------------------------------------------------------------------------------------------36 66 close,/all 37 67 … … 54 84 printf,5, 'x y cor bias std rmsd mean_tao' 55 85 56 ;------------------------------------------------------------------------------------------------------------------------57 86 ;; first reading the whole ERAI uncorrected and corrected data 58 87 … … 64 93 file='/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_q2m_19890101_20091231_v20.nc' 65 94 initncdf, file 66 cor=read_ncdf('q2m',date1,date2,file=file,/nostr) 95 cor=read_ncdf('q2m',date1,date2,file=file,/nostr) 67 96 help, cor 68 97 … … 74 103 fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/sphum_ncep2_oafluxgrid_19890101_20091231.nc' 75 104 initncdf, fi 76 nce=read_ncdf("shum", date1-1, date2, file=fi,/nostr) 105 nce=read_ncdf("shum", date1-1, date2, file=fi,/nostr) 77 106 nce=nce*1000 78 107 help, nce … … 84 113 help, nce1 85 114 86 ;------------------------------------------------------------------------------------------------------------------------87 115 nn=n_elements(sitelist) 88 116 date1=date1 … … 106 134 ;; lh -> latent heat flux 107 135 ;; rh -> relative humidity 108 ;; wu,wv,ws -> wind speed 109 ;; 136 ;; wu,wv,ws -> wind speed 137 ;; 110 138 111 139 … … 117 145 uncr=tropflux 118 146 119 extract_flux_tropflux,cor,box, $ 147 extract_flux_tropflux,cor,box, $ 120 148 tropflux 121 149 corr=tropflux 122 150 123 151 extract_flux_tropflux,oaf,box, $ 124 152 tropflux … … 133 161 ncep1=tropflux 134 162 135 ind=where(finite(q2m)) & q2m=q2m(ind) & uncr_q2m=uncr(ind) & corr_q2m=corr(ind) 136 oafl=oafl(ind) & ncep=ncep(ind) & ncep1=ncep1(ind) 163 ind=where(finite(q2m)) & q2m=q2m(ind) & uncr_q2m=uncr(ind) & corr_q2m=corr(ind) 164 oafl=oafl(ind) & ncep=ncep(ind) & ncep1=ncep1(ind) 137 165 mean_tao=total(q2m,/nan)/n_elements(ind) 138 166 139 167 statistics_3var_v1, q2m, uncr_q2m, corr_q2m, $ 140 168 cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 141 169 142 170 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)' 143 171 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)' … … 153 181 154 182 endfor 155 ;----------------------------------------------------------------------------------------- 156 close,/all 183 close,/all 157 184 158 185 fi_q2m_erai='/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_erai_v50.txt' … … 291 318 oplot, mean_tao, yfit, color=250, thick=2 292 319 293 ;-----------------------------------------------------------294 320 closeps 295 321 … … 299 325 return 300 326 end 301 ;--------------------------------------------------------------------------302 327 function x_site_location, site 303 328 n1=strpos(site, 's') … … 314 339 return, float(x) 315 340 end 316 ;--------------------------------------------------------------------------317 341 function y_site_location, site 318 342 n1=strpos(site, 'e') … … 340 364 return,float(y) 341 365 end 342 343 ;--------------------------------------------------------------------------344 -
trunk/src/paper01/fig3/read_variables_v2.pro
r41 r43 1 ;------------------------------------------------------------------------------------------------- 1 ;+ 2 ; .. _read_variables_v2.pro 3 ; 4 ; ===================== 5 ; read_variables_v2.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> csite=++ 23 ; IDL> ++ 24 ; IDL> read_variables_v2, csite,date1,date2,nsmooth, at, sw,rh,sst,wu,wv,ws, lh 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 read_variables_v2, csite,date1,date2,nsmooth, $ 3 37 at, sw,rh,sst,wu,wv,ws, lh 4 38 5 39 ; 6 ;-------------------------------------------------------------------------------------------------7 40 @common 8 41 … … 75 108 lon(tt0(ind))=lon0(ind) 76 109 endif 77 endif 110 endif 78 111 79 112 … … 122 155 ind_at=where(at_q ne 1 and at_q ne 2) & ind_ws=where(ws_q ne 1 and ws_q ne 2) 123 156 ind_rh=where(rh_q ne 1 and rh_q ne 2) & ind_sst=where(sst_q ne 1 and sst_q ne 2) 124 ind_lh=where(lh_q ne 1 and lh_q ne 2) 125 157 ind_lh=where(lh_q ne 1 and lh_q ne 2) 158 126 159 ind=union(ind_at, union(ind_rh, union(ind_ws, union(ind_lh, ind_sst)))) 127 160 … … 135 168 ;; Replace missing values by "NaN" 136 169 ; 137 tsvars=['at','sw','rh','sst','wu','wv','ws','lat','lon'] 170 tsvars=['at','sw','rh','sst','wu','wv','ws','lat','lon'] 138 171 vars=[tsvars] 139 172 nn=n_elements(vars) … … 150 183 ws=smooth(ws,nsmooth,/nan) & sw=smooth(sw,nsmooth,/nan) 151 184 152 ;-------------------------------------------------------------------------------------------------153 185 end 154 ;-------------------------------------------------------------------------------------------------155 186 156 187 157 ;-------------------------------------------------------------------------------------------------158 188 function time_lec, fi 159 189 tt=ncdf_lec(fi,var='time') … … 167 197 return, tt 168 198 end 169 170 ;------------------------------------------------------------------------------------------------- -
trunk/src/paper01/fig3/sst_validation_scatter_2000_2009_v50.pro
r41 r43 1 ;------------------------------------------------------------ 2 pro sst_validation_scatter_2000_2009_v50,date1,date2 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 ; 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> sst_validation_scatter_2000_2009_v50, 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 ;- 36 pro sst_validation_scatter_2000_2009_v50, 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_era_total … … 31 63 32 64 nsmooth=1. ;; statistics are with 7 day smoothed 33 ;------------------------------------------------------------------------------------------------------------------------34 65 ;; This program will create the following text files with statistics of respective variables 35 ;------------------------------------------------------------------------------------------------------------------------36 66 close,/all 37 67 … … 58 88 printf,6, 'x y cor bias std rmsd mean_tao' 59 89 60 ;------------------------------------------------------------------------------------------------------------------------61 90 ;; first reading the whole ERAI uncorrected and corrected data 62 91 63 92 file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_sst_19890101_20091231_oafluxgrid.nc' 64 93 initncdf, file 65 unc=read_ncdf('sst',date1,date2,file=file,/nostr) & unc=unc-273.15 94 unc=read_ncdf('sst',date1,date2,file=file,/nostr) & unc=unc-273.15 66 95 help, unc 67 96 … … 78 107 fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/sst_ncep2_oafluxgrid_19890101_20091231.nc' 79 108 initncdf, fi 80 nce=read_ncdf("sst", date1-1, date2, file=fi,/nostr) 109 nce=read_ncdf("sst", date1-1, date2, file=fi,/nostr) 81 110 nce=nce-273.15 82 111 help, nce … … 93 122 help, nce1 94 123 95 ;------------------------------------------------------------------------------------------------------------------------96 124 nn=n_elements(sitelist) 97 125 date1=date1 … … 122 150 uncr=tropflux 123 151 124 extract_flux_tropflux,cor,box, $ 152 extract_flux_tropflux,cor,box, $ 125 153 tropflux 126 154 corr=tropflux 127 155 128 156 extract_flux_tropflux,oaf,box, $ 129 157 tropflux … … 143 171 144 172 145 ind=where(finite(sst)) & sst=sst(ind) & uncr_sst=uncr(ind) & corr_sst=corr(ind) 173 ind=where(finite(sst)) & sst=sst(ind) & uncr_sst=uncr(ind) & corr_sst=corr(ind) 146 174 oafl=oafl(ind) & ncep=ncep(ind) & tmi=tmi(ind) & ncep1=ncep1(ind) 147 175 mean_tao=total(sst,/nan)/n_elements(ind) 148 176 149 177 statistics_3var_v1, sst, uncr_sst, corr_sst, $ 150 178 cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 151 179 152 180 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)' 153 181 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)' … … 166 194 167 195 endfor 168 ;----------------------------------------------------------------------------------------- 169 close,/all 196 close,/all 170 197 171 198 fi_sst_erai='/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_v50_erai.txt' … … 333 360 oplot, mean_tao, yfit, color=250, thick=2 334 361 335 ;-----------------------------------------------------------336 362 closeps 337 363 … … 341 367 return 342 368 end 343 ;--------------------------------------------------------------------------344 369 function x_site_location, site 345 370 n1=strpos(site, 's') … … 356 381 return, float(x) 357 382 end 358 ;--------------------------------------------------------------------------359 383 function y_site_location, site 360 384 n1=strpos(site, 'e') … … 382 406 return,float(y) 383 407 end 384 385 ;--------------------------------------------------------------------------386 -
trunk/src/paper01/fig3/statistics_3var_v1.pro
r41 r43 1 ;+ 2 ; .. _statistics_3var_v1.pro 3 ; 4 ; ====================== 5 ; statistics_3var_v1.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> tao=++ 23 ; IDL> ++ 24 ; IDL> statistics_3var_v1, tao, var1, var2, cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 25 ; 26 ; EVOLUTIONS 27 ; ========== 28 ; 29 ; $Id$ 30 ; 31 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 32 ; 33 ; * minimal header 34 ; 35 ;- 36 37 1 38 pro statistics_3var_v1, tao,var1,var2, $ 2 39 cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 3 40 4 41 5 42 @common 6 ;--------------------------------------------7 ;--------------------------------------------8 43 x=tao & y=var1 & z=var2 9 44 … … 12 47 13 48 if (ind ne -1.) then begin 14 x(ind)=!Values.f_nan & y(ind)=!Values.f_nan & z(ind)=!Values.f_nan 49 x(ind)=!Values.f_nan & y(ind)=!Values.f_nan & z(ind)=!Values.f_nan 15 50 endif 16 51 … … 42 77 43 78 end 44 ;--------------------------------------------45 -
trunk/src/paper01/fig3/ws_validation_scatter_2000_2009_v50.pro
r41 r43 1 ;------------------------------------------------------------ 1 ;+ 2 ; .. _ws_validation_scatter_2000_2009_v50.pro 3 ; 4 ; ======================================= 5 ; ws_validation_scatter_2000_2009_v50.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> ws_validation_scatter_2000_2009_v50, date1, date2 25 ; 26 ; 27 ; EVOLUTIONS 28 ; ========== 29 ; 30 ; $Id$ 31 ; 32 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 33 ; 34 ; * minimal header 35 ; 36 ;- 2 37 pro ws_validation_scatter_2000_2009_v50,date1,date2 3 38 @common 4 ;------------------------------------------------------------5 39 6 40 reinitplt, /z,/invert … … 8 42 9 43 openps, FILENAME = 'idl.ps' 10 ;------------------------------------------------------------11 44 ;; Before running this program, you have to compile the following subrutines 12 45 ;; 1. .r read_era_total … … 32 65 da1=10000101 & da2=10081231 33 66 nsmooth=1. ;; statistics are with 7 day smoothed 34 ;------------------------------------------------------------------------------------------------------------------------35 67 ;; This program will create the following text files with statistics of respective variables 36 ;------------------------------------------------------------------------------------------------------------------------37 68 close,/all 38 69 … … 58 89 printf,6, 'x y cor bias std rmsd mean_tao' 59 90 60 ;------------------------------------------------------------------------------------------------------------------------61 91 ;; first reading the whole ERAI uncorrected and corrected data 62 92 63 93 file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_ws_19890101_20091231_oafluxgrid.nc' 64 94 initncdf, file 65 u=read_ncdf('u10',date1,date2,file=file,/nostr) 66 v=read_ncdf('v10',date1,date2,file=file,/nostr) 67 unc=sqrt(u*u+v*v) 95 u=read_ncdf('u10',date1,date2,file=file,/nostr) 96 v=read_ncdf('v10',date1,date2,file=file,/nostr) 97 unc=sqrt(u*u+v*v) 68 98 help, unc 69 99 70 100 file='/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_ws_19890101_20091231_v20.nc' 71 101 initncdf, file 72 cor=read_ncdf('ws',date1,date2,file=file,/nostr) 102 cor=read_ncdf('ws',date1,date2,file=file,/nostr) 73 103 help, cor 74 104 … … 80 110 fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/uwind_ncep2_oafluxgrid_19890101_20091231.nc' 81 111 initncdf, fi 82 u=read_ncdf("u", date1-1, date2, file=fi,/nostr) 112 u=read_ncdf("u", date1-1, date2, file=fi,/nostr) 83 113 fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/vwind_ncep2_oafluxgrid_19890101_20091231.nc' 84 114 initncdf, fi 85 v=read_ncdf("v", date1-1, date2, file=fi,/nostr) 115 v=read_ncdf("v", date1-1, date2, file=fi,/nostr) 86 116 nce=sqrt(u*u+v*v) 87 117 help, nce … … 104 134 help, nce1 105 135 106 ;------------------------------------------------------------------------------------------------------------------------107 136 nn=n_elements(sitelist) 108 137 date1=date1 … … 130 159 uncr=tropflux 131 160 132 extract_flux_tropflux,cor,box, $ 161 extract_flux_tropflux,cor,box, $ 133 162 tropflux 134 163 corr=tropflux 135 164 136 165 extract_flux_tropflux,oaf,box, $ 137 166 tropflux … … 150 179 ncep1=tropflux 151 180 152 ind=where(finite(ws)) & ws=ws(ind) & uncr_ws=uncr(ind) & corr_ws=corr(ind) 181 ind=where(finite(ws)) & ws=ws(ind) & uncr_ws=uncr(ind) & corr_ws=corr(ind) 153 182 oafl=oafl(ind) & ncep=ncep(ind) & tmi=tmi(ind) & ncep1=ncep1(ind) 154 183 155 184 mean_tao=total(ws)/n_elements(ws) 156 185 157 186 statistics_3var_v1, ws, uncr_ws, corr_ws, $ 158 187 cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 159 188 160 189 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)' 161 190 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)' … … 172 201 173 202 endfor 174 ;----------------------------------------------------------------------------------------- 175 close,/all 203 close,/all 176 204 fi_ws_erai='/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_erai_v50.txt' 177 205 res=read_ascii(fi_ws_erai,data_start=1) … … 338 366 oplot, mean_tao, yfit, color=250, thick=2 339 367 340 ;-----------------------------------------------------------341 368 closeps 342 369 … … 346 373 return 347 374 end 348 ;--------------------------------------------------------------------------349 375 function x_site_location, site 350 376 n1=strpos(site, 's') … … 361 387 return, float(x) 362 388 end 363 ;--------------------------------------------------------------------------364 389 function y_site_location, site 365 390 n1=strpos(site, 'e') … … 387 412 return,float(y) 388 413 end 389 390 ;--------------------------------------------------------------------------391
Note: See TracChangeset
for help on using the changeset viewer.