Changeset 43 for trunk/src/paper01/fig7
- Timestamp:
- 04/11/11 18:05:51 (13 years ago)
- Location:
- trunk/src/paper01/fig7
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/paper01/fig7/air_validation_scatter_2000_2009_basin.pro
r41 r43 1 ;------------------------------------------------------------ 1 ;+ 2 ; .. _air_validation_scatter_2000_2009.pro 3 ; 4 ; ==================================== 5 ; air_validation_scatter_2000_2009.pro 6 ; ==================================== 7 ; DESCRIPTION 8 ; =========== 9 ; 10 ; SEE ALSO 11 ; ======== 12 ; 13 ; :ref:`tropflux_profile.sh` 14 ; 15 ; EXAMPLES 16 ; ======== 17 ; 18 ; :: 19 ; 20 ; IDL> @tropflux_init 21 ; IDL> .r read_era_total 22 ; IDL> .r read_variables_v2 23 ; IDL> .r read_era_box 24 ; IDL> date1=++ 25 ; IDL> date2=++ 26 ; IDL> air_validation_scatter_2000_2009, date1, date2 27 ; 28 ; EVOLUTIONS 29 ; ========== 30 ; 31 ; $Id$ 32 ; 33 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 34 ; 35 ; * minimal header 36 ; 37 ;- 2 38 pro air_validation_scatter_2000_2009,date1,date2 3 39 @common 4 ;------------------------------------------------------------5 40 6 41 reinitplt, /z,/invert … … 8 43 9 44 openps, FILENAME = 'idl.ps' 10 ;------------------------------------------------------------11 ;; Before running this program, you have to compile the following subrutines12 ;; 1. .r read_era_total13 ;; 2. .r read_variables_v214 ;; 3. .r read_era_box15 45 16 46 ;; Give the location of mooring for validation of basic meteorological variables … … 65 95 66 96 nsmooth=1. ;; statistics are with 7 day smoothed 67 ;------------------------------------------------------------------------------------------------------------------------68 97 ;; This program will create the following text files with statistics of respective variables 69 ;------------------------------------------------------------------------------------------------------------------------70 98 close,/all 71 99 … … 88 116 printf,5, 'x y cor bias std rmsd mean_tao' 89 117 90 ;------------------------------------------------------------------------------------------------------------------------91 118 ;; first reading the whole ERAI uncorrected and corrected data 92 119 93 120 file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_t2m_19890101_20091231_oafluxgrid.nc' 94 121 initncdf, file 95 unc=read_ncdf('t2m',date1,date2,file=file,/nostr) & unc=unc-273.15 122 unc=read_ncdf('t2m',date1,date2,file=file,/nostr) & unc=unc-273.15 96 123 help, unc 97 124 … … 109 136 ;fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/air_2m_ncep2_oafluxgrid_19890101_20091231.nc' 110 137 ;initncdf, fi 111 ;nce=read_ncdf("air", date1-1, date2, file=fi,/nostr) 138 ;nce=read_ncdf("air", date1-1, date2, file=fi,/nostr) 112 139 ;nce=nce-273.15 113 140 ;help, nce … … 115 142 ;file='/Volumes/Iomega_HDD/flux_reconstruction/ncep/t2m_ncep1_19890101_20091231.nc' 116 143 ;initncdf, file 117 ;nce1=read_ncdf("t2m", date1, date2, file=file,/nostr) 144 ;nce1=read_ncdf("t2m", date1, date2, file=file,/nostr) 118 145 ;nce1=nce1-273.15 119 146 ;help, nce1 … … 123 150 help, unc, cor, oaf, nce, nce1 124 151 125 ;------------------------------------------------------------------------------------------------------------------------126 152 nn=n_elements(sitelist) 127 153 date1=date1 … … 145 171 ;; lh -> latent heat flux 146 172 ;; rh -> relative humidity 147 ;; wu,wv,ws -> wind speed 148 ;; 173 ;; wu,wv,ws -> wind speed 174 ;; 149 175 150 176 … … 156 182 uncr=tropflux 157 183 158 extract_flux_tropflux,cor,box, $ 184 extract_flux_tropflux,cor,box, $ 159 185 tropflux 160 186 corr=tropflux 161 187 162 188 extract_flux_tropflux,oaf,box, $ 163 189 tropflux … … 173 199 174 200 175 ind=where(finite(air)) & air=air(ind) & uncr_air=uncr(ind) & corr_air=corr(ind) 201 ind=where(finite(air)) & air=air(ind) & uncr_air=uncr(ind) & corr_air=corr(ind) 176 202 oafl=oafl(ind) & ncep=ncep(ind) & ncep1=ncep1(ind) 177 203 mean_tao=total(air,/nan)/n_elements(ind) 178 204 179 205 statistics_3var_v1, air, uncr_air, corr_air, $ 180 206 cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 181 207 182 208 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)' 183 209 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)' … … 193 219 194 220 endfor 195 ;----------------------------------------------------------------------------------------- 196 close,/all 221 close,/all 197 222 198 223 fi_air_erai='/Users/pkb/work/MY_SAXO/flux_automat/air_2000_2009_erai_'+ocean+'.txt' … … 332 357 oplot, mean_tao, yfit, color=250, thick=2 333 358 334 ;-----------------------------------------------------------335 359 closeps 336 360 … … 340 364 return 341 365 end 342 ;--------------------------------------------------------------------------343 366 function x_site_location, site 344 367 n1=strpos(site, 's') … … 355 378 return, float(x) 356 379 end 357 ;--------------------------------------------------------------------------358 380 function y_site_location, site 359 381 n1=strpos(site, 'e') … … 381 403 return,float(y) 382 404 end 383 384 ;--------------------------------------------------------------------------385 -
trunk/src/paper01/fig7/q2m_validation_scatter_2000_2009_basin.pro
r41 r43 1 ;------------------------------------------------------------ 2 pro q2m_validation_scatter_2000_2009_basin,date1,date2 1 ;+ 2 ; .. _q2m_validation_scatter_2000_2009_basin.pro 3 ; 4 ; ========================================== 5 ; q2m_validation_scatter_2000_2009_basin.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_basin, 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 37 pro q2m_validation_scatter_2000_2009_basin, 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 … … 65 98 66 99 nsmooth=1. ;; statistics are with 7 day smoothed 67 ;------------------------------------------------------------------------------------------------------------------------68 100 ;; This program will create the following text files with statistics of respective variables 69 ;------------------------------------------------------------------------------------------------------------------------70 101 close,/all 71 102 … … 88 119 printf,5, 'x y cor bias std rmsd mean_tao' 89 120 90 ;------------------------------------------------------------------------------------------------------------------------91 121 ;; first reading the whole ERAI uncorrected and corrected data 92 122 … … 98 128 ;file='/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_q2m_19890101_20091231_v20.nc' 99 129 ;initncdf, file 100 ;cor=read_ncdf('q2m',date1,date2,file=file,/nostr) 130 ;cor=read_ncdf('q2m',date1,date2,file=file,/nostr) 101 131 ;help, cor 102 132 … … 108 138 ;fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/sphum_ncep2_oafluxgrid_19890101_20091231.nc' 109 139 ;initncdf, fi 110 ;nce=read_ncdf("shum", date1-1, date2, file=fi,/nostr) 140 ;nce=read_ncdf("shum", date1-1, date2, file=fi,/nostr) 111 141 ;nce=nce*1000 112 142 ;help, nce … … 122 152 help, unc, cor, oaf, nce, nce1 123 153 124 ;------------------------------------------------------------------------------------------------------------------------125 154 nn=n_elements(sitelist) 126 155 date1=date1 … … 144 173 ;; lh -> latent heat flux 145 174 ;; rh -> relative humidity 146 ;; wu,wv,ws -> wind speed 147 ;; 175 ;; wu,wv,ws -> wind speed 176 ;; 148 177 149 178 … … 155 184 uncr=tropflux 156 185 157 extract_flux_tropflux,cor,box, $ 186 extract_flux_tropflux,cor,box, $ 158 187 tropflux 159 188 corr=tropflux 160 189 161 190 extract_flux_tropflux,oaf,box, $ 162 191 tropflux … … 171 200 ncep1=tropflux 172 201 173 ind=where(finite(q2m)) & q2m=q2m(ind) & uncr_q2m=uncr(ind) & corr_q2m=corr(ind) 174 oafl=oafl(ind) & ncep=ncep(ind) & ncep1=ncep1(ind) 202 ind=where(finite(q2m)) & q2m=q2m(ind) & uncr_q2m=uncr(ind) & corr_q2m=corr(ind) 203 oafl=oafl(ind) & ncep=ncep(ind) & ncep1=ncep1(ind) 175 204 mean_tao=total(q2m,/nan)/n_elements(ind) 176 205 177 206 statistics_3var_v1, q2m, uncr_q2m, corr_q2m, $ 178 207 cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 179 208 180 209 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)' 181 210 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)' … … 191 220 192 221 endfor 193 ;----------------------------------------------------------------------------------------- 194 close,/all 222 close,/all 195 223 196 224 fi_q2m_erai='/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_erai_'+ocean+'.txt' … … 329 357 oplot, mean_tao, yfit, color=250, thick=2 330 358 331 ;-----------------------------------------------------------332 359 closeps 333 360 … … 337 364 return 338 365 end 339 ;--------------------------------------------------------------------------340 366 function x_site_location, site 341 367 n1=strpos(site, 's') … … 352 378 return, float(x) 353 379 end 354 ;--------------------------------------------------------------------------355 380 function y_site_location, site 356 381 n1=strpos(site, 'e') … … 378 403 return,float(y) 379 404 end 380 381 ;--------------------------------------------------------------------------382 -
trunk/src/paper01/fig7/sst_validation_scatter_2000_2009_basin.pro
r41 r43 1 ;------------------------------------------------------------ 1 ;+ 2 ; .. _sst_validation_scatter_2000_2009_basin.pro 3 ; 4 ; ========================================== 5 ; sst_validation_scatter_2000_2009_basin.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_basin, 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 sst_validation_scatter_2000_2009_basin,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 … … 43 76 '21n23w', '4n23w', '4n38w', '6s10w', '8n38w', '8s30w'] 44 77 45 nsmooth=1. 46 ;------------------------------------------------------------------------------------------------------------------------ 78 nsmooth=1. 47 79 ;; This program will create the following text files with statistics of respective variables 48 ;------------------------------------------------------------------------------------------------------------------------49 80 close,/all 50 81 … … 71 102 printf,6, 'x y cor bias std rmsd mean_tao' 72 103 73 ;------------------------------------------------------------------------------------------------------------------------74 104 ;; first reading the whole ERAI uncorrected and corrected data 75 105 76 106 ;file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_sst_19890101_20091231_oafluxgrid.nc' 77 107 ;initncdf, file 78 ;unc=read_ncdf('sst',date1,date2,file=file,/nostr) & unc=unc-273.15 108 ;unc=read_ncdf('sst',date1,date2,file=file,/nostr) & unc=unc-273.15 79 109 ;help, unc 80 110 … … 91 121 ;fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/sst_ncep2_oafluxgrid_19890101_20091231.nc' 92 122 ;initncdf, fi 93 ;nce=read_ncdf("sst", date1-1, date2, file=fi,/nostr) 123 ;nce=read_ncdf("sst", date1-1, date2, file=fi,/nostr) 94 124 ;nce=nce-273.15 95 125 ;help, nce … … 112 142 help, unc, cor, oaf, nce, sst_tmi, nce1 113 143 ;; data from 20000101, 20090931 114 ;------------------------------------------------------------------------------------------------------------------------115 144 nn=n_elements(sitelist) 116 145 date1=date1 … … 141 170 uncr=tropflux 142 171 143 extract_flux_tropflux,cor,box, $ 172 extract_flux_tropflux,cor,box, $ 144 173 tropflux 145 174 corr=tropflux 146 175 147 176 extract_flux_tropflux,oaf,box, $ 148 177 tropflux … … 162 191 163 192 164 ind=where(finite(sst)) & sst=sst(ind) & uncr_sst=uncr(ind) & corr_sst=corr(ind) 193 ind=where(finite(sst)) & sst=sst(ind) & uncr_sst=uncr(ind) & corr_sst=corr(ind) 165 194 oafl=oafl(ind) & ncep=ncep(ind) & tmi=tmi(ind) & ncep1=ncep1(ind) 166 195 mean_tao=total(sst,/nan)/n_elements(ind) 167 196 168 197 statistics_3var_v1, sst, uncr_sst, corr_sst, $ 169 198 cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 170 199 171 200 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)' 172 201 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)' … … 185 214 186 215 endfor 187 ;----------------------------------------------------------------------------------------- 188 close,/all 216 close,/all 189 217 190 218 fi_sst_erai='/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_erai_'+ocean+'.txt' … … 352 380 oplot, mean_tao, yfit, color=250, thick=2 353 381 354 ;-----------------------------------------------------------355 382 closeps 356 383 … … 360 387 return 361 388 end 362 ;--------------------------------------------------------------------------363 389 function x_site_location, site 364 390 n1=strpos(site, 's') … … 375 401 return, float(x) 376 402 end 377 ;--------------------------------------------------------------------------378 403 function y_site_location, site 379 404 n1=strpos(site, 'e') … … 401 426 return,float(y) 402 427 end 403 404 ;--------------------------------------------------------------------------405 -
trunk/src/paper01/fig7/ws_validation_scatter_2000_2009_basin.pro
r41 r43 1 ;------------------------------------------------------------ 1 ;+ 2 ; 3 ; .. _ws_validation_scatter_2000_2009_basin.pro 4 ; 5 ; ========================================= 6 ; ws_validation_scatter_2000_2009_basin.pro 7 ; ========================================= 8 ; 9 ; DESCRIPTION 10 ; =========== 11 ; 12 ; SEE ALSO 13 ; ======== 14 ; 15 ; :ref:`tropflux_profile.sh` 16 ; 17 ; EXAMPLES 18 ; ======== 19 ; 20 ; :: 21 ; 22 ; IDL> @tropflux_init 23 ; IDL> date1=++ 24 ; IDL> date2=++ 25 ; IDL> ws_validation_scatter_2000_2009_basin, date1, date2 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_basin,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 … … 49 82 sitelist=['8s125w', '8s110w', '8s95w','5s155w', '5s140w', '5s125w', '5s110w', '5s95w','2s155w', '2s140w', $ 50 83 '2s125w', '2s110w', '2s95w', '0n155w', '0n140w', '0n125w', '0n110w', '0n95w', '2n155w', '2n140w', $ 51 '2n125w', '2n110w', '2n95w', '5n155w', '5n140w', '5n125w', '5n110w', '5n95w'] 84 '2n125w', '2n110w', '2n95w', '5n155w', '5n140w', '5n125w', '5n110w', '5n95w'] 52 85 ocean='Pac_coldtongue' 53 86 … … 65 98 66 99 nsmooth=1 67 ;------------------------------------------------------------------------------------------------------------------------68 100 ;; This program will create the following text files with statistics of respective variables 69 ;------------------------------------------------------------------------------------------------------------------------70 101 close,/all 71 102 … … 91 122 printf,6, 'x y cor bias std rmsd mean_tao' 92 123 93 ;------------------------------------------------------------------------------------------------------------------------94 124 ;; first reading the whole ERAI uncorrected and corrected data 95 125 ;; date1=20000101 & date2=20090931 … … 97 127 file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_ws_19890101_20091231_oafluxgrid.nc' 98 128 initncdf, file 99 u=read_ncdf('u10',date1,date2,file=file,/nostr) 100 ;v=read_ncdf('v10',date1,date2,file=file,/nostr) 101 ;unc=sqrt(u*u+v*v) 129 u=read_ncdf('u10',date1,date2,file=file,/nostr) 130 ;v=read_ncdf('v10',date1,date2,file=file,/nostr) 131 ;unc=sqrt(u*u+v*v) 102 132 ;help, unc 103 133 104 134 ;file='/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_ws_19890101_20091231_v20.nc' 105 135 ;initncdf, file 106 ;cor=read_ncdf('ws',date1,date2,file=file,/nostr) 136 ;cor=read_ncdf('ws',date1,date2,file=file,/nostr) 107 137 ;help, cor 108 138 … … 114 144 ;fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/uwind_ncep2_oafluxgrid_19890101_20091231.nc' 115 145 ;initncdf, fi 116 ;u=read_ncdf("u", date1-1, date2, file=fi,/nostr) 146 ;u=read_ncdf("u", date1-1, date2, file=fi,/nostr) 117 147 ;fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/vwind_ncep2_oafluxgrid_19890101_20091231.nc' 118 148 ;initncdf, fi 119 ;v=read_ncdf("v", date1-1, date2, file=fi,/nostr) 149 ;v=read_ncdf("v", date1-1, date2, file=fi,/nostr) 120 150 ;nce=sqrt(u*u+v*v) 121 151 ;help, nce … … 142 172 help, unc, cor, oaf, nce, ws_tmi, nce1 143 173 144 ;------------------------------------------------------------------------------------------------------------------------145 174 nn=n_elements(sitelist) 146 175 date1=date1 … … 168 197 uncr=tropflux 169 198 170 extract_flux_tropflux,cor,box, $ 199 extract_flux_tropflux,cor,box, $ 171 200 tropflux 172 201 corr=tropflux 173 202 174 203 extract_flux_tropflux,oaf,box, $ 175 204 tropflux … … 188 217 ncep1=tropflux 189 218 190 ind=where(finite(ws)) & ws=ws(ind) & uncr_ws=uncr(ind) & corr_ws=corr(ind) 219 ind=where(finite(ws)) & ws=ws(ind) & uncr_ws=uncr(ind) & corr_ws=corr(ind) 191 220 oafl=oafl(ind) & ncep=ncep(ind) & tmi=tmi(ind) & ncep1=ncep1(ind) 192 221 193 222 mean_tao=total(ws)/n_elements(ws) 194 223 195 224 statistics_3var_v1, ws, uncr_ws, corr_ws, $ 196 225 cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 197 226 198 227 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)' 199 228 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)' … … 210 239 211 240 endfor 212 ;----------------------------------------------------------------------------------------- 213 close,/all 241 close,/all 214 242 fi_ws_erai='/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_erai_'+ocean+'.txt' 215 243 res=read_ascii(fi_ws_erai,data_start=1) … … 376 404 oplot, mean_tao, yfit, color=250, thick=2 377 405 378 ;-----------------------------------------------------------379 406 closeps 380 407 … … 384 411 return 385 412 end 386 ;--------------------------------------------------------------------------387 413 function x_site_location, site 388 414 n1=strpos(site, 's') … … 399 425 return, float(x) 400 426 end 401 ;--------------------------------------------------------------------------402 427 function y_site_location, site 403 428 n1=strpos(site, 'e') … … 425 450 return,float(y) 426 451 end 427 428 ;--------------------------------------------------------------------------429
Note: See TracChangeset
for help on using the changeset viewer.