- Timestamp:
- 04/11/11 18:05:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.