Changeset 46
- Timestamp:
- 04/20/11 16:45:53 (13 years ago)
- Location:
- trunk/src/paper01
- Files:
-
- 43 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/paper01/fig1/fig1_no_obs_map.pro
r44 r46 42 42 ; :ref:`tropflux_init.pro` 43 43 ; 44 ; :func:`x_site_location` 45 ; :func:`y_site_location` 46 ; 44 47 ; :ref:`oaflux_mask_30N30S.pro` 45 48 ; … … 69 72 ; 70 73 ; $Id$ 74 ; 75 ; - fplod 20110420T134821Z aedon.locean-ipsl.upmc.fr (Darwin) 76 ; 77 ; * externalize functions 71 78 ; 72 79 ; - fplod 20110412T073818Z aedon.locean-ipsl.upmc.fr (Darwin) … … 222 229 spawn, 'gv '+fig 223 230 end 224 225 function x_site_location, site226 n1=strpos(site, 's')227 if (n1 gt -1) then begin228 ns=-1.229 x=strmid(site, 0, n1)230 x=float(x)*ns231 endif else begin232 n1=strpos(site, 'n')233 x=strmid(site, 0, n1)234 ny=1.235 x=float(x)*ny236 endelse237 return, float(x)238 end239 240 function y_site_location, site241 n1=strpos(site, 'e')242 if (n1 gt -1) then begin243 n=strpos(site, 's')244 if (n gt -1) then begin245 y=strmid(site, n+1, n1-n-1)246 endif else begin247 n=strpos(site, 'n')248 y=strmid(site, n+1, n1-n-1)249 endelse250 251 endif else begin252 n1=strpos(site, 'w')253 n=strpos(site, 's')254 if (n gt -1) then begin255 y=strmid(site, n+1, n1-n-1)256 y=180+(180-float(y))257 endif else begin258 n=strpos(site, 'n')259 y=strmid(site, n+1, n1-n-1)260 y=180+(180-float(y))261 endelse262 endelse263 return,float(y)264 end -
trunk/src/paper01/fig10/fig10_swr_correction.pro
r43 r46 1 1 ;+ 2 ; .. _fig10_swr_correction.pro 2 ; .. _fig10_swr_correction.pro: 3 3 ; 4 4 ; ======================== … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph fig10_swr_correction { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; swr_isccp [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_isccp_correction.txt"]; 18 ; 19 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/fig10_swr_correction.ps"]; 20 ; 21 ; fig10_swr_correction [shape=box, 22 ; fontname=Courier, 23 ; color=blue, 24 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig10/fig10_swr_correction.pro", 25 ; label="${TROPFLUX}/src/paper01/fig10/fig10_swr_correction.pro"]; 26 ; 27 ; {swr_isccp} -> {fig10_swr_correction} -> {figure} 28 ; } 29 ; 11 30 ; SEE ALSO 12 31 ; ======== 13 32 ; 14 33 ; :ref:`tropflux_profile.sh` 34 ; :ref:`tropflux_init.pro` 35 ; :ref:`cm_tropflux.pro` 36 ; 37 ; :ref:`significance_test_99.pro` 15 38 ; 16 39 ; EXAMPLES … … 22 45 ; IDL> fig10_swr_correction 23 46 ; 47 ; TODO 48 ; ==== 49 ; 50 ; check results 51 ; 52 ; improve plot 53 ; 54 ; coding rules 55 ; 56 ; get rid of spwan 57 ; 58 ; complete description 59 ; 60 ; handle IO error 61 ; 24 62 ; EVOLUTIONS 25 63 ; ========== 26 64 ; 27 65 ; $Id$ 66 ; 67 ; - fplod 20110420T140853Z aedon.locean-ipsl.upmc.fr (Darwin) 68 ; 69 ; * make it work on cratos 70 ; * replace significance_test by significance_test_99 71 ; 72 ; - fplod 20110420T105744Z aedon.locean-ipsl.upmc.fr (Darwin) 73 ; 74 ; * remove hard coding path 75 ; * add graphviz 28 76 ; 29 77 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) … … 32 80 ; 33 81 ;- 34 35 82 pro fig10_swr_correction 36 @common 83 @cm_general 84 @cm_tropflux 37 85 reinitplt, /z,/invert 38 86 key_portrait = 1 … … 41 89 close,/all 42 90 43 fi= '/Users/pkb/work/MY_SAXO/flux_automat/swr_isccp_correction.txt'91 fi=tropflux_id_env+'swr_isccp_correction.txt' 44 92 res=read_ascii(fi,data_start=0) 45 93 ff=res.field1 … … 61 109 significance_test_99,mean,bias 62 110 63 fi= '/Users/pkb/work/MY_SAXO/flux_automat/swr_isccp_correction.txt'111 fi=tropflux_id_env+'swr_isccp_correction.txt' 64 112 res=read_ascii(fi,data_start=0) 65 113 ff=res.field1 … … 78 126 79 127 ;; significant test 80 significance_test ,mean,std128 significance_test_99,mean,std 81 129 82 130 closeps 83 131 84 fig= 'fig10_swr_correction.ps'85 spawn, 'mv '+psdir+'idl.ps '+ cpsdir+fig86 spawn, 'gv '+ cpsdir+fig132 fig=tropflux_od_env+'fig10_swr_correction.ps' 133 spawn, 'mv '+psdir+'idl.ps '+fig 134 spawn, 'gv '+fig 87 135 88 136 end -
trunk/src/paper01/fig11/swr_isccp_tropflux_correlation_fig10.pro
r43 r46 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph swr_isccp_tropflux_correlation_fig10 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; sst [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_sst_19890101_20091231.nc"]; 18 ; 19 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/correlation_rmsd_olra_swra_smooth.ps"]; 20 ; 21 ; swr_isccp_tropflux_correlation_fig10 [shape=box, 22 ; fontname=Courier, 23 ; color=blue, 24 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig11/swr_isccp_tropflux_correlation_fig10.pro", 25 ; label="${TROPFLUX}/src/paper01/fig11/swr_isccp_tropflux_correlation_fig10.pro"]; 26 ; 27 ; {sst} -> {swr_isccp_tropflux_correlation_fig10} -> {figure} 28 ; } 29 ; 11 30 ; SEE ALSO 12 31 ; ======== 13 32 ; 14 33 ; :ref:`tropflux_profile.sh` 34 ; :ref:`tropflux_init.pro` 35 ; :ref:`cm_tropflux.pro` 15 36 ; 16 37 ; EXAMPLES … … 22 43 ; IDL> swr_isccp_tropflux_correlation_fig10 23 44 ; 45 ; TODO 46 ; ==== 47 ; 48 ; make it work on cratos : get rid of restore 49 ; 50 ; coding rules 51 ; 52 ; get rid of spwan 53 ; 54 ; complete description 55 ; 56 ; handle IO error 57 ; 24 58 ; EVOLUTIONS 25 59 ; ========== 26 60 ; 27 61 ; $Id$ 62 ; 63 ; - fplod 20110420T110411Z aedon.locean-ipsl.upmc.fr (Darwin) 64 ; 65 ; * remove hard coding path 66 ; * add graphviz 28 67 ; 29 68 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) … … 33 72 ;- 34 73 pro swr_isccp_tropflux_correlation_fig10 35 @common 74 @cm_general 75 @cm_tropflux 36 76 reinitplt, /z,/invert 37 77 key_portrait = 1 … … 42 82 restore, "/Users/pkb/work/MY_SAXO/correlation_isccp_olr.idl" 43 83 44 file= "/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_sst_19890101_20091231.nc"84 file=tropflux_id_env+'TropFlux_sst_19890101_20091231.nc" 45 85 initncdf, file 46 86 sst=read_ncdf("sst", 20000101, 20091231, file=file,/nostr) … … 56 96 57 97 closeps 58 fig='correlation_rmsd_olra_swra_smooth.ps' 59 spawn, 'mv '+psdir+'idl.ps '+psdir+fig 60 spawn, 'gv '+psdir+fig 61 62 stop 98 fig=tropflux_od_env+'correlation_rmsd_olra_swra_smooth.ps' 99 spawn, 'mv '+psdir+'idl.ps '+fig 100 spawn, 'gv '+fig 63 101 end -
trunk/src/paper01/fig11/swr_isccp_tropflux_new_v1.pro
r43 r46 10 10 ; =========== 11 11 ; 12 ; .. graphviz:: 13 ; 14 ; digraph swr_isccp_tropflux_new_v1 { 15 ; graph [ 16 ; rankdir="LR", 17 ; ] 18 ; swr [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_oafluxgrid_1985_2007.nc"]; 19 ; sw [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/sw_reconstred_1989_2009.nc"]; 20 ; olr [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/olr_oafluxgrid_30n30s.nc"]; 21 ; sst [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_sst_19890101_20091231_v20.nc"]; 22 ; 23 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/correlation_rmsd_olra_swra_smooth.ps"]; 24 ; 25 ; swr_isccp_tropflux_new_v1 [shape=box, 26 ; fontname=Courier, 27 ; color=blue, 28 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig11/swr_isccp_tropflux_new_v1.pro", 29 ; label="${TROPFLUX}/src/paper01/fig11/swr_isccp_tropflux_new_v1.pro"]; 30 ; 31 ; {swr sw olr sst} -> {swr_isccp_tropflux_new_v1} -> {figure} 32 ; } 33 ; 12 34 ; SEE ALSO 13 35 ; ======== 14 36 ; 15 37 ; :ref:`tropflux_profile.sh` 38 ; :ref:`tropflux_init.pro` 39 ; :ref:`cm_tropflux.pro` 16 40 ; 17 41 ; EXAMPLES … … 23 47 ; IDL> swr_isccp_tropflux_new_v1 24 48 ; 49 ; TODO 50 ; ==== 51 ; 52 ; make it work on cratos : mising data 53 ; 54 ; coding rules 55 ; 56 ; get rid of spwan 57 ; 58 ; complete description 59 ; 60 ; handle IO error 61 ; 25 62 ; EVOLUTIONS 26 63 ; ========== 27 64 ; 28 65 ; $Id$ 66 ; 67 ; - fplod 20110420T113330Z aedon.locean-ipsl.upmc.fr (Darwin) 68 ; 69 ; * remove hard coding path 70 ; * add graphviz 29 71 ; 30 72 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) … … 34 76 ;- 35 77 pro swr_isccp_tropflux_new_v1 36 @common 78 @cm_general 79 @cm_tropflux 37 80 reinitplt, /z,/invert 38 81 key_portrait = 1 … … 41 84 st=19890101 & en=20071231 42 85 43 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/swr_oafluxgrid_1985_2007.nc'86 file=tropflux_id_env+'swr_oafluxgrid_1985_2007.nc' 44 87 initncdf, file 45 88 sw_isccp=read_ncdf("swr", st, en, file=file,/nostr) 46 89 47 file= '/Volumes/Iomega_HDD/flux_reconstruction/basic_data/sw_reconstred_1989_2009.nc'90 file=tropflux_id_env+'sw_reconstred_1989_2009.nc' 48 91 initncdf, file 49 92 sw_trop=read_ncdf("sw", st, en+1, file=file,/nostr) 50 93 51 file= '/Volumes/Iomega_HDD/flux_reconstruction/basic_data/olr_oafluxgrid_30n30s.nc'94 file=tropflux_id_env+'olr_oafluxgrid_30n30s.nc' 52 95 initncdf, file 53 96 olr=read_ncdf("olr", st, en, file=file,/nostr) … … 132 175 subt='',title='a) Correlation (OLRA, SWRA)',xminor=1,yminor=1 133 176 134 file= "/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_sst_19890101_20091231_v20.nc"177 file=tropflux_id_env+'TropFlux_sst_19890101_20091231_v20.nc" 135 178 initncdf, file 136 179 sst=read_ncdf("sst", 19890101, 20091231, file=file,/nostr) … … 149 192 150 193 closeps 151 fig='correlation_rmsd_olra_swra_smooth.ps' 152 spawn, 'mv '+psdir+'idl.ps '+psdir+fig 153 spawn, 'gv '+psdir+fig 154 155 return 156 194 fig=tropflux_od_env+'correlation_rmsd_olra_swra_smooth.ps' 195 spawn, 'mv '+psdir+'idl.ps '+fig 196 spawn, 'gv '+fig 157 197 end -
trunk/src/paper01/fig12/swr_statistics_map_2000_2009_v50.pro
r43 r46 1 1 ;+ 2 ; .. _swr_statistics_map_2000_2009_v50.pro 2 ; .. _swr_statistics_map_2000_2009_v50.pro: 3 3 ; 4 4 ; ==================================== … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph swr_statistics_map_2000_2009_v50 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; swr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_2000_2009_erai_v50.txt"]; 18 ; swr_trop [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_2000_2009_trop_v50.txt"]; 19 ; swr_oaflx [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_2000_2009_oaflx_v50.txt"]; 20 ; swr_olr [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_2000_2009_olr_v50.txt"]; 21 ; mask [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/longwave_IO_mask.nc"]; 22 ; 23 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/swr_statistics_map_2000_2009_v50.ps"]; 24 ; 25 ; swr_statistics_map_2000_2009_v50 [shape=box, 26 ; fontname=Courier, 27 ; color=blue, 28 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig12/swr_statistics_map_2000_2009_v50.pro", 29 ; label="${TROPFLUX}/src/paper01/fig12/swr_statistics_map_2000_2009_v50.pro"]; 30 ; 31 ; {swr_erai swr_trop swr_oaflx swr_olr mask} -> {swr_statistics_map_2000_2009_v50} -> {figure} 32 ; } 33 ; 11 34 ; SEE ALSO 12 35 ; ======== 13 36 ; 14 37 ; :ref:`tropflux_profile.sh` 38 ; :ref:`tropflux_init.pro` 39 ; :ref:`cm_tropflux.pro` 15 40 ; 16 41 ; EXAMPLES … … 22 47 ; IDL> swr_statistics_map_2000_2009_v50 23 48 ; 49 ; TODO 50 ; ==== 51 ; 52 ; make it work on cratos : missing data 53 ; 54 ; coding rules 55 ; 56 ; get rid of spwan 57 ; 58 ; complete description 59 ; 60 ; handle IO error 61 ; 24 62 ; EVOLUTIONS 25 63 ; ========== … … 27 65 ; $Id$ 28 66 ; 67 ; - fplod 20110420T113846Z aedon.locean-ipsl.upmc.fr (Darwin) 68 ; 69 ; * remove stop 70 ; * remove hard coding path 71 ; * add graphviz 72 ; 29 73 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 30 74 ; … … 33 77 ;- 34 78 pro swr_statistics_map_2000_2009_v50 35 @common 79 @cm_general 80 @cm_tropflux 36 81 reinitplt, /z,/invert 37 82 key_portrait = 1 … … 44 89 rmsd_mi=10 & rmsd_ma=30 & rmsd_int=1.25 45 90 cor_mi=0.5 & cor_ma=1. & cor_int=0.02 46 fi_swr_erai= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2009_erai_v50.txt'47 fi_swr_trop= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2009_trop_v50.txt'48 fi_swr_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2009_oaflx_v50.txt'49 fi_swr_olr= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2009_olr_v50.txt'91 fi_swr_erai=tropflux_id_env+'swr_2000_2009_erai_v50.txt' 92 fi_swr_trop=tropflux_id_env+'swr_2000_2009_trop_v50.txt' 93 fi_swr_oaflx=tropflux_id_env+'swr_2000_2009_oaflx_v50.txt' 94 fi_swr_olr=tropflux_id_env+'swr_2000_2009_olr_v50.txt' 50 95 51 96 res=read_ascii(fi_swr_erai,data_start=1) … … 92 137 93 138 ;ind=where(std_olr ge std_ma) & std_olr(ind)=std_ma-0.01 94 stop 95 file='/Users/pkb/data/heat_budget/OAFLUX/longwave_IO_mask.nc' 139 file=tropflux_id_env+'longwave_IO_mask.nc' 96 140 initncdf, file 97 141 domdef, 30,390,-30,30 … … 516 560 endfor 517 561 closeps 518 fig='swr_statistics_map_2000_2009_v50.ps' 519 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 520 spawn, 'gv '+cpsdir+fig 521 return 562 fig=tropflux_od_env+'swr_statistics_map_2000_2009_v50.ps' 563 spawn, 'mv '+psdir+'idl.ps '+fig 564 spawn, 'gv '+fig 522 565 end -
trunk/src/paper01/fig13/net_flux_validation_scatter_2000_2007.pro
r43 r46 1 1 ;+ 2 ; .. _net_flux_validation_scatter_2000_2007.pro 2 ; .. _net_flux_validation_scatter_2000_2007.pro: 3 3 ; 4 4 ; ========================================= … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph net_flux_validation_scatter_2000_2007 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; tropflux_general [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_19890101_20091231.nc"]; 18 ; tropflux_dt_swr [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_swr_19890101_20071231_DT_v50.nc"]; 19 ; tropflux_nrt_swr [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"]; 20 ; ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/NCEP2_flux_19890101_20090729.nc"]; 21 ; erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_fluxes_19930101_20090801_TROP_oafluxgrid.nc"]; 22 ; shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_oafluxgrid_1985_2008.nc"]; 23 ; lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_oafluxgrid_1985_2008.nc"]; 24 ; lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lwr_oafluxgrid_1985_2007.nc"]; 25 ; ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/fluxe_ncep1_19890101_20091231.nc"]; 26 ; net_nrt_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/net_2000_2007_erai_v50.txt"]; 27 ; net_nrt_trop [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/net_2000_2007_trop_v50.txt"]; 28 ; net_nrt_ncep [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/net_2000_2007_ncep_v50.txt"]; 29 ; net_nrt_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/net_2000_2007_ncep1_v50.txt"]; 30 ; net_nrt_tropd [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/net_2000_2007_tropd_v50.txt"]; 31 ; 32 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/net_flux_validation_scatter_2000_2007.ps"]; 33 ; 34 ; net_flux_validation_scatter_2000_2007 [shape=box, 35 ; fontname=Courier, 36 ; color=blue, 37 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig13/net_flux_validation_scatter_2000_2007.pro", 38 ; label="${TROPFLUX}/src/paper01/fig13/net_flux_validation_scatter_2000_2007.pro"]; 39 ; 40 ; {tropflux_general tropflux_dt_swr tropflux_nrt_swr ncep2 erai shf_oafluxgrid lhf_oafluxgrid lwr_oafluxgrid ncep1} -> {net_flux_validation_scatter_2000_2007} -> {net_nrt_erai net_nrt_trop net_nrt_ncep net_nrt_ncep1 net_nrt_tropd figure} 41 ; } 42 ; 11 43 ; SEE ALSO 12 44 ; ======== 13 45 ; 14 46 ; :ref:`tropflux_profile.sh` 47 ; :ref:`tropflux_init.pro` 48 ; :ref:`cm_tropflux.pro` 49 ; 50 ; :func:`x_site_location` 51 ; :func:`y_site_location` 52 ; 53 ; :ref:`statistics_3var_v1.pro` 15 54 ; 16 55 ; EXAMPLES … … 20 59 ; 21 60 ; IDL> @tropflux_init 22 ; IDL> date1= ++23 ; IDL> date2= ++61 ; IDL> date1=19890101L 62 ; IDL> date2=20091231L 24 63 ; IDL> net_flux_validation_scatter_2000_2007, date1, date2 64 ; 65 ; TODO 66 ; ==== 67 ; 68 ; make it work on cratos : missing data 69 ; 70 ; coding rules 71 ; 72 ; get rid of spwan 73 ; 74 ; complete description 75 ; 76 ; handle IO error 25 77 ; 26 78 ; EVOLUTIONS … … 29 81 ; $Id$ 30 82 ; 83 ; - fplod 20110420T114953Z aedon.locean-ipsl.upmc.fr (Darwin) 84 ; 85 ; * remove hard coding path 86 ; * add graphviz 87 ; * externalize functions 88 ; 31 89 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 32 90 ; … … 35 93 ;- 36 94 pro net_flux_validation_scatter_2000_2007, date1, date2 37 @c ommon38 95 @cm_general 96 @cm_tropflux 39 97 reinitplt, /z,/invert 40 98 key_portrait = 1 … … 61 119 nsmooth=1. 62 120 ;; This program will create the following text files with statistics of respective variables 63 file_trop= '/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc'121 file_trop=tropflux_id_env+'TropFlux_19890101_20091231.nc' 64 122 initncdf, file_trop 65 123 shf_trop=read_ncdf("shf", date1, date2, file=file_trop,/nostr) … … 67 125 lwr_trop=read_ncdf("lwr", date1, date2, file=file_trop,/nostr) 68 126 69 file_trop= '/Users/pkb/data/TropFlux/TropFlux_swr_19890101_20071231_DT_v50.nc'127 file_trop=tropflux_id_env+'TropFlux_swr_19890101_20071231_DT_v50.nc' 70 128 initncdf, file_trop 71 129 swr_dt=read_ncdf("swr", date1, date2, file=file_trop,/nostr) … … 73 131 help, trop 74 132 75 file_trop= '/Users/pkb/data/TropFlux/TropFlux_swr_19890101_20091231_NRT_v50.nc'133 file_trop=tropflux_id_env+'TropFlux_swr_19890101_20091231_NRT_v50.nc' 76 134 initncdf, file_trop 77 135 swr_nrt=read_ncdf("sw", date1-1, date2, file=file_trop,/nostr) … … 79 137 help, tropd 80 138 81 file_ncep= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/NCEP2_flux_19890101_20090729.nc'139 file_ncep=tropflux_id_env+'NCEP2_flux_19890101_20090729.nc' 82 140 initncdf, file_ncep 83 141 shf=read_ncdf("shf", date1, date2, file=file_ncep,/nostr) … … 90 148 help, ncep 91 149 92 file_erai= '/Volumes/Iomega_HDD/work/flux_reconstruction/gridded_data/erai_fluxes_19930101_20090801_TROP_oafluxgrid.nc'150 file_erai=tropflux_id_env+'erai_fluxes_19930101_20090801_TROP_oafluxgrid.nc' 93 151 initncdf, file_erai 94 152 shf=read_ncdf("shf", date1, date2, file=file_erai,/nostr) … … 99 157 help, erai 100 158 101 file_oaf= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/shf_oafluxgrid_1985_2008.nc'159 file_oaf=tropflux_id_env+'shf_oafluxgrid_1985_2008.nc' 102 160 initncdf, file_oaf 103 161 shf=read_ncdf("shf", date1, date2, file=file_oaf,/nostr) 104 file_oaf= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lhf_oafluxgrid_1985_2008.nc'162 file_oaf=tropflux_id_env+'lhf_oafluxgrid_1985_2008.nc' 105 163 initncdf, file_oaf 106 164 lhf=read_ncdf("lhf", date1, date2, file=file_oaf,/nostr) 107 file_oaf= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lwr_oafluxgrid_1985_2007.nc'165 file_oaf=tropflux_id_env+'lwr_oafluxgrid_1985_2007.nc' 108 166 initncdf, file_oaf 109 167 lwr=read_ncdf("lwr", date1, date2, file=file_oaf,/nostr) 110 file_oaf= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/swr_oafluxgrid_1985_2007.nc'168 file_oaf=tropflux_id_env+'swr_oafluxgrid_1985_2007.nc' 111 169 initncdf, file_oaf 112 170 swr=read_ncdf("swr", date1, date2, file=file_oaf,/nostr) & swr_trop=swr … … 114 172 help, oafl 115 173 116 file= '/Volumes/Iomega_HDD/flux_reconstruction/ncep/fluxe_ncep1_19890101_20091231.nc'174 file=tropflux_id_env+'fluxe_ncep1_19890101_20091231.nc' 117 175 initncdf, file 118 176 lwr=read_ncdf("lwr", date1, date2, file=file,/nostr) … … 126 184 close,/all 127 185 128 fi_net_NRT_erai= '/Users/pkb/work/MY_SAXO/flux_automat/net_2000_2007_erai_v50.txt'186 fi_net_NRT_erai=tropflux_id_env+'net_2000_2007_erai_v50.txt' 129 187 openw,1,fi_net_NRT_erai 130 fi_net_NRT_trop= '/Users/pkb/work/MY_SAXO/flux_automat/net_2000_2007_trop_v50.txt'188 fi_net_NRT_trop=tropflux_id_env+'net_2000_2007_trop_v50.txt' 131 189 openw,2,fi_net_NRT_trop 132 fi_net_NRT_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/net_2000_2007_oaflx_v50.txt'190 fi_net_NRT_oaflx=tropflux_id_env+'net_2000_2007_oaflx_v50.txt' 133 191 openw,3,fi_net_NRT_oaflx 134 fi_net_NRT_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/net_2000_2007_ncep_v50.txt'192 fi_net_NRT_ncep=tropflux_id_env+'net_2000_2007_ncep_v50.txt' 135 193 openw,4,fi_net_NRT_ncep 136 fi_net_NRT_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/net_2000_2007_ncep1_v50.txt'194 fi_net_NRT_ncep1=tropflux_id_env+'net_2000_2007_ncep1_v50.txt' 137 195 openw,5,fi_net_NRT_ncep1 138 fi_net_NRT_tropd= '/Users/pkb/work/MY_SAXO/flux_automat/net_2000_2007_tropd_v50.txt'196 fi_net_NRT_tropd=tropflux_id_env+'net_2000_2007_tropd_v50.txt' 139 197 openw,6,fi_net_NRT_tropd 140 198 … … 149 207 nn=n_elements(sitelist) 150 208 151 date1=date1152 date2=date2153 209 for n=0, nn-1 do begin 154 210 … … 219 275 close,/all 220 276 221 fi_net_NRT_erai= '/Users/pkb/work/MY_SAXO/flux_automat/net_2000_2007_erai_v50.txt'277 fi_net_NRT_erai=tropflux_id_env+'net_2000_2007_erai_v50.txt' 222 278 res=read_ascii(fi_net_NRT_erai,data_start=1) 223 279 ff=res.field1 … … 251 307 252 308 253 fi_net_NRT_trop= '/Users/pkb/work/MY_SAXO/flux_automat/net_2000_2007_trop_v50.txt'309 fi_net_NRT_trop=tropflux_id_env+'net_2000_2007_trop_v50.txt' 254 310 res=read_ascii(fi_net_NRT_trop,data_start=1) 255 311 ff=res.field1 … … 283 339 284 340 285 fi_net_NRT_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/net_2000_2007_oaflx_v50.txt'341 fi_net_NRT_oaflx=tropflux_id_env+'net_2000_2007_oaflx_v50.txt' 286 342 res=read_ascii(fi_net_NRT_oaflx,data_start=1) 287 343 ff=res.field1 … … 316 372 317 373 318 fi_net_NRT_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/net_2000_2007_ncep_v50.txt'374 fi_net_NRT_ncep=tropflux_id_env+'net_2000_2007_ncep_v50.txt' 319 375 res=read_ascii(fi_net_NRT_ncep,data_start=1) 320 376 ff=res.field1 … … 348 404 349 405 350 fi_net_NRT_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/net_2000_2007_ncep1_v50.txt'406 fi_net_NRT_ncep1=tropflux_id_env+'net_2000_2007_ncep1_v50.txt' 351 407 res=read_ascii(fi_net_NRT_ncep1,data_start=1) 352 408 ff=res.field1 … … 380 436 381 437 382 fi_net_NRT_tropd= '/Users/pkb/work/MY_SAXO/flux_automat/net_2000_2007_tropd_v50.txt'438 fi_net_NRT_tropd=tropflux_id_env+'net_2000_2007_tropd_v50.txt' 383 439 res=read_ascii(fi_net_NRT_tropd,data_start=1) 384 440 ff=res.field1 … … 413 469 closeps 414 470 415 fig='net_flux_validation_scatter_2000_2007.ps' 416 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 417 spawn, 'gv '+cpsdir+fig 418 return 471 fig=tropflux_od_env+'net_flux_validation_scatter_2000_2007.ps' 472 spawn, 'mv '+psdir+'idl.ps '+fig 473 spawn, 'gv '+fig 419 474 end 420 function x_site_location, site421 n1=strpos(site, 's')422 if (n1 gt -1) then begin423 ns=-1.424 x=strmid(site, 0, n1)425 x=float(x)*ns426 endif else begin427 n1=strpos(site, 'n')428 x=strmid(site, 0, n1)429 ny=1.430 x=float(x)*ny431 endelse432 return, float(x)433 end434 function y_site_location, site435 n1=strpos(site, 'e')436 if (n1 gt -1) then begin437 n=strpos(site, 's')438 if (n gt -1) then begin439 y=strmid(site, n+1, n1-n-1)440 endif else begin441 n=strpos(site, 'n')442 y=strmid(site, n+1, n1-n-1)443 endelse444 445 endif else begin446 n1=strpos(site, 'w')447 n=strpos(site, 's')448 if (n gt -1) then begin449 y=strmid(site, n+1, n1-n-1)450 y=180+(180-float(y))451 endif else begin452 n=strpos(site, 'n')453 y=strmid(site, n+1, n1-n-1)454 y=180+(180-float(y))455 endelse456 endelse457 return,float(y)458 end -
trunk/src/paper01/fig14/as_validation_net_1994_95_v10.pro
r43 r46 1 1 ;+ 2 ; .. _as_validation_net_1994_95_v10.pro 2 ; .. _as_validation_net_1994_95_v10.pro: 3 3 ; 4 4 ; ================================= … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph as_validation_net_1994_95_v10 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; met_data [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/met_data_as_expt_19*.txt"]; 18 ; swr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_swr_19910101_20091231_oafluxgrid.nc"]; 19 ; lwr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_lwr_19910101_20091231_oafluxgrid.nc"]; 20 ; lhf_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_lhf_19910101_20091231_oafluxgrid.nc"]; 21 ; tropflux_general [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_19890101_20091231.nc"]; 22 ; swr_tropflux_nrt [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"]; 23 ; swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_oafluxgrid_1985_2007.nc"]; 24 ; lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lwr_oafluxgrid_1985_2007.nc"]; 25 ; lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_oafluxgrid_1985_2007.nc"]; 26 ; shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_oafluxgrid_1985_2007.nc"]; 27 ; swr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_ncep2_oaflxgrid_19890101_20091231.nc"]; 28 ; lwr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/NCEP2_flux_19890101_20090729.nc"]; 29 ; lhf_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_ncep2_oafluxgrid_19890101_20091231.nc"]; 30 ; shf_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_ncep2_oafluxgrid_19890101_20091231.nc"]; 31 ; 32 ; ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ncep1_flux_19890101_20091231.nc"]; 33 ; 34 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/as_validation_net_1994_95_v10.ps"]; 35 ; 36 ; as_validation_net_1994_95_v10 [shape=box, 37 ; fontname=Courier, 38 ; color=blue, 39 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/as_validation_net_1994_95_v10.pro", 40 ; label="${TROPFLUX}/src/paper01/fig14/as_validation_net_1994_95_v10.pro"]; 41 ; 42 ; {met_data swr_erai lwr_erai lhf_erai tropflux_general swr_tropflux_nrt swr_oafluxgrid lwr_oafluxgrid lhf_oafluxgrid shf_oafluxgrid swr_ncep2 lwr_ncep2 lhf_ncep2 shf_ncep2 ncep1} -> {as_validation_net_1994_95_v10} -> {figure} 43 ; } 44 ; 11 45 ; SEE ALSO 12 46 ; ======== 13 47 ; 14 48 ; :ref:`tropflux_profile.sh` 49 ; :ref:`tropflux_init.pro` 50 ; :ref:`cm_tropflux.pro` 51 ; 52 ; :ref:`statistics.pro` 15 53 ; 16 54 ; EXAMPLES … … 23 61 ; 24 62 ; 63 ; TODO 64 ; ==== 65 ; 66 ; make it work on cratos : missing data 67 ; coding rules 68 ; 69 ; get rid of spwan 70 ; 71 ; complete description 72 ; 73 ; handle IO error 74 ; 25 75 ; EVOLUTIONS 26 76 ; ========== … … 28 78 ; $Id$ 29 79 ; 80 ; - fplod 20110420T115926Z aedon.locean-ipsl.upmc.fr (Darwin) 81 ; 82 ; * remove hard coding path 83 ; * add graphviz 84 ; 30 85 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 31 86 ; … … 34 89 ;- 35 90 pro as_validation_net_1994_95_v10 36 @common 91 @cm_general 92 @cm_tropflux 37 93 reinitplt, /z,/invert 38 94 key_portrait = 1 … … 44 100 date1=19941016 & date2=19951019 45 101 46 fi= "/Users/pkb/data/Mooring_data/AS_expt/met_data_as_expt_1994.txt"102 fi=tropflux_id_env+"met_data_as_expt_1994.txt" 47 103 res=read_ascii(fi,data_start=1) 48 104 ff=res.field1 … … 53 109 net94=swr94+lwr94+lhf94+shf94 54 110 55 fi= "/Users/pkb/data/Mooring_data/AS_expt/met_data_as_expt_1995.txt"111 fi=tropflux_id_env+"met_data_as_expt_1995.txt" 56 112 res=read_ascii(fi,data_start=1) 57 113 ff=res.field1 … … 71 127 help, net 72 128 ;; reading other data sets 73 file= "/Users/pkb/data/ERA-I/erai_swr_19910101_20091231_oafluxgrid.nc"129 file=tropflux_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc" 74 130 initncdf, file 75 131 swr=read_ncdf('swr',date1,date2,file=file,/nostr, box=asbox) & swr=reform(swr) 76 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lwr_19890101_20091231_oafluxgrid.nc'132 file=tropflux_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc' 77 133 initncdf, file 78 134 lwr=read_ncdf('lwr',date1-1,date2,file=file,/nostr, box=asbox) & lwr=reform(lwr) 79 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_shf_19890101_20091231_oafluxgrid.nc'135 file=tropflux_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc' 80 136 initncdf, file 81 137 shf=-1*read_ncdf('shf',date1,date2,file=file,/nostr, box=asbox) & shf=reform(shf) 82 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lhf_19890101_20091231_oafluxgrid.nc'138 file=tropflux_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc' 83 139 initncdf, file 84 140 lhf=-1*read_ncdf('lhf',date1,date2,file=file,/nostr, box=asbox) & lhf=reform(lhf) … … 91 147 swr=0. & lwr=0. & shf=0. & lhf=0. 92 148 93 file= "/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc"149 file=tropflux_id_env+"TropFlux_19890101_20091231.nc" 94 150 initncdf, file 95 151 swr=read_ncdf('swr',date1,date2,file=file,/nostr, box=asbox) & swr=reform(swr) … … 100 156 help, trop 101 157 102 file= "/Users/pkb/data/TropFlux/TropFlux_swr_19890101_20091231_NRT_v50.nc"158 file=tropflux_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc" 103 159 initncdf, file 104 160 olr1=read_ncdf("sw", date1-1, date2, file=file,/nostr, box=asbox) ;; & olr1=grossemoyenne(olr1, "xy",/nan, box=asbox) & … … 112 168 help, trop, olr 113 169 114 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/swr_oafluxgrid_1985_2007.nc'170 file=tropflux_id_env+'swr_oafluxgrid_1985_2007.nc' 115 171 initncdf, file 116 172 swr=read_ncdf("swr", date1, date2, file=file,/nostr, box=asbox) & swr=reform(swr) 117 173 118 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lwr_oafluxgrid_1985_2007.nc'174 file=tropflux_id_env+'lwr_oafluxgrid_1985_2007.nc' 119 175 initncdf, file 120 176 lwr=read_ncdf("lwr", date1, date2, file=file,/nostr, box=asbox) & lwr=-1*reform(lwr) 121 177 122 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lhf_oafluxgrid_1985_2009.nc'178 file=tropflux_id_env+'lhf_oafluxgrid_1985_2009.nc' 123 179 initncdf, file 124 180 lhf=read_ncdf("lhf", date1, date2, file=file,/nostr, box=asbox) & lhf=-1*reform(lhf) 125 181 126 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/shf_oafluxgrid_1985_2009.nc'182 file=tropflux_id_env+'shf_oafluxgrid_1985_2009.nc' 127 183 initncdf, file 128 184 shf=read_ncdf("shf", date1, date2, file=file,/nostr, box=asbox) & shf=-1*reform(shf) … … 134 190 swr=0. & lwr=0. & shf=0. & lhf=0. 135 191 136 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/swr_ncep2_oaflxgrid_19890101_20091231.nc'192 fi=tropflux_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc' 137 193 initncdf, fi 138 194 swr=read_ncdf("swr", date1, date2, file=fi,/nostr, box=asbox) & swr=reform(swr) 139 195 140 fi= "/Volumes/Iomega_HDD/flux_reconstruction/ncep2/NCEP2_flux_19890101_20090729.nc"196 fi=tropflux_id_env+"NCEP2_flux_19890101_20090729.nc" 141 197 initncdf, fi 142 198 lwr=read_ncdf("lwr", date1, date2, file=fi,/nostr, box=asbox) & lwr=grossemoyenne(lwr, "xy",/nan, box=asbox) & lwr=reform(lwr) … … 144 200 lwr=-1*lwr 145 201 146 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/lhf_ncep2_oafluxgrid_19890101_20091231.nc'202 fi=tropflux_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc' 147 203 initncdf, fi 148 204 lhf=read_ncdf("lhf", date1, date2, file=fi,/nostr, box=asbox) & lhf=-1*reform(lhf) 149 205 150 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/shf_ncep2_oafluxgrid_19890101_20091231.nc'206 fi=tropflux_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc' 151 207 initncdf, fi 152 208 shf=read_ncdf("shf", date1, date2, file=fi,/nostr, box=asbox) & shf=-1*reform(shf) … … 159 215 swr=0. & lwr=0. & shf=0. & lhf=0. 160 216 161 file= "/Users/pkb/data/heat_budget/ncep/ncep1_flux_19890101_20091231.nc"217 file=tropflux_id_env+"ncep1_flux_19890101_20091231.nc" 162 218 initncdf, file 163 219 swr=read_ncdf("swr", date1, date2, file=file,/nostr, box=asbox) & swr=reform(swr) … … 235 291 xyouts, -150,-175, cstat_olr, charsize=1. 236 292 237 stop238 293 closeps 239 fig='as_validation_net_1994_95_v10.ps' 240 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 241 spawn, 'gv '+cpsdir+fig 242 return 294 fig=tropflux_od_env+'as_validation_net_1994_95_v10.ps' 295 spawn, 'mv '+psdir+'idl.ps '+fig 296 spawn, 'gv '+fig 243 297 end -
trunk/src/paper01/fig14/coare_validation_net_1992_93_all_v10.pro
r43 r46 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph coare_validation_net_1992_93_all_v10 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; met_data [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/met_data_as_expt_199*_p*.txt"]; 18 ; swr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_swr_19910101_20091231_oafluxgrid.nc"]; 19 ; lwr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_lwr_19910101_20091231_oafluxgrid.nc"]; 20 ; lhf_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_lhf_19910101_20091231_oafluxgrid.nc"]; 21 ; shf_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_shf_19910101_20091231_oafluxgrid.nc"]; 22 ; tropflux_general [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_19890101_20091231.nc"]; 23 ; swr_tropflux_nrt [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"]; 24 ; swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_oafluxgrid_1985_2007.nc"]; 25 ; lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lwr_oafluxgrid_1985_2007.nc"]; 26 ; lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_oafluxgrid_1985_2007.nc"]; 27 ; shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_oafluxgrid_1985_2007.nc"]; 28 ; swr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_ncep2_oaflxgrid_19890101_20091231.nc"]; 29 ; lwr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/NCEP2_flux_19890101_20090729.nc"]; 30 ; lhf_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_ncep2_oafluxgrid_19890101_20091231.nc"]; 31 ; shf_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_ncep2_oafluxgrid_19890101_20091231.nc"]; 32 ; 33 ; ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ncep1_flux_19890101_20091231.nc"]; 34 ; 35 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/coare_validation_net_1992_93_all_v11.ps"]; 36 ; 37 ; coare_validation_net_1992_93_all_v10 [shape=box, 38 ; fontname=Courier, 39 ; color=blue, 40 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/coare_validation_net_1992_93_all_v10.pro", 41 ; label="${TROPFLUX}/src/paper01/fig14/coare_validation_net_1992_93_all_v10.pro"]; 42 ; 43 ; {met_data swr_erai lwr_erai lhf_erai shf_erai tropflux_general swr_tropflux_nrt swr_oafluxgrid lwr_oafluxgrid lhf_oafluxgrid shf_oafluxgrid swr_ncep2 lwr_ncep2 lhf_ncep2 shf_ncep2 ncep1} -> {coare_validation_net_1992_93_all_v10} -> {figure} 44 ; } 45 ; 11 46 ; SEE ALSO 12 47 ; ======== 13 48 ; 14 49 ; :ref:`tropflux_profile.sh` 50 ; :ref:`tropflux_init.pro` 51 ; :ref:`cm_tropflux.pro` 52 ; 53 ; :ref:`statistics.pro` 15 54 ; 16 55 ; EXAMPLES … … 22 61 ; IDL> coare_validation_net_1992_93_all_v10 23 62 ; 63 ; TODO 64 ; ==== 65 ; 66 ; make it work on cratos : missing data 67 ; 68 ; coding rules 69 ; 70 ; get rid of spwan 71 ; 72 ; complete description 73 ; 74 ; handle IO error 75 ; 24 76 ; EVOLUTIONS 25 77 ; ========== … … 27 79 ; $Id$ 28 80 ; 81 ; - fplod 20110420T120449Z aedon.locean-ipsl.upmc.fr (Darwin) 82 ; 83 ; * remove hard coding path 84 ; * add graphviz 85 ; 29 86 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 30 87 ; … … 33 90 ;- 34 91 pro coare_validation_net_1992_93_all_v10 35 @common 92 @cm_general 93 @cm_tropflux 36 94 reinitplt, /z,/invert 37 95 key_portrait = 1 … … 45 103 ;; first leg 46 104 ;; start data - 11/11/92 and end date 03/12/92 47 fi= "/Users/pkb/data/Mooring_data/COARE/met_data_coare_expt_1992_p1.txt"105 fi=tropflux_id_env+"met_data_coare_expt_1992_p1.txt" 48 106 res=read_ascii(fi,data_start=1) 49 107 ff=res.field1 … … 60 118 ;; second leg 61 119 62 fi= "/Users/pkb/data/Mooring_data/COARE/met_data_coare_expt_1992_p2.txt"120 fi=tropflux_id_env+"met_data_coare_expt_1992_p2.txt" 63 121 res=read_ascii(fi,data_start=1) 64 122 ff=res.field1 … … 75 133 ;; third leg 76 134 77 fi= "/Users/pkb/data/Mooring_data/COARE/met_data_coare_expt_1993_p1.txt"135 fi=tropflux_id_env+"met_data_coare_expt_1993_p1.txt" 78 136 res=read_ascii(fi,data_start=1) 79 137 ff=res.field1 … … 90 148 ;; fourth leg 91 149 92 fi= "/Users/pkb/data/Mooring_data/COARE/met_data_coare_expt_1993_p2.txt"150 fi=tropflux_id_env+"met_data_coare_expt_1993_p2.txt" 93 151 res=read_ascii(fi,data_start=1) 94 152 ff=res.field1 … … 113 171 st4=19930128 & en4=19930216 114 172 115 ;file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_swr_19890101_20091231_oafluxgrid.nc' 116 file="/Users/pkb/data/ERA-I/erai_swr_19910101_20091231_oafluxgrid.nc" 173 file=tropflux_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc" 117 174 initncdf, file 118 175 swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1) … … 121 178 swr4=read_ncdf('swr',st4,en4,file=file,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy", box=box,/nan) & swr4=reform(swr4) 122 179 123 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lwr_19890101_20091231_oafluxgrid.nc'180 file=tropflux_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc' 124 181 initncdf, file 125 182 lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1) … … 128 185 lwr4=read_ncdf('lwr',st4-1,en4,file=file,/nostr, box=box) & lwr4=grossemoyenne(lwr4, "xy", box=box,/nan) & lwr4=reform(lwr4) 129 186 130 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lhf_19890101_20091231_oafluxgrid.nc'187 file=tropflux_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc' 131 188 initncdf, file 132 189 lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1) … … 135 192 lhf4=-1*read_ncdf('lhf',st4,en4,file=file,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy", box=box,/nan) & lhf4=reform(lhf4) 136 193 137 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_shf_19890101_20091231_oafluxgrid.nc'194 file=tropflux_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc' 138 195 initncdf, file 139 196 shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1) … … 151 208 net1=0 & net2=0 & net3=0 & net4=0 152 209 153 file= "/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc"210 file=tropflux_id_env+"TropFlux_19890101_20091231.nc" 154 211 initncdf, file 155 212 swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) … … 176 233 net3=swr3+lwr3+lhf3+shf3 & net4=swr4+lwr4+lhf4+shf4 177 234 178 file= "/Users/pkb/data/TropFlux/TropFlux_swr_19890101_20091231_NRT_v50.nc"235 file=tropflux_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc" 179 236 initncdf, file 180 237 olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) & olr1=grossemoyenne(olr1, "xy",/nan, box=box) & olr1=reform(olr1) … … 194 251 net1=0 & net2=0 & net3=0 & net4=0 & neto_1=0 & neto_2=0 & neto_3=0 & neto_4=0 195 252 196 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/swr_oafluxgrid_1985_2007.nc'253 file=tropflux_id_env+'swr_oafluxgrid_1985_2007.nc' 197 254 initncdf, file 198 255 swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) … … 201 258 swr4=read_ncdf("swr", st4, en4, file=file,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy",/nan, box=box) & swr4=reform(swr4) 202 259 203 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lwr_oafluxgrid_1985_2007.nc'260 file=tropflux_id_env+'lwr_oafluxgrid_1985_2007.nc' 204 261 initncdf, file 205 262 lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) … … 208 265 lwr4=-1*read_ncdf("lwr", st4, en4, file=file,/nostr, box=box) & lwr4=grossemoyenne(lwr4, "xy",/nan, box=box) & lwr4=reform(lwr4) 209 266 210 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lhf_oafluxgrid_1985_2009.nc'267 file=tropflux_id_env+'lhf_oafluxgrid_1985_2009.nc' 211 268 initncdf, file 212 269 lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) … … 215 272 lhf4=-1*read_ncdf("lhf", st4, en4, file=file,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy",/nan, box=box) & lhf4=reform(lhf4) 216 273 217 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/shf_oafluxgrid_1985_2009.nc'274 file=tropflux_id_env+'shf_oafluxgrid_1985_2009.nc' 218 275 initncdf, file 219 276 shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) … … 232 289 net1=0 & net2=0 & net3=0 & net4=0 233 290 234 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/swr_ncep2_oaflxgrid_19890101_20091231.nc'291 fi=tropflux_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc' 235 292 initncdf, fi 236 293 swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) … … 239 296 swr4=read_ncdf("swr", st4, en4, file=fi,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy",/nan, box=box) & swr4=reform(swr4) 240 297 241 fi= "/Volumes/Iomega_HDD/flux_reconstruction/ncep2/NCEP2_flux_19890101_20090729.nc"298 fi=tropflux_id_env+"NCEP2_flux_19890101_20090729.nc" 242 299 initncdf, fi 243 300 lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) … … 246 303 lwr4=-1*read_ncdf("lwr", st4, en4, file=fi,/nostr, box=box) & lwr4=grossemoyenne(lwr4, "xy",/nan, box=box) & lwr4=reform(lwr4) 247 304 248 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/lhf_ncep2_oafluxgrid_19890101_20091231.nc'305 fi=tropflux_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc' 249 306 initncdf, fi 250 307 lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) … … 253 310 lhf4=-1*read_ncdf("lhf", st4, en4, file=fi,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy",/nan, box=box) & lhf4=reform(lhf4) 254 311 255 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/shf_ncep2_oafluxgrid_19890101_20091231.nc'312 fi=tropflux_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc' 256 313 initncdf, fi 257 314 shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) … … 270 327 net1=0 & net2=0 & net3=0 & net4=0 271 328 272 ;file='/Volumes/Iomega_HDD/flux_reconstruction/ncep/fluxe_ncep1_19890101_20091231.nc' 273 file="/Users/pkb/data/heat_budget/ncep/ncep1_flux_19890101_20091231.nc" 329 file=tropflux_id_env+"ncep1_flux_19890101_20091231.nc" 274 330 initncdf, file 275 331 swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) … … 370 426 xyouts, -150,-175, cstat_olr, charsize=1. 371 427 372 stop373 428 closeps 374 fig="coare_validation_net_1992_93_all_v11.ps" 375 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 376 spawn, 'gv '+cpsdir+fig 377 return 429 fig=tropflux_od_env+"coare_validation_net_1992_93_all_v11.ps" 430 spawn, 'mv '+psdir+'idl.ps '+fig 431 spawn, 'gv '+fig 378 432 end -
trunk/src/paper01/fig14/stratus_validation_net_2001_2002_all_v10.pro
r43 r46 1 1 ;+ 2 ; .. _stratus_validation_net_2001_2002_all_v10.pro 2 ; .. _stratus_validation_net_2001_2002_all_v10.pro: 3 3 ; 4 4 ; ============================================ … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph stratus_validation_net_2001_2002_all_v10 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; met_data [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/met_data_stratus_2001_2002.txt"]; 18 ; swr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_swr_19910101_20091231_oafluxgrid.nc"]; 19 ; lwr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_lwr_19910101_20091231_oafluxgrid.nc"]; 20 ; lhf_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_lhf_19910101_20091231_oafluxgrid.nc"]; 21 ; shf_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_shf_19910101_20091231_oafluxgrid.nc"]; 22 ; tropflux_general [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_19890101_20091231.nc"]; 23 ; swr_tropflux_nrt [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"]; 24 ; swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_oafluxgrid_1985_2007.nc"]; 25 ; lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lwr_oafluxgrid_1985_2007.nc"]; 26 ; lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_oafluxgrid_1985_2007.nc"]; 27 ; shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_oafluxgrid_1985_2007.nc"]; 28 ; swr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_ncep2_oaflxgrid_19890101_20091231.nc"]; 29 ; lwr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/NCEP2_flux_19890101_20090729.nc"]; 30 ; lhf_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_ncep2_oafluxgrid_19890101_20091231.nc"]; 31 ; shf_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_ncep2_oafluxgrid_19890101_20091231.nc"]; 32 ; 33 ; ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ncep1_flux_19890101_20091231.nc"]; 34 ; 35 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/stratus_validation_net_2001_2002_all_v11.ps"]; 36 ; 37 ; stratus_validation_net_2001_2002_all_v10 [shape=box, 38 ; fontname=Courier, 39 ; color=blue, 40 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/stratus_validation_net_2001_2002_all_v10.pro", 41 ; label="${TROPFLUX}/src/paper01/fig14/stratus_validation_net_2001_2002_all_v10.pro"]; 42 ; 43 ; {met_data swr_erai lwr_erai lhf_erai shf_erai tropflux_general swr_tropflux_nrt swr_oafluxgrid lwr_oafluxgrid lhf_oafluxgrid shf_oafluxgrid swr_ncep2 lwr_ncep2 lhf_ncep2 shf_ncep2 ncep1} -> {stratus_validation_net_2001_2002_all_v10} -> {figure} 44 ; } 45 ; 11 46 ; SEE ALSO 12 47 ; ======== 13 48 ; 14 49 ; :ref:`tropflux_profile.sh` 50 ; :ref:`tropflux_init.pro` 51 ; :ref:`cm_tropflux.pro` 52 ; 53 ; :ref:`statistics.pro` 15 54 ; 16 55 ; EXAMPLES … … 22 61 ; IDL> stratus_validation_net_2001_2002_all_v10 23 62 ; 63 ; TODO 64 ; ==== 65 ; 66 ; make it work on cratos : missing data 67 ; 68 ; ++ mooring data in graphviz 69 ; 70 ; coding rules 71 ; 72 ; get rid of spwan 73 ; 74 ; complete description 75 ; 76 ; handle IO error 77 ; 24 78 ; EVOLUTIONS 25 79 ; ========== … … 27 81 ; $Id$ 28 82 ; 83 ; - fplod 20110420T120826Z aedon.locean-ipsl.upmc.fr (Darwin) 84 ; 85 ; * remove hard coding path 86 ; * add graphviz 87 ; 29 88 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 30 89 ; … … 33 92 ;- 34 93 pro stratus_validation_net_2001_2002_all_v10 35 @common 94 @cm_general 95 @cm_tropflux 36 96 reinitplt, /z,/invert 37 97 key_portrait = 1 … … 47 107 ;; first leg 48 108 49 fi= "/Users/pkb/data/Mooring_data/stratus/met_data_stratus_2001_2002.txt"109 fi=tropflux_id_env+"met_data_stratus_2001_2002.txt" 50 110 res=read_ascii(fi,data_start=1) 51 111 ff=res.field1 … … 62 122 st1=20011019 & en1=20021022 63 123 64 file= "/Users/pkb/data/ERA-I/erai_swr_19910101_20091231_oafluxgrid.nc"124 file=tropflux_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc" 65 125 initncdf, file 66 126 swr=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy", box=box,/nan) & swr=reform(swr) 67 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lwr_19890101_20091231_oafluxgrid.nc'127 file=tropflux_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc' 68 128 initncdf, file 69 129 lwr=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) & lwr=reform(lwr) 70 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_shf_19890101_20091231_oafluxgrid.nc'130 file=tropflux_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc' 71 131 initncdf, file 72 132 shf=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf=reform(shf) 73 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lhf_19890101_20091231_oafluxgrid.nc'133 file=tropflux_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc' 74 134 initncdf, file 75 135 lhf=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf=reform(lhf) … … 80 140 swr=0 & lwr=0 & lhf=0 & shf=0 81 141 82 file= "/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc"142 file=tropflux_id_env+"TropFlux_19890101_20091231.nc" 83 143 initncdf, file 84 144 swr=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) … … 87 147 lhf=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf=grossemoyenne(lhf, "xy",/nan, box=box) & lhf=reform(lhf) 88 148 89 file= "/Users/pkb/data/TropFlux/TropFlux_swr_19890101_20091231_NRT_v50.nc"149 file=tropflux_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc" 90 150 initncdf, file 91 151 olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) & olr1=grossemoyenne(olr1, "xy",/nan, box=box) & olr1=reform(olr1) … … 96 156 swr=0 & lwr=0 & lhf=0 & shf=0 & olr1=0 97 157 98 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/swr_oafluxgrid_1985_2007.nc'158 file=tropflux_id_env+'swr_oafluxgrid_1985_2007.nc' 99 159 initncdf, file 100 160 swr=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) 101 161 102 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lwr_oafluxgrid_1985_2007.nc'162 file=tropflux_id_env+'lwr_oafluxgrid_1985_2007.nc' 103 163 initncdf, file 104 164 lwr=read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr=-1*reform(lwr) 105 165 106 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lhf_oafluxgrid_1985_2009.nc'166 file=tropflux_id_env+'lhf_oafluxgrid_1985_2009.nc' 107 167 initncdf, file 108 168 lhf=read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf=-1*reform(lhf) 109 169 110 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/shf_oafluxgrid_1985_2009.nc'170 file=tropflux_id_env+'shf_oafluxgrid_1985_2009.nc' 111 171 initncdf, file 112 172 shf=read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf=-1*reform(shf) … … 116 176 swr=0 & lwr=0 & lhf=0 & shf=0 117 177 118 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/swr_ncep2_oaflxgrid_19890101_20091231.nc'178 fi=tropflux_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc' 119 179 initncdf, fi 120 180 swr=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) 121 181 122 fi= "/Volumes/Iomega_HDD/flux_reconstruction/ncep2/NCEP2_flux_19890101_20090729.nc"182 fi=tropflux_id_env+"NCEP2_flux_19890101_20090729.nc" 123 183 initncdf, fi 124 184 lwr=read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) & lwr=grossemoyenne(lwr, "xy",/nan, box=box) & lwr=reform(lwr) 125 185 lwr=-1*lwr 126 186 127 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/lhf_ncep2_oafluxgrid_19890101_20091231.nc'187 fi=tropflux_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc' 128 188 initncdf, fi 129 189 lhf=read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) & lhf=-1*reform(lhf) 130 190 131 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/shf_ncep2_oafluxgrid_19890101_20091231.nc'191 fi=tropflux_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc' 132 192 initncdf, fi 133 193 shf=read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) & shf=-1*reform(shf) … … 138 198 swr=0 & lwr=0 & lhf=0 & shf=0 139 199 140 ;file='/Volumes/Iomega_HDD/flux_reconstruction/ncep/fluxe_ncep1_19890101_20091231.nc' 141 file="/Users/pkb/data/heat_budget/ncep/ncep1_flux_19890101_20091231.nc" 200 file=tropflux_id_env+"ncep1_flux_19890101_20091231.nc" 142 201 initncdf, file 143 202 swr=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) … … 214 273 xyouts, -150,-175, cstat_olr, charsize=1. 215 274 216 stop217 275 closeps 218 fig="stratus_validation_net_2001_2002_all_v11.ps" 219 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 220 spawn, 'gv '+cpsdir+fig 221 return 276 fig=tropflux_od_env+"stratus_validation_net_2001_2002_all_v11.ps" 277 spawn, 'mv '+psdir+'idl.ps '+fig 278 spawn, 'gv '+fig 222 279 end -
trunk/src/paper01/fig14/subdctn_cs_validation_net_1991_93_all_v10.pro
r43 r46 1 1 ;+ 2 ; .. _subdctn_cs_validation_net_1991_93_all_v10.pro 2 ; .. _subdctn_cs_validation_net_1991_93_all_v10.pro: 3 3 ; 4 4 ; ============================================= … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph subdctn_cs_validation_net_1991_93_all_v10 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; met_data [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/met_data_subduct_cs_9*.txt"]; 18 ; swr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_swr_19910101_20091231_oafluxgrid.nc"]; 19 ; lwr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_lwr_19910101_20091231_oafluxgrid.nc"]; 20 ; lhf_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_lhf_19910101_20091231_oafluxgrid.nc"]; 21 ; shf_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_shf_19910101_20091231_oafluxgrid.nc"]; 22 ; tropflux_general [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_19890101_20091231.nc"]; 23 ; swr_tropflux_nrt [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"]; 24 ; swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_oafluxgrid_1985_2007.nc"]; 25 ; lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lwr_oafluxgrid_1985_2007.nc"]; 26 ; lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_oafluxgrid_1985_2007.nc"]; 27 ; shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_oafluxgrid_1985_2007.nc"]; 28 ; swr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_ncep2_oaflxgrid_19890101_20091231.nc"]; 29 ; lwr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/NCEP2_flux_19890101_20090729.nc"]; 30 ; lhf_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_ncep2_oafluxgrid_19890101_20091231.nc"]; 31 ; shf_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_ncep2_oafluxgrid_19890101_20091231.nc"]; 32 ; 33 ; ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ncep1_flux_19890101_20091231.nc"]; 34 ; 35 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/subdctn_cs_validation_net_1991_93_all_v10.ps"]; 36 ; 37 ; subdctn_cs_validation_net_1991_93_all_v10 [shape=box, 38 ; fontname=Courier, 39 ; color=blue, 40 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/subdctn_cs_validation_net_1991_93_all_v10.pro", 41 ; label="${TROPFLUX}/src/paper01/fig14/subdctn_cs_validation_net_1991_93_all_v10.pro"]; 42 ; 43 ; {met_data swr_erai lwr_erai lhf_erai shf_erai tropflux_general swr_tropflux_nrt swr_oafluxgrid lwr_oafluxgrid lhf_oafluxgrid shf_oafluxgrid swr_ncep2 lwr_ncep2 lhf_ncep2 shf_ncep2 ncep1} -> {subdctn_cs_validation_net_1991_93_all_v10} -> {figure} 44 ; } 45 ; 11 46 ; SEE ALSO 12 47 ; ======== 13 48 ; 14 49 ; :ref:`tropflux_profile.sh` 50 ; :ref:`tropflux_init.pro` 51 ; :ref:`cm_tropflux.pro` 52 ; 53 ; :ref:`statistics.pro` 15 54 ; 16 55 ; EXAMPLES … … 22 61 ; IDL> subdctn_cs_validation_net_1991_93_all_v10 23 62 ; 63 ; TODO 64 ; ==== 65 ; 66 ; make it work on cratos : missing data 67 ; 68 ; coding rules 69 ; 70 ; get rid of spwan 71 ; 72 ; complete description 73 ; 74 ; handle IO error 75 ; 24 76 ; EVOLUTIONS 25 77 ; ========== … … 27 79 ; $Id$ 28 80 ; 81 ; - fplod 20110420T121121Z aedon.locean-ipsl.upmc.fr (Darwin) 82 ; 83 ; * remove hard coding path 84 ; * add graphviz 85 ; 29 86 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 30 87 ; … … 33 90 ;- 34 91 pro subdctn_cs_validation_net_1991_93_all_v10 35 @common 92 @cm_general 93 @cm_tropflux 36 94 reinitplt, /z,/invert 37 95 key_portrait = 1 … … 46 104 ;; first leg 47 105 48 fi= "/Users/pkb/data/Mooring_data/subduction_expt_atl/met_data_subduct_cs_91.txt"106 fi=tropflux_id_env+"met_data_subduct_cs_91.txt" 49 107 res=read_ascii(fi,data_start=1) 50 108 ff=res.field1 … … 59 117 ;; second leg 60 118 61 fi= "/Users/pkb/data/Mooring_data/subduction_expt_atl/met_data_subduct_cs_92.txt"119 fi=tropflux_id_env+"met_data_subduct_cs_92.txt" 62 120 res=read_ascii(fi,data_start=1) 63 121 ff=res.field1 … … 70 128 ;; second leg 71 129 72 fi= "/Users/pkb/data/Mooring_data/subduction_expt_atl/met_data_subduct_cs_93.txt"130 fi=tropflux_id_env+"met_data_subduct_cs_93.txt" 73 131 res=read_ascii(fi,data_start=1) 74 132 ff=res.field1 … … 86 144 st1=19910623 & en1=19930616 87 145 88 file= "/Users/pkb/data/ERA-I/erai_swr_19910101_20091231_oafluxgrid.nc"146 file=tropflux_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc" 89 147 initncdf, file 90 148 swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1) 91 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lhf_19890101_20091231_oafluxgrid.nc'149 file=tropflux_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc' 92 150 initncdf, file 93 151 lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1) 94 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_shf_19890101_20091231_oafluxgrid.nc'152 file=tropflux_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc' 95 153 initncdf, file 96 154 shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1) 97 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lwr_19890101_20091231_oafluxgrid.nc'155 file=tropflux_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc' 98 156 initncdf, file 99 157 lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1) … … 103 161 help, era 104 162 105 file= "/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc"163 file=tropflux_id_env+"TropFlux_19890101_20091231.nc" 106 164 initncdf, file 107 165 lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1) … … 111 169 trop=swr1+lwr1+lhf1+shf1 112 170 113 file= "/Users/pkb/data/TropFlux/TropFlux_swr_19890101_20091231_NRT_v50.nc"171 file=tropflux_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc" 114 172 initncdf, file 115 173 olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) & olr1=grossemoyenne(olr1, "xy",/nan, box=box) & olr1=reform(olr1) … … 119 177 swr1=0 & lwr1=0 & shf1=0 & lhf1=0 & olr1=0 120 178 121 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/swr_oafluxgrid_1985_2007.nc'179 file=tropflux_id_env+'swr_oafluxgrid_1985_2007.nc' 122 180 initncdf, file 123 181 swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) 124 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lwr_oafluxgrid_1985_2007.nc'182 file=tropflux_id_env+'lwr_oafluxgrid_1985_2007.nc' 125 183 initncdf, file 126 184 lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) 127 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lhf_oafluxgrid_1985_2009.nc'185 file=tropflux_id_env+'lhf_oafluxgrid_1985_2009.nc' 128 186 initncdf, file 129 187 lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) 130 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/shf_oafluxgrid_1985_2009.nc'188 file=tropflux_id_env+'shf_oafluxgrid_1985_2009.nc' 131 189 initncdf, file 132 190 shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) … … 136 194 swr1=0 & lwr1=0 & shf1=0 & lhf1=0 & olr1=0 137 195 138 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/swr_ncep2_oaflxgrid_19890101_20091231.nc'196 fi=tropflux_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc' 139 197 initncdf, fi 140 198 swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) 141 fi= "/Volumes/Iomega_HDD/flux_reconstruction/ncep2/NCEP2_flux_19890101_20090729.nc"199 fi=tropflux_id_env+"NCEP2_flux_19890101_20090729.nc" 142 200 initncdf, fi 143 201 lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) 144 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/lhf_ncep2_oafluxgrid_19890101_20091231.nc'202 fi=tropflux_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc' 145 203 initncdf, fi 146 204 lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) 147 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/shf_ncep2_oafluxgrid_19890101_20091231.nc'205 fi=tropflux_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc' 148 206 initncdf, fi 149 207 shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) … … 153 211 swr1=0 & lwr1=0 & shf1=0 & lhf1=0 & olr1=0 154 212 155 file= "/Users/pkb/data/heat_budget/ncep/ncep1_flux_19890101_20091231.nc"213 file=tropflux_id_env+"ncep1_flux_19890101_20091231.nc" 156 214 initncdf, file 157 215 … … 228 286 xyouts, 0,-175, cstat_olr, charsize=1. 229 287 230 stop231 288 closeps 232 fig="subdctn_cs_validation_net_1991_93_all_v10.ps" 233 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 234 spawn, 'gv '+cpsdir+fig 235 return 289 fig=tropflux_od_env+"subdctn_cs_validation_net_1991_93_all_v10.ps" 290 spawn, 'mv '+psdir+'idl.ps '+fig 291 spawn, 'gv '+fig 236 292 end -
trunk/src/paper01/fig14/subdctn_ses_validation_net_1991_93_all_v10.pro
r43 r46 1 1 ;+ 2 ; .. _subdctn_ses_validation_net_1991_93_all_v10.pro 2 ; .. _subdctn_ses_validation_net_1991_93_all_v10.pro: 3 3 ; 4 4 ; ============================================== … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph subdctn_ses_validation_net_1991_93_all_v10 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; met_data [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/met_data_subduct_ses_9*.txt"]; 18 ; swr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_swr_19910101_20091231_oafluxgrid.nc"]; 19 ; lwr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_lwr_19910101_20091231_oafluxgrid.nc"]; 20 ; lhf_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_lhf_19910101_20091231_oafluxgrid.nc"]; 21 ; shf_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_shf_19910101_20091231_oafluxgrid.nc"]; 22 ; tropflux_general [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_19890101_20091231.nc"]; 23 ; swr_tropflux_nrt [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"]; 24 ; swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_oafluxgrid_1985_2007.nc"]; 25 ; lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lwr_oafluxgrid_1985_2007.nc"]; 26 ; lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_oafluxgrid_1985_2007.nc"]; 27 ; shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_oafluxgrid_1985_2007.nc"]; 28 ; swr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_ncep2_oaflxgrid_19890101_20091231.nc"]; 29 ; lwr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/NCEP2_flux_19890101_20090729.nc"]; 30 ; lhf_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_ncep2_oafluxgrid_19890101_20091231.nc"]; 31 ; shf_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_ncep2_oafluxgrid_19890101_20091231.nc"]; 32 ; 33 ; ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ncep1_flux_19890101_20091231.nc"]; 34 ; 35 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/subdctn_ses_validation_net_1991_93_all_v10.ps"]; 36 ; 37 ; subdctn_ses_validation_net_1991_93_all_v10 [shape=box, 38 ; fontname=Courier, 39 ; color=blue, 40 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/subdctn_ses_validation_net_1991_93_all_v10.pro", 41 ; label="${TROPFLUX}/src/paper01/fig14/subdctn_ses_validation_net_1991_93_all_v10.pro"]; 42 ; 43 ; {met_data swr_erai lwr_erai lhf_erai shf_erai tropflux_general swr_tropflux_nrt swr_oafluxgrid lwr_oafluxgrid lhf_oafluxgrid shf_oafluxgrid swr_ncep2 lwr_ncep2 lhf_ncep2 shf_ncep2 ncep1} -> {subdctn_ses_validation_net_1991_93_all_v10} -> {figure} 44 ; } 45 ; 11 46 ; SEE ALSO 12 47 ; ======== 13 48 ; 14 49 ; :ref:`tropflux_profile.sh` 50 ; :ref:`tropflux_init.pro` 51 ; :ref:`cm_tropflux.pro` 52 ; 53 ; :ref:`statistics.pro` 15 54 ; 16 55 ; EXAMPLES … … 22 61 ; IDL> subdctn_ses_validation_net_1991_93_all_v10 23 62 ; 63 ; TODO 64 ; ==== 65 ; 66 ; make it work on cratos : missing data 67 ; 68 ; coding rules 69 ; 70 ; get rid of spwan 71 ; 72 ; complete description 73 ; 74 ; handle IO error 24 75 ; 25 76 ; EVOLUTIONS … … 28 79 ; $Id$ 29 80 ; 81 ; - fplod 20110420T121359Z aedon.locean-ipsl.upmc.fr (Darwin) 82 ; 83 ; * remove hard coding path 84 ; * add graphviz 85 ; 30 86 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 31 87 ; … … 34 90 ;- 35 91 pro subdctn_ses_validation_net_1991_93_all_v10 36 @common 92 @cm_general 93 @cm_tropflux 37 94 reinitplt, /z,/invert 38 95 key_portrait = 1 … … 49 106 ;; second leg 50 107 51 fi= "/Users/pkb/data/Mooring_data/subduction_expt_atl/met_data_subduct_ses_92.txt"108 fi=tropflux_id_env+"met_data_subduct_ses_92.txt" 52 109 res=read_ascii(fi,data_start=1) 53 110 ff=res.field1 … … 61 118 ;; second leg 62 119 63 fi= "/Users/pkb/data/Mooring_data/subduction_expt_atl/met_data_subduct_ses_93.txt"120 fi=tropflux_id_env+"met_data_subduct_ses_93.txt" 64 121 res=read_ascii(fi,data_start=1) 65 122 ff=res.field1 … … 79 136 st2=19920921 & en2=19930618 80 137 81 file= "/Users/pkb/data/ERA-I/erai_swr_19910101_20091231_oafluxgrid.nc"138 file=tropflux_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc" 82 139 initncdf, file 83 140 swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1) 84 141 swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy", box=box,/nan) & swr2=reform(swr2) 85 142 86 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lhf_19890101_20091231_oafluxgrid.nc'143 file=tropflux_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc' 87 144 initncdf, file 88 145 lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1) 89 146 lhf2=-1*read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy", box=box,/nan) & lhf2=reform(lhf2) 90 147 91 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_shf_19890101_20091231_oafluxgrid.nc'148 file=tropflux_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc' 92 149 initncdf, file 93 150 shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1) 94 151 shf2=-1*read_ncdf('shf',st2,en2,file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy", box=box,/nan) & shf2=reform(shf2) 95 152 96 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lwr_19890101_20091231_oafluxgrid.nc'153 file=tropflux_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc' 97 154 initncdf, file 98 155 lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1) … … 107 164 net1=0. & net2=0. 108 165 109 file= "/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc"166 file=tropflux_id_env+"TropFlux_19890101_20091231.nc" 110 167 initncdf, file 111 168 lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1) … … 118 175 swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy", box=box,/nan) & swr2=reform(swr2) 119 176 120 file= "/Users/pkb/data/TropFlux/TropFlux_swr_19890101_20091231_NRT_v50.nc"177 file=tropflux_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc" 121 178 initncdf, file 122 179 olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) & olr1=grossemoyenne(olr1, "xy",/nan, box=box) & olr1=reform(olr1) … … 128 185 help, trop, olr 129 186 130 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/swr_oafluxgrid_1985_2007.nc'187 file=tropflux_id_env+'swr_oafluxgrid_1985_2007.nc' 131 188 initncdf, file 132 189 swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) 133 190 swr2=read_ncdf("swr", st2, en2, file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2) 134 191 135 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lwr_oafluxgrid_1985_2007.nc'192 file=tropflux_id_env+'lwr_oafluxgrid_1985_2007.nc' 136 193 initncdf, file 137 194 lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) 138 195 lwr2=-1*read_ncdf("lwr", st2, en2, file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2) 139 196 140 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lhf_oafluxgrid_1985_2009.nc'197 file=tropflux_id_env+'lhf_oafluxgrid_1985_2009.nc' 141 198 initncdf, file 142 199 lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) 143 200 lhf2=-1*read_ncdf("lhf", st2, en2, file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2) 144 201 145 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/shf_oafluxgrid_1985_2009.nc'202 file=tropflux_id_env+'shf_oafluxgrid_1985_2009.nc' 146 203 initncdf, file 147 204 shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) … … 152 209 help, oaf 153 210 154 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/swr_ncep2_oaflxgrid_19890101_20091231.nc'211 fi=tropflux_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc' 155 212 initncdf, fi 156 213 swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) 157 214 swr2=read_ncdf("swr", st2, en2, file=fi,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2) 158 215 159 fi= "/Volumes/Iomega_HDD/flux_reconstruction/ncep2/NCEP2_flux_19890101_20090729.nc"216 fi=tropflux_id_env+"NCEP2_flux_19890101_20090729.nc" 160 217 initncdf, fi 161 218 lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) 162 219 lwr2=-1*read_ncdf("lwr", st2, en2, file=fi,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2) 163 220 164 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/lhf_ncep2_oafluxgrid_19890101_20091231.nc'221 fi=tropflux_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc' 165 222 initncdf, fi 166 223 lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) 167 224 lhf2=-1*read_ncdf("lhf", st2, en2, file=fi,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2) 168 225 169 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/shf_ncep2_oafluxgrid_19890101_20091231.nc'226 fi=tropflux_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc' 170 227 initncdf, fi 171 228 shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) … … 176 233 help, nce2 177 234 178 file= "/Users/pkb/data/heat_budget/ncep/ncep1_flux_19890101_20091231.nc"235 file=tropflux_id_env+"ncep1_flux_19890101_20091231.nc" 179 236 initncdf, file 180 237 lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1) … … 256 313 xyouts, 0,-175, cstat_olr, charsize=1. 257 314 258 stop259 315 closeps 260 fig="subdctn_ses_validation_net_1991_93_all_v10.ps" 261 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 262 spawn, 'gv '+cpsdir+fig 263 return 316 fig=tropflux_od_env+"subdctn_ses_validation_net_1991_93_all_v10.ps" 317 spawn, 'mv '+psdir+'idl.ps '+fig 318 spawn, 'gv '+fig 264 319 end -
trunk/src/paper01/fig14/subdctn_sws_validation_net_1991_93_all_v10.pro
r43 r46 1 1 ;+ 2 ; .. _subdctn_sws_validation_net_1991_93_all_v10.pro 2 ; .. _subdctn_sws_validation_net_1991_93_all_v10.pro: 3 3 ; 4 4 ; ============================================== … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph subdctn_sws_validation_net_1991_93_all_v10 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; met_data [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/met_data_subduct_sws_9*.txt"]; 18 ; swr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_swr_19910101_20091231_oafluxgrid.nc"]; 19 ; lwr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_lwr_19910101_20091231_oafluxgrid.nc"]; 20 ; lhf_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_lhf_19910101_20091231_oafluxgrid.nc"]; 21 ; shf_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_shf_19910101_20091231_oafluxgrid.nc"]; 22 ; tropflux_general [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_19890101_20091231.nc"]; 23 ; swr_tropflux_nrt [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"]; 24 ; swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_oafluxgrid_1985_2007.nc"]; 25 ; lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lwr_oafluxgrid_1985_2007.nc"]; 26 ; lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_oafluxgrid_1985_2007.nc"]; 27 ; shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_oafluxgrid_1985_2007.nc"]; 28 ; swr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_ncep2_oaflxgrid_19890101_20091231.nc"]; 29 ; lwr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/NCEP2_flux_19890101_20090729.nc"]; 30 ; lhf_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_ncep2_oafluxgrid_19890101_20091231.nc"]; 31 ; shf_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_ncep2_oafluxgrid_19890101_20091231.nc"]; 32 ; 33 ; ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ncep1_flux_19890101_20091231.nc"]; 34 ; 35 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/subdctn_sws_validation_net_1991_93_all_v10.ps"]; 36 ; 37 ; subdctn_sws_validation_net_1991_93_all_v10 [shape=box, 38 ; fontname=Courier, 39 ; color=blue, 40 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/subdctn_sws_validation_net_1991_93_all_v10.pro", 41 ; label="${TROPFLUX}/src/paper01/fig14/subdctn_sws_validation_net_1991_93_all_v10.pro"]; 42 ; 43 ; {met_data swr_erai lwr_erai lhf_erai shf_erai tropflux_general swr_tropflux_nrt swr_oafluxgrid lwr_oafluxgrid lhf_oafluxgrid shf_oafluxgrid swr_ncep2 lwr_ncep2 lhf_ncep2 shf_ncep2 ncep1} -> {subdctn_sws_validation_net_1991_93_all_v10} -> {figure} 44 ; } 45 ; 11 46 ; SEE ALSO 12 47 ; ======== 13 48 ; 14 49 ; :ref:`tropflux_profile.sh` 50 ; :ref:`tropflux_init.pro` 51 ; :ref:`cm_tropflux.pro` 52 ; 53 ; :ref:`statistics.pro` 15 54 ; 16 55 ; EXAMPLES … … 22 61 ; IDL> subdctn_sws_validation_net_1991_93_all_v10 23 62 ; 63 ; TODO 64 ; ==== 65 ; 66 ; make it work on cratos : missing data 67 ; 68 ; coding rules 69 ; 70 ; get rid of spwan 71 ; 72 ; complete description 73 ; 74 ; handle IO error 75 ; 24 76 ; EVOLUTIONS 25 77 ; ========== … … 27 79 ; $Id$ 28 80 ; 81 ; - fplod 20110420T121730Z aedon.locean-ipsl.upmc.fr (Darwin) 82 ; 83 ; * remove hard coding path 84 ; * add graphviz 85 ; 29 86 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 30 87 ; … … 33 90 ;- 34 91 pro subdctn_sws_validation_net_1991_93_all_v10 35 @common 92 @cm_general 93 @cm_tropflux 36 94 reinitplt, /z,/invert 37 95 key_portrait = 1 … … 46 104 ;; first leg 47 105 48 fi= "/Users/pkb/data/Mooring_data/subduction_expt_atl/met_data_subduct_sws_91_v1.txt"106 fi=tropflux_id_env+"met_data_subduct_sws_91_v1.txt" 49 107 res=read_ascii(fi,data_start=1) 50 108 ff=res.field1 … … 59 117 ;; second leg 60 118 61 fi= "/Users/pkb/data/Mooring_data/subduction_expt_atl/met_data_subduct_sws_92_v1.txt"119 fi=tropflux_id_env+"met_data_subduct_sws_92_v1.txt" 62 120 res=read_ascii(fi,data_start=1) 63 121 ff=res.field1 … … 71 129 ;; second leg 72 130 73 fi= "/Users/pkb/data/Mooring_data/subduction_expt_atl/met_data_subduct_sws_93_v1.txt"131 fi=tropflux_id_env+"met_data_subduct_sws_93_v1.txt" 74 132 res=read_ascii(fi,data_start=1) 75 133 ff=res.field1 … … 89 147 st4=19930101 & en4=19930521 90 148 91 file= "/Users/pkb/data/ERA-I/erai_swr_19910101_20091231_oafluxgrid.nc"149 file=tropflux_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc" 92 150 initncdf, file 93 151 swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1) … … 96 154 swr4=read_ncdf('swr',st4,en4,file=file,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy", box=box,/nan) & swr4=reform(swr4) 97 155 98 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lhf_19890101_20091231_oafluxgrid.nc'156 file=tropflux_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc' 99 157 initncdf, file 100 158 lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1) … … 103 161 lhf4=-1*read_ncdf('lhf',st4,en4,file=file,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy", box=box,/nan) & lhf4=reform(lhf4) 104 162 105 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_shf_19890101_20091231_oafluxgrid.nc'163 file=tropflux_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc' 106 164 initncdf, file 107 165 shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1) … … 110 168 shf4=-1*read_ncdf('shf',st4,en4,file=file,/nostr, box=box) & shf4=grossemoyenne(shf4, "xy", box=box,/nan) & shf4=reform(shf4) 111 169 112 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lwr_19890101_20091231_oafluxgrid.nc'170 file=tropflux_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc' 113 171 initncdf, file 114 172 lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1) … … 126 184 help, era 127 185 128 file= "/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc"186 file=tropflux_id_env+"TropFlux_19890101_20091231.nc" 129 187 initncdf, file 130 188 lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1) … … 148 206 swr4=read_ncdf('swr',st4,en4,file=file,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy", box=box,/nan) & swr4=reform(swr4) 149 207 150 file= "/Users/pkb/data/TropFlux/TropFlux_swr_19890101_20091231_NRT_v50.nc"208 file=tropflux_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc" 151 209 initncdf, file 152 210 olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) & olr1=grossemoyenne(olr1, "xy",/nan, box=box) & olr1=reform(olr1) … … 169 227 help, trop, olr 170 228 171 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/swr_oafluxgrid_1985_2007.nc'229 file=tropflux_id_env+'swr_oafluxgrid_1985_2007.nc' 172 230 initncdf, file 173 231 swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) … … 176 234 swr4=read_ncdf("swr", st4, en4, file=file,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy",/nan, box=box) & swr4=reform(swr4) 177 235 178 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lwr_oafluxgrid_1985_2007.nc'236 file=tropflux_id_env+'lwr_oafluxgrid_1985_2007.nc' 179 237 initncdf, file 180 238 lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) … … 183 241 lwr4=-1*read_ncdf("lwr", st4, en4, file=file,/nostr, box=box) & lwr4=grossemoyenne(lwr4, "xy",/nan, box=box) & lwr4=reform(lwr4) 184 242 185 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lhf_oafluxgrid_1985_2009.nc'243 file=tropflux_id_env+'lhf_oafluxgrid_1985_2009.nc' 186 244 initncdf, file 187 245 lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) … … 190 248 lhf4=-1*read_ncdf("lhf", st4, en4, file=file,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy",/nan, box=box) & lhf4=reform(lhf4) 191 249 192 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/shf_oafluxgrid_1985_2009.nc'250 file=tropflux_id_env+'shf_oafluxgrid_1985_2009.nc' 193 251 initncdf, file 194 252 shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) … … 209 267 help, oaf 210 268 211 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/swr_ncep2_oaflxgrid_19890101_20091231.nc'269 fi=tropflux_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc' 212 270 initncdf, fi 213 271 swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) … … 216 274 swr4=read_ncdf("swr", st4, en4, file=fi,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy",/nan, box=box) & swr4=reform(swr4) 217 275 218 fi= "/Volumes/Iomega_HDD/flux_reconstruction/ncep2/NCEP2_flux_19890101_20090729.nc"276 fi=tropflux_id_env+'"NCEP2_flux_19890101_20090729.nc" 219 277 initncdf, fi 220 278 lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) … … 223 281 lwr4=-1*read_ncdf("lwr", st4, en4, file=fi,/nostr, box=box) & lwr4=grossemoyenne(lwr4, "xy",/nan, box=box) & lwr4=reform(lwr4) 224 282 225 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/lhf_ncep2_oafluxgrid_19890101_20091231.nc'283 fi=tropflux_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc' 226 284 initncdf, fi 227 285 lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) … … 230 288 lhf4=-1*read_ncdf("lhf", st4, en4, file=fi,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy",/nan, box=box) & lhf4=reform(lhf4) 231 289 232 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/shf_ncep2_oafluxgrid_19890101_20091231.nc'290 fi=tropflux_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc' 233 291 initncdf, fi 234 292 shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) … … 248 306 net1=0. & net2=0. & net3=0. & net4=0 249 307 250 file= "/Users/pkb/data/heat_budget/ncep/ncep1_flux_19890101_20091231.nc"308 file=tropflux_id_env+"ncep1_flux_19890101_20091231.nc" 251 309 initncdf, file 252 310 … … 344 402 xyouts, 0,-175, cstat_olr, charsize=1. 345 403 346 stop347 404 closeps 348 fig="subdctn_sws_validation_net_1991_93_all_v10.ps" 349 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 350 spawn, 'gv '+cpsdir+fig 351 return 405 fig=tropflux_od_env+"subdctn_sws_validation_net_1991_93_all_v10.ps" 406 spawn, 'mv '+psdir+'idl.ps '+fig 407 spawn, 'gv '+fig 352 408 end -
trunk/src/paper01/fig14/whots_validation_net_2004_2007_all_v10.pro
r43 r46 1 1 ;+ 2 ; .. _whots_validation_net_2004_2007_all_v10.pro 2 ; .. _whots_validation_net_2004_2007_all_v10.pro: 3 3 ; 4 4 ; ========================================== … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph whots_validation_net_2004_2007_all_v10 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; met_data [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/met_data_WHOTS_200?_200?.txt"]; 18 ; swr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_swr_19910101_20091231_oafluxgrid.nc"]; 19 ; lwr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_lwr_19910101_20091231_oafluxgrid.nc"]; 20 ; lhf_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_lhf_19910101_20091231_oafluxgrid.nc"]; 21 ; shf_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_shf_19910101_20091231_oafluxgrid.nc"]; 22 ; tropflux_general [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_19890101_20091231.nc"]; 23 ; swr_tropflux_nrt [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"]; 24 ; swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_oafluxgrid_1985_2007.nc"]; 25 ; lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lwr_oafluxgrid_1985_2007.nc"]; 26 ; lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_oafluxgrid_1985_2007.nc"]; 27 ; shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_oafluxgrid_1985_2007.nc"]; 28 ; swr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_ncep2_oaflxgrid_19890101_20091231.nc"]; 29 ; lwr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/NCEP2_flux_19890101_20090729.nc"]; 30 ; lhf_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_ncep2_oafluxgrid_19890101_20091231.nc"]; 31 ; shf_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_ncep2_oafluxgrid_19890101_20091231.nc"]; 32 ; 33 ; ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ncep1_flux_19890101_20091231.nc"]; 34 ; 35 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/WHOTS_validation_net_2004_2007_all_v10.ps"]; 36 ; 37 ; whots_validation_net_2004_2007_all_v10 [shape=box, 38 ; fontname=Courier, 39 ; color=blue, 40 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/whots_validation_net_2004_2007_all_v10.pro", 41 ; label="${TROPFLUX}/src/paper01/fig14/whots_validation_net_2004_2007_all_v10.pro"]; 42 ; 43 ; {met_data swr_erai lwr_erai lhf_erai shf_erai tropflux_general swr_tropflux_nrt swr_oafluxgrid lwr_oafluxgrid lhf_oafluxgrid shf_oafluxgrid swr_ncep2 lwr_ncep2 lhf_ncep2 shf_ncep2 ncep1} -> {whots_validation_net_2004_2007_all_v10} -> {figure} 44 ; } 45 ; 11 46 ; SEE ALSO 12 47 ; ======== 13 48 ; 14 49 ; :ref:`tropflux_profile.sh` 50 ; :ref:`tropflux_init.pro` 51 ; :ref:`cm_tropflux.pro` 52 ; 53 ; :ref:`statistics.pro` 15 54 ; 16 55 ; EXAMPLES … … 22 61 ; IDL> whots_validation_net_2004_2007_all_v10 23 62 ; 24 ; EVOLUTIONS 63 ; TODO 64 ; ==== 65 ; 66 ; make it work on cratos : missing data 67 ; 68 ; coding rules 69 ; 70 ; get rid of spwan 71 ; 72 ; complete description 73 ; 74 ; handle IO error 75 ; 76 ; EVOLUTIONS 25 77 ; ========== 26 78 ; 27 79 ; $Id$ 80 ; 81 ; - fplod 20110420T122057Z aedon.locean-ipsl.upmc.fr (Darwin) 82 ; 83 ; * remove hard coding path 84 ; * add graphviz 28 85 ; 29 86 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) … … 33 90 ;- 34 91 pro whots_validation_net_2004_2007_all_v10 35 @common 92 @cm_general 93 @cm_tropflux 36 94 reinitplt, /z,/invert 37 95 key_portrait = 1 … … 47 105 ;; first leg 48 106 49 fi= "/Users/pkb/data/Mooring_data/WHOTS/met_data_WHOTS_2004_2005.txt"107 fi=tropflux_id_env+"met_data_WHOTS_2004_2005.txt" 50 108 res=read_ascii(fi,data_start=1) 51 109 ff=res.field1 … … 56 114 net_04=[lhf_04+shf_04+swr_04+lwr_04] 57 115 58 fi= "/Users/pkb/data/Mooring_data/WHOTS/met_data_WHOTS_2005_2006.txt"116 fi=tropflux_id_env+"met_data_WHOTS_2005_2006.txt" 59 117 res=read_ascii(fi,data_start=1) 60 118 ff=res.field1 … … 65 123 net_05=[lhf_05+shf_05+swr_05+lwr_05] 66 124 67 fi= "/Users/pkb/data/Mooring_data/WHOTS/met_data_WHOTS_2006_2007.txt"125 fi=tropflux_id_env+"met_data_WHOTS_2006_2007.txt" 68 126 res=read_ascii(fi,data_start=1) 69 127 ff=res.field1 … … 86 144 ;st5=20080605 & en5=20090715 87 145 88 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lhf_19890101_20091231_oafluxgrid.nc'146 file=tropflux_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc' 89 147 initncdf, file 90 148 lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1) … … 92 150 lhf3=-1*read_ncdf('lhf',st3,en3,file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy", box=box,/nan) & lhf3=reform(lhf3) 93 151 94 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_shf_19890101_20091231_oafluxgrid.nc'152 file=tropflux_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc' 95 153 initncdf, file 96 154 shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1) … … 98 156 shf3=-1*read_ncdf('shf',st3,en3,file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy", box=box,/nan) & shf3=reform(shf3) 99 157 100 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lwr_19890101_20091231_oafluxgrid.nc'158 file=tropflux_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc' 101 159 initncdf, file 102 160 lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1) … … 104 162 lwr3=read_ncdf('lwr',st3-1,en3,file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy", box=box,/nan) & lwr3=reform(lwr3) 105 163 106 file= "/Users/pkb/data/ERA-I/erai_swr_19910101_20091231_oafluxgrid.nc"164 file=tropflux_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc" 107 165 initncdf, file 108 166 swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1) … … 119 177 help, era 120 178 121 file= "/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc"179 file=tropflux_id_env+"TropFlux_19890101_20091231.nc" 122 180 initncdf, file 123 181 … … 138 196 swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy", box=box,/nan) & swr3=reform(swr3) 139 197 140 file= "/Users/pkb/data/TropFlux/TropFlux_swr_19890101_20091231_NRT_v50.nc"198 file=tropflux_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc" 141 199 initncdf, file 142 200 olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) & olr1=grossemoyenne(olr1, "xy",/nan, box=box) & olr1=reform(olr1) … … 158 216 help, trop, olr 159 217 160 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/swr_oafluxgrid_1985_2007.nc'218 file=tropflux_id_env+'swr_oafluxgrid_1985_2007.nc' 161 219 initncdf, file 162 220 swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) … … 164 222 swr3=read_ncdf("swr", st3, en3, file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy",/nan, box=box) & swr3=reform(swr3) 165 223 166 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lwr_oafluxgrid_1985_2007.nc'224 file=tropflux_id_env+'lwr_oafluxgrid_1985_2007.nc' 167 225 initncdf, file 168 226 lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) … … 170 228 lwr3=-1*read_ncdf("lwr", st3, en3, file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) & lwr3=reform(lwr3) 171 229 172 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lhf_oafluxgrid_1985_2009.nc'230 file=tropflux_id_env+'lhf_oafluxgrid_1985_2009.nc' 173 231 initncdf, file 174 232 lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) … … 176 234 lhf3=-1*read_ncdf("lhf", st3, en3, file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) & lhf3=reform(lhf3) 177 235 178 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/shf_oafluxgrid_1985_2009.nc'236 file=tropflux_id_env+'shf_oafluxgrid_1985_2009.nc' 179 237 initncdf, file 180 238 shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) … … 192 250 help, oaf 193 251 194 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/swr_ncep2_oaflxgrid_19890101_20091231.nc'252 fi=tropflux_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc' 195 253 initncdf, fi 196 254 swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) … … 198 256 swr3=read_ncdf("swr", st3, en3, file=fi,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy",/nan, box=box) & swr3=reform(swr3) 199 257 200 fi= "/Volumes/Iomega_HDD/flux_reconstruction/ncep2/NCEP2_flux_19890101_20090729.nc"258 fi=tropflux_id_env+'NCEP2_flux_19890101_20090729.nc" 201 259 initncdf, fi 202 260 lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) … … 204 262 lwr3=-1*read_ncdf("lwr", st3, en3, file=fi,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) & lwr3=reform(lwr3) 205 263 206 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/lhf_ncep2_oafluxgrid_19890101_20091231.nc'264 fi=tropflux_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc' 207 265 initncdf, fi 208 266 lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) … … 210 268 lhf3=-1*read_ncdf("lhf", st3, en3, file=fi,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) & lhf3=reform(lhf3) 211 269 212 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/shf_ncep2_oafluxgrid_19890101_20091231.nc'270 fi=tropflux_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc' 213 271 initncdf, fi 214 272 shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) … … 227 285 net1=0. & net2=0. & net3=0. 228 286 229 file= "/Users/pkb/data/heat_budget/ncep/ncep1_flux_19890101_20091231.nc"287 file=tropflux_id_env+"ncep1_flux_19890101_20091231.nc" 230 288 initncdf, file 231 289 … … 323 381 324 382 closeps 325 fig="WHOTS_validation_net_2004_2007_all_v10.ps" 326 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 327 spawn, 'gv '+cpsdir+fig 328 return 383 fig=tropflux_od_env+"WHOTS_validation_net_2004_2007_all_v10.ps" 384 spawn, 'mv '+psdir+'idl.ps '+fig 385 spawn, 'gv '+fig 329 386 end -
trunk/src/paper01/fig15/fig15_timeseries_mjo.pro
r43 r46 6 6 ; ======================== 7 7 ; 8 ;9 8 ; DESCRIPTION 10 9 ; =========== 11 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph fig15_timeseries_mjo { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; tropflux_general [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_19890101_20091231.nc"]; 18 ; ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/NCEP2_flux_19890101_20090729.nc"]; 19 ; erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_fluxes_19930101_20090801_TROP_oafluxgrid.nc"]; 20 ; ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/fluxe_ncep1_19890101_20091231.nc"]; 21 ; shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_oafluxgrid_1985_2008.nc"]; 22 ; lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_oafluxgrid_1985_2008.nc"]; 23 ; lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lwr_oafluxgrid_1985_2007.nc"]; 24 ; swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_oafluxgrid_1985_2007.nc"]; 25 ; olr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/olr_oafluxgrid_30n30s_19890101_20091231.nc"]; 26 ; 27 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/WHOTS_validation_net_2004_2007_all_v10.ps"]; 28 ; 29 ; fig15_timeseries_mjo [shape=box, 30 ; fontname=Courier, 31 ; color=blue, 32 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig15/fig15_timeseries_mjo.pro", 33 ; label="${TROPFLUX}/src/paper01/fig15/fig15_timeseries_mjo.pro"]; 34 ; 35 ; {tropflux_general swr_oafluxgrid lwr_oafluxgrid lhf_oafluxgrid shf_oafluxgrid ncep2 ncep1} -> {fig15_timeseries_mjo} -> {figure} 36 ; } 37 ; 12 38 ; SEE ALSO 13 39 ; ======== 14 40 ; 15 41 ; :ref:`tropflux_profile.sh` 42 ; :ref:`tropflux_init.pro` 43 ; :ref:`cm_tropflux.pro` 16 44 ; 17 45 ; EXAMPLES … … 23 51 ; IDL> fig15_timeseries_mjo 24 52 ; 53 ; TODO 54 ; ==== 55 ; 56 ; make it work on cratos : missing data 57 ; 58 ; coding rules 59 ; 60 ; get rid of spwan 61 ; 62 ; complete description 63 ; 64 ; handle IO error 65 ; 25 66 ; EVOLUTIONS 26 67 ; ========== … … 28 69 ; $Id$ 29 70 ; 71 ; - fplod 20110420T122720Z aedon.locean-ipsl.upmc.fr (Darwin) 72 ; 73 ; * remove hard coding path 74 ; * add graphviz 75 ; * externalize functions 76 ; 30 77 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 31 78 ; … … 34 81 ;- 35 82 pro fig15_timeseries_mjo 36 @c ommon37 83 @cm_general 84 @cm_tropflux 38 85 reinitplt, /z,/invert 39 86 key_portrait = 1 … … 44 91 box=[50,80,-12,-5] 45 92 46 file_trop= '/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc'93 file_trop=tropflux_id_env+'TropFlux_19890101_20091231.nc' 47 94 initncdf, file_trop 48 95 shf_trop=read_ncdf("shf", date1, date2, box=box, file=file_trop,/nostr) … … 54 101 trop=grossemoyenne(trop, "xy",/nan) 55 102 56 file_ncep= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/NCEP2_flux_19890101_20090729.nc'103 file_ncep=tropflux_id_env+'NCEP2_flux_19890101_20090729.nc' 57 104 initncdf, file_ncep 58 105 shf=read_ncdf("shf", date1, date2, box=box, file=file_ncep,/nostr) … … 65 112 help, nce2 66 113 67 file_erai= '/Volumes/Iomega_HDD/work/flux_reconstruction/gridded_data/erai_fluxes_19930101_20090801_TROP_oafluxgrid.nc'114 file_erai=tropflux_id_env+'erai_fluxes_19930101_20090801_TROP_oafluxgrid.nc' 68 115 initncdf, file_erai 69 116 shf=read_ncdf("shf", date1, date2, box=box, file=file_erai,/nostr) … … 75 122 help, era 76 123 77 file= '/Volumes/Iomega_HDD/flux_reconstruction/ncep/fluxe_ncep1_19890101_20091231.nc'124 file=tropflux_id_env+'fluxe_ncep1_19890101_20091231.nc' 78 125 initncdf, file 79 126 lwr=read_ncdf("lwr", date1, date2, box=box, file=file,/nostr) … … 86 133 help, nce 87 134 88 file_oaf= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/shf_oafluxgrid_1985_2008.nc'135 file_oaf=tropflux_id_env+'shf_oafluxgrid_1985_2008.nc' 89 136 initncdf, file_oaf 90 137 shf=read_ncdf("shf", date1, date2, box=box, file=file_oaf,/nostr) 91 file_oaf= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lhf_oafluxgrid_1985_2008.nc'138 file_oaf=tropflux_id_env+'lhf_oafluxgrid_1985_2008.nc' 92 139 initncdf, file_oaf 93 140 lhf=read_ncdf("lhf", date1, date2, box=box, file=file_oaf,/nostr) 94 file_oaf= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lwr_oafluxgrid_1985_2007.nc'141 file_oaf=tropflux_id_env+'lwr_oafluxgrid_1985_2007.nc' 95 142 initncdf, file_oaf 96 143 lwr=read_ncdf("lwr", date1, date2, box=box, file=file_oaf,/nostr) 97 file_oaf= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/swr_oafluxgrid_1985_2007.nc'144 file_oaf=tropflux_id_env+'swr_oafluxgrid_1985_2007.nc' 98 145 initncdf, file_oaf 99 146 swr=read_ncdf("swr", date1, date2, box=box, file=file_oaf,/nostr) & swr_trop=swr … … 102 149 oafl=grossemoyenne(oafl, "xy",/nan) 103 150 104 file= "/Users/pkb/data/heat_budget/NOAA_OLR/olr_oafluxgrid_30n30s_19890101_20091231.nc"151 file=tropflux_id_env+"olr_oafluxgrid_30n30s_19890101_20091231.nc" 105 152 initncdf, file 106 153 olr=read_ncdf("olr", date1-1, date2, box=box, file=file,/nostr) … … 161 208 162 209 closeps 163 fig='fig15_timeseries_mjo.ps' 164 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 165 spawn, 'gv '+cpsdir+fig 166 return 210 fig=tropflux_od_env+'fig15_timeseries_mjo.ps' 211 spawn, 'mv '+psdir+'idl.ps '+fig 212 spawn, 'gv '+fig 167 213 end 168 169 function x_site_location, site170 n1=strpos(site, 's')171 if (n1 gt -1) then begin172 ns=-1.173 x=strmid(site, 0, n1)174 x=float(x)*ns175 endif else begin176 n1=strpos(site, 'n')177 x=strmid(site, 0, n1)178 ny=1.179 x=float(x)*ny180 endelse181 return, float(x)182 end183 184 function y_site_location, site185 n1=strpos(site, 'e')186 if (n1 gt -1) then begin187 n=strpos(site, 's')188 if (n gt -1) then begin189 y=strmid(site, n+1, n1-n-1)190 endif else begin191 n=strpos(site, 'n')192 y=strmid(site, n+1, n1-n-1)193 endelse194 195 endif else begin196 n1=strpos(site, 'w')197 n=strpos(site, 's')198 if (n gt -1) then begin199 y=strmid(site, n+1, n1-n-1)200 y=180+(180-float(y))201 endif else begin202 n=strpos(site, 'n')203 y=strmid(site, n+1, n1-n-1)204 y=180+(180-float(y))205 endelse206 endelse207 return,float(y)208 end -
trunk/src/paper01/fig16/fig16_timeseries_nino3.pro
r43 r46 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph fig16_timeseries_nino3 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; tropflux_sst [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_sst_19890101_20091231.nc"]; 18 ; 19 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/WHOTS_validation_net_2004_2007_all_v10.ps"]; 20 ; 21 ; fig16_timeseries_nino3 [shape=box, 22 ; fontname=Courier, 23 ; color=blue, 24 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig16/fig16_timeseries_nino3.pro", 25 ; label="${TROPFLUX}/src/paper01/fig16/fig16_timeseries_nino3.pro"]; 26 ; 27 ; {tropflux_sst} -> {fig16_timeseries_nino3} -> {figure} 28 ; } 29 ; 11 30 ; SEE ALSO 12 31 ; ======== 13 32 ; 14 33 ; :ref:`tropflux_profile.sh` 34 ; :ref:`tropflux_init.pro` 35 ; :ref:`cm_tropflux.pro` 36 ; 37 ; :func:`x_site_location` 38 ; :func:`y_site_location` 15 39 ; 16 40 ; EXAMPLES … … 22 46 ; IDL> fig16_timeseries_nino3 23 47 ; 48 ; TODO 49 ; ==== 50 ; 51 ; make it work on cratos : missing data 52 ; 53 ; coding rules 54 ; 55 ; get rid of spwan 56 ; 57 ; complete description 58 ; 59 ; handle IO error 60 ; 24 61 ; EVOLUTIONS 25 62 ; ========== … … 27 64 ; $Id$ 28 65 ; 66 ; - fplod 20110420T123110Z aedon.locean-ipsl.upmc.fr (Darwin) 67 ; 68 ; * remove hard coding path 69 ; * add graphviz 70 ; * externalize functions 71 ; 29 72 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 30 73 ; … … 33 76 ;- 34 77 pro fig16_timeseries_nino3 35 @c ommon36 78 @cm_general 79 @cm_tropflux 37 80 reinitplt, /z,/invert 38 81 key_portrait = 1 … … 42 85 box=[240,330,-5,5] 43 86 44 file_trop= '/Users/pkb/data/TropFlux/TropFlux_sst_19890101_20091231.nc'87 file_trop=tropflux_id_env+'TropFlux_sst_19890101_20091231.nc' 45 88 initncdf, file_trop 46 89 sst=read_ncdf("sst", date1, date2, box=box, file=file_trop,/nostr) … … 157 200 158 201 closeps 159 fig='fig16_timeseries_nino3.ps' 160 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 161 spawn, 'gv '+cpsdir+fig 162 return 202 fig=tropflux_od_env+'fig16_timeseries_nino3.ps' 203 spawn, 'mv '+psdir+'idl.ps '+fig 204 spawn, 'gv '+fig 163 205 end 164 function x_site_location, site165 n1=strpos(site, 's')166 if (n1 gt -1) then begin167 ns=-1.168 x=strmid(site, 0, n1)169 x=float(x)*ns170 endif else begin171 n1=strpos(site, 'n')172 x=strmid(site, 0, n1)173 ny=1.174 x=float(x)*ny175 endelse176 return, float(x)177 end178 function y_site_location, site179 n1=strpos(site, 'e')180 if (n1 gt -1) then begin181 n=strpos(site, 's')182 if (n gt -1) then begin183 y=strmid(site, n+1, n1-n-1)184 endif else begin185 n=strpos(site, 'n')186 y=strmid(site, n+1, n1-n-1)187 endelse188 189 endif else begin190 n1=strpos(site, 'w')191 n=strpos(site, 's')192 if (n gt -1) then begin193 y=strmid(site, n+1, n1-n-1)194 y=180+(180-float(y))195 endif else begin196 n=strpos(site, 'n')197 y=strmid(site, n+1, n1-n-1)198 y=180+(180-float(y))199 endelse200 endelse201 return,float(y)202 end -
trunk/src/paper01/fig2/fig2_timeline_diagram.pro
r44 r46 55 55 ; 56 56 ; make it work on cratos :: 57 ; % Error: 57 ; % Error: 58 58 ; % the vector size (7670) is incompatible 59 ; % with the domain dimensions 59 ; % with the domain dimensions 60 60 ; % [jpi/nx, jpj/ny, jpk/nz, jpt] = [1/1, 1/1, 1/1, 1] 61 61 ; … … 149 149 150 150 nn=n_elements(sitelist) 151 date1=date1152 date2=date2153 151 154 152 for n=0, nn-1 do begin -
trunk/src/paper01/fig2/read_lw.pro
r44 r46 77 77 @cm_tropflux 78 78 79 dir='/Users/pkb/data/TPR/'80 ;81 79 ;; DEFINE THE OUTPUT TIME AXIS 82 80 ; -
trunk/src/paper01/fig2/read_sw.pro
r44 r46 53 53 ; ==== 54 54 ; 55 ; make it work with a file 55 ; make it work with a file 56 56 ; 57 57 ; … … 106 106 sw_q(tt0(ind))=sw_q0(ind) 107 107 endif 108 endif else begin 108 endif else begin 109 109 print, fi, ' not found' 110 110 endelse -
trunk/src/paper01/fig2/time_lec.pro
r44 r46 1 1 ;+ 2 ; 2 ; 3 3 ; ============ 4 4 ; time_lec.pro 5 5 ; ============ 6 ; 6 ; 7 7 ; .. function:: time_lec(fi) 8 8 ; 9 ; :param fi: file 9 ; :param fi: file 10 10 ; 11 11 ; EXAMPLES -
trunk/src/paper01/fig2/x_site_location.pro
r44 r46 10 10 ; =========== 11 11 ; 12 ; :param site: ++ 12 ; :param site: ++ 13 ; 13 14 ; EXAMPLES 14 15 ; ======== 15 16 ; 16 17 ; :: 17 ; 18 ; 18 19 ; IDL> site=++ 19 20 ; IDL> result=x_site_location(site) … … 22 23 ; ======== 23 24 ; 25 ; :func:`y_site_location` 26 ; 27 ; :ref:`fig1_no_obs_map.pro` 28 ; :ref:`net_flux_validation_scatter_2000_2007.pro` 29 ; :ref:`fig16_timeseries_nino3.pro` 24 30 ; :ref:`fig2_timeline_diagram.pro` 31 ; :ref:`air_validation_scatter_2000_2009_v50.pro` 32 ; :ref:`q2m_validation_scatter_2000_2009_v50.pro` 33 ; :ref:`sst_validation_scatter_2000_2009_v50.pro` 34 ; :ref:`ws_validation_scatter_2000_2009_v50.pro` 35 ; :ref:`air_validation_scatter_2000_2009_basin.pro` 36 ; :ref:`q2m_validation_scatter_2000_2009_basin.pro` 37 ; :ref:`sst_validation_scatter_2000_2009_basin.pro` 38 ; :ref:`ws_validation_scatter_2000_2009_basin.pro` 39 ; :ref:`lhf_validation_scatter_2000_2009.pro` 40 ; :ref:`shf_validation_scatter_2000_2009.pro` 41 ; :ref:`lwr_validation_scatter_2000_2007.pro` 42 ; :ref:`swr_validation_scatter_2000_2007.pro` 25 43 ; 26 44 ; TODO … … 28 46 ; 29 47 ; coding rules 30 ; 48 ; 31 49 ; EVOLUTIONS 32 50 ; ========== … … 35 53 ; 36 54 ; - fplod 20110412T083358Z aedon.locean-ipsl.upmc.fr (Darwin) 37 ; 55 ; 38 56 ; * creation from fig2_timeline_diagram.pro 39 57 ; -
trunk/src/paper01/fig2/y_site_location.pro
r44 r46 10 10 ; =========== 11 11 ; 12 ; 12 ; :param site: ++ 13 13 ; 14 14 ; EXAMPLES … … 16 16 ; 17 17 ; :: 18 ; 18 ; 19 19 ; IDL> site=++ 20 20 ; IDL> result=y_site_location(site) … … 23 23 ; ======== 24 24 ; 25 ; :func:`x_site_location` 26 ; 27 ; :ref:`fig1_no_obs_map.pro` 28 ; :ref:`net_flux_validation_scatter_2000_2007.pro` 29 ; :ref:`fig16_timeseries_nino3.pro` 25 30 ; :ref:`fig2_timeline_diagram.pro` 31 ; :ref:`air_validation_scatter_2000_2009_v50.pro` 32 ; :ref:`q2m_validation_scatter_2000_2009_v50.pro` 33 ; :ref:`sst_validation_scatter_2000_2009_v50.pro` 34 ; :ref:`ws_validation_scatter_2000_2009_v50.pro` 35 ; :ref:`air_validation_scatter_2000_2009_basin.pro` 36 ; :ref:`q2m_validation_scatter_2000_2009_basin.pro` 37 ; :ref:`sst_validation_scatter_2000_2009_basin.pro` 38 ; :ref:`ws_validation_scatter_2000_2009_basin.pro` 39 ; :ref:`lhf_validation_scatter_2000_2009.pro` 40 ; :ref:`shf_validation_scatter_2000_2009.pro` 41 ; :ref:`lwr_validation_scatter_2000_2007.pro` 42 ; :ref:`swr_validation_scatter_2000_2007.pro` 26 43 ; 27 44 ; TODO … … 29 46 ; 30 47 ; coding rules 31 ; 48 ; 32 49 ; EVOLUTIONS 33 50 ; ========== … … 36 53 ; 37 54 ; - fplod 20110412T083358Z aedon.locean-ipsl.upmc.fr (Darwin) 38 ; 55 ; 39 56 ; * creation from fig2_timeline_diagram.pro 40 57 ; -
trunk/src/paper01/fig3/air_validation_scatter_2000_2009_v50.pro
r44 r46 19 19 ; air_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/air_2000_2009_erai_v50.txt"]; 20 20 ; 21 ; air_trop [shape=ellipse,fontname=Courier,label="${TROPFLUX_ ID}/air_2000_2009_trop_v50.txt"];22 ; air_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_ ID}/air_2000_2009_oaflx_v50.txt"];21 ; air_trop [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/air_2000_2009_trop_v50.txt"]; 22 ; air_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/air_2000_2009_oaflx_v50.txt"]; 23 23 ; air_ncep [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/air_2000_2009_ncep_v50.txt"]; 24 ; air_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ ID}/air_2000_2009_ncep1_v50.txt"];25 ; air_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ ID}/air_2000_2009_ncep2_v50.txt"];24 ; air_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/air_2000_2009_ncep1_v50.txt"]; 25 ; air_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/air_2000_2009_ncep2_v50.txt"]; 26 26 ; air_ncep2_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/air_2m_ncep2_oafluxgrid_19890101_20091231.nc"]; 27 27 ; … … 32 32 ; 33 33 ; tropflux_t2m [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_t2m_19890101_20091231_v50.nc"]; 34 ; 34 ; 35 35 ; oaflux_basic [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/OAFlux_basic_variables_1985_2009.nc"]; 36 36 ; … … 41 41 ; label="${TROPFLUX}/src/paper01/fig3/air_validation_scatter_2000_2009_v50.pro"]; 42 42 ; 43 ; {air_erai air_ trop air_oaflux air_ncep air_ncep1 air_ncep2 erai_t2m tropflux_t2m oaflux_basic air_ncep2_oafluxgrid t2m_ncep1} -> {air_validation_scatter_2000_2009_v50} -> {figure}43 ; {air_erai air_ncep erai_t2m tropflux_t2m oaflux_basic air_ncep2_oafluxgrid t2m_ncep1} -> {air_validation_scatter_2000_2009_v50} -> { air_trop air_oaflux air_ncep1 air_ncep2 figure} 44 44 ; 45 45 ; } … … 49 49 ; 50 50 ; :ref:`tropflux_profile.sh` 51 ; :ref:`tropflux_init.pro` 52 ; :ref:`cm_tropflux.pro` 53 ; 54 ; :func:`x_site_location` 55 ; :func:`y_site_location` 51 56 ; 52 57 ; :ref:`read_variables_v2.pro` 58 ; :ref:`statistics_3var_v1.pro` 53 59 ; 54 60 ; EXAMPLES … … 102 108 103 109 openps, FILENAME = 'idl.ps' 104 ;; Before running this program, you have to compile the following subrutines105 ;; 1. .r read_era_total106 ;; 2. .r read_variables_v2107 ;; 3. .r read_era_box108 110 109 111 ;; Give the location of mooring for validation of basic meteorological variables … … 152 154 help, unc 153 155 154 ;file='/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_t2m_19890101_20091231_v3.nc'155 156 file=tropflux_id_env+'TropFlux_t2m_19890101_20091231_v50.nc' 156 157 initncdf, file … … 176 177 177 178 nn=n_elements(sitelist) 178 date1=date1179 date2=date2180 179 for n=0, nn-1 do begin 181 180 -
trunk/src/paper01/fig3/q2m_validation_scatter_2000_2009_v50.pro
r44 r46 19 19 ; q2m_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/q2m_2000_2009_erai_v50.txt"]; 20 20 ; 21 ; q2m_trop [shape=ellipse,fontname=Courier,label="${TROPFLUX_ ID}/q2m_2000_2009_trop_v50.txt"];22 ; q2m_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_ ID}/q2m_2000_2009_oaflx_v50.txt"];23 ; q2m_ncep [shape=ellipse,fontname=Courier,label="${TROPFLUX_ ID}/q2m_2000_2009_ncep_v50.txt"];24 ; q2m_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ ID}/q2m_2000_2009_ncep1_v50.txt"];21 ; q2m_trop [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/q2m_2000_2009_trop_v50.txt"]; 22 ; q2m_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/q2m_2000_2009_oaflx_v50.txt"]; 23 ; q2m_ncep [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/q2m_2000_2009_ncep_v50.txt"]; 24 ; q2m_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/q2m_2000_2009_ncep1_v50.txt"]; 25 25 ; 26 26 ; erai_q2m_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_t2m_19890101_20091231_oafluxgrid.nc"]; … … 40 40 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/q2m_validation_scatter_2000_2009_v50.ps"]; 41 41 ; 42 ; {q2m_erai q2m_trop q2m_oaflux q2m_ncep q2m_ncep1 erai_q2m_oafluxgrid tropflux_q2m oaflux_basic sphum_ncep2_oafluxgrid} -> {q2m_validation_scatter_2000_2009_v50} -> {figure}42 ; {q2m_erai erai_q2m_oafluxgrid tropflux_q2m oaflux_basic sphum_ncep2_oafluxgrid} -> {q2m_validation_scatter_2000_2009_v50} -> {q2m_trop q2m_oaflux q2m_ncep q2m_ncep1 figure} 43 43 ; 44 44 ; } … … 48 48 ; 49 49 ; :ref:`tropflux_profile.sh` 50 ; :ref:`tropflux_init.pro` 51 ; :ref:`cm_tropflux.pro` 52 ; 53 ; :func:`x_site_location` 54 ; :func:`y_site_location` 55 ; 56 ; :ref:`read_variables_v2.pro` 57 ; :ref:`statistics_3var_v1.pro` 50 58 ; 51 59 ; EXAMPLES … … 99 107 100 108 openps, FILENAME = 'idl.ps' 101 ;; Before running this program, you have to compile the following subrutines102 ;; 1. .r read_era_total103 ;; 2. .r read_variables_v2104 ;; 3. .r read_era_box105 109 106 110 ;; Give the location of mooring for validation of basic meteorological variables … … 165 169 help, nce 166 170 167 file= '/Volumes/Iomega_HDD/flux_reconstruction/ncep/q2m_ncep1_19890101_20091231.nc'171 file=tropflux_id_env+''q2m_ncep1_19890101_20091231.nc' 168 172 initncdf, file 169 173 nce1=read_ncdf("q2m", date1, date2, file=file,/nostr) … … 172 176 173 177 nn=n_elements(sitelist) 174 date1=date1175 date2=date2176 178 for n=0, nn-1 do begin 177 179 … … 241 243 close,/all 242 244 243 fi_q2m_erai= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_erai_v50.txt'245 fi_q2m_erai=tropflux_id_env+'q2m_2000_2009_erai_v50.txt' 244 246 res=read_ascii(fi_q2m_erai,data_start=1) 245 247 ff=res.field1 … … 267 269 oplot, mean_tao, yfit, color=250, thick=2 268 270 269 fi_q2m_trop= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_trop_v50.txt'271 fi_q2m_trop=tropflux_id_env+'q2m_2000_2009_trop_v50.txt' 270 272 res=read_ascii(fi_q2m_trop,data_start=1) 271 273 ff=res.field1 … … 294 296 oplot, mean_tao, yfit, color=250, thick=2 295 297 296 fi_q2m_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_oaflx_v50.txt'298 fi_q2m_oaflx=tropflux_id_env+'q2m_2000_2009_oaflx_v50.txt' 297 299 res=read_ascii(fi_q2m_oaflx,data_start=1) 298 300 ff=res.field1 … … 322 324 323 325 324 fi_q2m_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_ncep_v50.txt'326 fi_q2m_ncep=tropflux_id_env+'q2m_2000_2009_ncep_v50.txt' 325 327 res=read_ascii(fi_q2m_ncep,data_start=1) 326 328 ff=res.field1 … … 349 351 oplot, mean_tao, yfit, color=250, thick=2 350 352 351 fi_q2m_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_ncep1_v50.txt'353 fi_q2m_ncep1=tropflux_id_env+'q2m_2000_2009_ncep1_v50.txt' 352 354 res=read_ascii(fi_q2m_ncep1,data_start=1) 353 355 ff=res.field1 -
trunk/src/paper01/fig3/read_variables_v2.pro
r44 r46 48 48 ; :ref:`sst_validation_scatter_2000_2009_v50.pro` 49 49 ; :ref:`ws_validation_scatter_2000_2009_v50.pro` 50 ; :ref:`air_validation_scatter_2000_2009_basin.pro` 51 ; :ref:`q2m_validation_scatter_2000_2009_basin.pro` 52 ; :ref:`sst_validation_scatter_2000_2009_basin.pro` 53 ; :ref:`ws_validation_scatter_2000_2009_basin.pro` 54 ; :ref:`lhf_validation_scatter_2000_2009.pro` 55 ; :ref:`shf_validation_scatter_2000_2009.pro` 50 56 ; 51 57 ; EXAMPLES … … 61 67 ; TODO 62 68 ; ==== 63 ; 69 ; 64 70 ; externalize function 65 71 ; -
trunk/src/paper01/fig3/sst_validation_scatter_2000_2009_v50.pro
r44 r46 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph sst_validation_scatter_2000_2009_v50 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; 18 ; sst_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/sst_2000_2009_erai_v50.txt"]; 19 ; sst_tropflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/sst_2000_2009_trop_v50.txt"]; 20 ; sst_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/sst_2000_2009_oaflx_v50.txt"]; 21 ; sst_tmi [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/sst_2000_2009_tmi_v50.txt"]; 22 ; sst_ncep [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/sst_2000_2009_ncep_v50.txt"]; 23 ; sst_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/sst_2000_2009_ncep1_v50.txt"]; 24 ; sst_erai_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_sst_19890101_20091231_oafluxgrid.nc"]; 25 ; sst_tropflux_2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_sst_19890101_20091231_v20.nc"]; 26 ; oaflux_basic [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/OAFlux_basic_variables_1985_2009.nc"]; 27 ; sst_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/sst_NCEP2_global_monthly_1989_2009.nc"]; 28 ; sst_tmi_2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/tmi_OI_oafluxgrid_30N30S.nc"]; 29 ; sst_ncep1_2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/sst_ncep1_19890101_20091231.nc"]; 30 ; 31 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/WHOTS_validation_net_2004_2007_all_v10.ps"]; 32 ; 33 ; sst_validation_scatter_2000_2009_v50 [shape=box, 34 ; fontname=Courier, 35 ; color=blue, 36 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig3/sst_validation_scatter_2000_2009_v50.pro", 37 ; label="${TROPFLUX}/src/paper01/fig3/sst_validation_scatter_2000_2009_v50.pro"]; 38 ; 39 ; {sst_erai sst_erai_oafluxgrid sst_tropflux_2 oaflux_basic sst_ncep2 sst_tmi_2 sst_ncep1_2} -> {sst_validation_scatter_2000_2009_v50} -> {sst_tropflux sst_oaflux sst_tmi sst_ncep sst_ncep figure} 40 ; } 41 ; 11 42 ; SEE ALSO 12 43 ; ======== 13 44 ; 14 45 ; :ref:`tropflux_profile.sh` 46 ; :ref:`tropflux_init.pro` 47 ; :ref:`cm_tropflux.pro` 48 ; 49 ; :func:`x_site_location` 50 ; :func:`y_site_location` 51 ; 52 ; :ref:`read_variables_v2.pro` 53 ; :ref:`statistics_3var_v1.pro` 15 54 ; 16 55 ; EXAMPLES … … 20 59 ; 21 60 ; IDL> @tropflux_init 22 ; IDL> date1= ++23 ; IDL> date2= ++61 ; IDL> date1=19890101L 62 ; IDL> date2=20091231L 24 63 ; IDL> sst_validation_scatter_2000_2009_v50, date1, date2 64 ; 65 ; TODO 66 ; ==== 67 ; 68 ; ++ plus de licences sur cratos 69 ; 70 ; ++ mooring data in graphviz 71 ; 72 ; coding rules 73 ; 74 ; get rid of spwan 75 ; 76 ; complete description 77 ; 78 ; handle IO error 25 79 ; 26 80 ; EVOLUTIONS … … 29 83 ; $Id$ 30 84 ; 85 ; - fplod 20110420T131533Z aedon.locean-ipsl.upmc.fr (Darwin) 86 ; 87 ; * remove hard coding path 88 ; * add graphviz 89 ; * externalize functions 90 ; 31 91 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 32 92 ; … … 35 95 ;- 36 96 pro sst_validation_scatter_2000_2009_v50, date1, date2 37 @c ommon38 97 @cm_general 98 @cm_tropflux 39 99 reinitplt, /z,/invert 40 100 key_portrait = 1 41 101 42 102 openps, FILENAME = 'idl.ps' 43 ;; Before running this program, you have to compile the following subrutines44 ;; 1. .r read_era_total45 ;; 2. .r read_variables_v246 ;; 3. .r read_era_box47 103 48 104 ;; Give the location of mooring for validation of basic meteorological variables … … 66 122 close,/all 67 123 68 fi_sst_erai= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_erai_v50.txt'124 fi_sst_erai=tropflux_id_env+'sst_2000_2009_erai_v50.txt' 69 125 openw,1,fi_sst_erai 70 fi_sst_trop= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_trop_v50.txt'126 fi_sst_trop=tropflux_id_env+'sst_2000_2009_trop_v50.txt' 71 127 openw,2,fi_sst_trop 72 fi_sst_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_oaflx_v50.txt'128 fi_sst_oaflx=tropflux_id_env+'sst_2000_2009_oaflx_v50.txt' 73 129 openw,3,fi_sst_oaflx 74 fi_sst_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_ncep_v50.txt'130 fi_sst_ncep=tropflux_id_env+'sst_2000_2009_ncep_v50.txt' 75 131 openw,4,fi_sst_ncep 76 fi_sst_tmi= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_tmi_v50.txt'132 fi_sst_tmi=tropflux_id_env+'sst_2000_2009_tmi_v50.txt' 77 133 openw,5,fi_sst_tmi 78 fi_sst_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_ncep1_v50.txt'134 fi_sst_ncep1=tropflux_id_env+'sst_2000_2009_ncep1_v50.txt' 79 135 openw,6,fi_sst_ncep1 80 136 … … 90 146 ;; first reading the whole ERAI uncorrected and corrected data 91 147 92 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_sst_19890101_20091231_oafluxgrid.nc'148 file=tropflux_id_env+'erai_sst_19890101_20091231_oafluxgrid.nc' 93 149 initncdf, file 94 150 unc=read_ncdf('sst',date1,date2,file=file,/nostr) & unc=unc-273.15 95 151 help, unc 96 152 97 file= '/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_sst_19890101_20091231_v20.nc'153 file=tropflux_id_env+'TropFlux_sst_19890101_20091231_v20.nc' 98 154 initncdf, file 99 155 cor=read_ncdf('sst',date1,date2,file=file,/nostr) & cor=cor-273.15 100 156 help, cor 101 157 102 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/OAFlux_basic_variables_1985_2009.nc'158 file=tropflux_id_env+'OAFlux_basic_variables_1985_2009.nc' 103 159 initncdf, file 104 160 oaf=read_ncdf("sst", date1, date2, file=file,/nostr) 105 161 help, oaf 106 162 107 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/sst_ncep2_oafluxgrid_19890101_20091231.nc'163 fi=tropflux_id_env+'sst_ncep2_oafluxgrid_19890101_20091231.nc' 108 164 initncdf, fi 109 165 nce=read_ncdf("sst", date1-1, date2, file=fi,/nostr) … … 111 167 help, nce 112 168 113 fi= '/Volumes/Iomega_HDD/work/flux_reconstruction/gridded_data/tmi_OI_oafluxgrid_30N30S.nc'169 fi=tropflux_id_env+'tmi_OI_oafluxgrid_30N30S.nc' 114 170 initncdf, fi 115 171 sst_tmi=read_ncdf("sst", date1, date2, file=fi,/nostr) 116 172 help, sst_tmi 117 173 118 file= '/Volumes/Iomega_HDD/flux_reconstruction/ncep/sst_ncep1_19890101_20091231.nc'174 file=tropflux_id_env+'sst_ncep1_19890101_20091231.nc' 119 175 initncdf, file 120 176 nce1=read_ncdf("sst", date1, date2, file=file,/nostr) … … 123 179 124 180 nn=n_elements(sitelist) 125 date1=date1126 date2=date2127 181 for n=0, nn-1 do begin 128 182 … … 196 250 close,/all 197 251 198 fi_sst_erai= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_v50_erai.txt'252 fi_sst_erai=tropflux_id_env+'sst_2000_2009_v50_erai.txt' 199 253 res=read_ascii(fi_sst_erai,data_start=1) 200 254 ff=res.field1 … … 222 276 oplot, mean_tao, yfit, color=250, thick=2 223 277 224 fi_sst_trop= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_v50_trop.txt'278 fi_sst_trop=tropflux_id_env+'sst_2000_2009_v50_trop.txt' 225 279 res=read_ascii(fi_sst_trop,data_start=1) 226 280 ff=res.field1 … … 249 303 oplot, mean_tao, yfit, color=250, thick=2 250 304 251 fi_sst_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_v50_oaflx.txt'305 fi_sst_oaflx=tropflux_id_env+'sst_2000_2009_v50_oaflx.txt' 252 306 res=read_ascii(fi_sst_oaflx,data_start=1) 253 307 ff=res.field1 … … 278 332 279 333 280 fi_sst_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_v50_ncep.txt'334 fi_sst_ncep=tropflux_id_env+'sst_2000_2009_v50_ncep.txt' 281 335 res=read_ascii(fi_sst_ncep,data_start=1) 282 336 ff=res.field1 … … 306 360 307 361 308 fi_sst_tmi= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_v50_tmi.txt'362 fi_sst_tmi=tropflux_id_env+'sst_2000_2009_v50_tmi.txt' 309 363 res=read_ascii(fi_sst_tmi,data_start=1) 310 364 ff=res.field1 … … 333 387 oplot, mean_tao, yfit, color=250, thick=2 334 388 335 fi_sst_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_v50_ncep1.txt'389 fi_sst_ncep1=tropflux_id_env+'sst_2000_2009_v50_ncep1.txt' 336 390 res=read_ascii(fi_sst_ncep1,data_start=1) 337 391 ff=res.field1 … … 365 419 spawn, 'mv '+psdir+'idl.ps '+fig 366 420 spawn, 'gv '+fig 367 return368 421 end 369 function x_site_location, site370 n1=strpos(site, 's')371 if (n1 gt -1) then begin372 ns=-1.373 x=strmid(site, 0, n1)374 x=float(x)*ns375 endif else begin376 n1=strpos(site, 'n')377 x=strmid(site, 0, n1)378 ny=1.379 x=float(x)*ny380 endelse381 return, float(x)382 end383 function y_site_location, site384 n1=strpos(site, 'e')385 if (n1 gt -1) then begin386 n=strpos(site, 's')387 if (n gt -1) then begin388 y=strmid(site, n+1, n1-n-1)389 endif else begin390 n=strpos(site, 'n')391 y=strmid(site, n+1, n1-n-1)392 endelse393 394 endif else begin395 n1=strpos(site, 'w')396 n=strpos(site, 's')397 if (n gt -1) then begin398 y=strmid(site, n+1, n1-n-1)399 y=180+(180-float(y))400 endif else begin401 n=strpos(site, 'n')402 y=strmid(site, n+1, n1-n-1)403 y=180+(180-float(y))404 endelse405 endelse406 return,float(y)407 end -
trunk/src/paper01/fig3/statistics_3var_v1.pro
r44 r46 13 13 ; 14 14 ; :ref:`tropflux_profile.sh` 15 ; 16 ; :ref:`net_flux_validation_scatter_2000_2007.pro` 17 ; :ref:`air_validation_scatter_2000_2009_v50.pro` 18 ; :ref:`q2m_validation_scatter_2000_2009_v50.pro` 19 ; :ref:`sst_validation_scatter_2000_2009_v50.pro` 20 ; :ref:`ws_validation_scatter_2000_2009_v50.pro` 21 ; :ref:`air_validation_scatter_2000_2009_basin.pro` 22 ; :ref:`q2m_validation_scatter_2000_2009_basin.pro` 23 ; :ref:`sst_validation_scatter_2000_2009_basin.pro` 24 ; :ref:`ws_validation_scatter_2000_2009_basin.pro` 25 ; :ref:`lhf_validation_scatter_2000_2009.pro` 26 ; :ref:`shf_validation_scatter_2000_2009.pro` 27 ; :ref:`lwr_validation_scatter_2000_2007.pro` 28 ; :ref:`swr_validation_scatter_2000_2007.pro` 15 29 ; 16 30 ; EXAMPLES … … 34 48 ; 35 49 ;- 36 37 38 50 pro statistics_3var_v1, tao,var1,var2, $ 39 51 cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 40 52 41 42 @common 53 @cm_tropflux 43 54 x=tao & y=var1 & z=var2 44 55 -
trunk/src/paper01/fig3/ws_validation_scatter_2000_2009_v50.pro
r44 r46 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph ws_validation_scatter_2000_2009_v50 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; 18 ; ws_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ws_2000_2009_erai_v50.txt"]; 19 ; ws_tropflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/ws_2000_2009_trop_v50.txt"]; 20 ; ws_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/ws_2000_2009_oaflx_v50.txt"]; 21 ; ws_ncep [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/ws_2000_2009_ncep_v50.txt"]; 22 ; ws_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/ws_2000_2009_ncep1_v50.txt"]; 23 ; ws_erai_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_ws_19890101_20091231_oafluxgrid.nc"]; 24 ; ws_tropflux_2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_ws_19890101_20091231_v20.nc"]; 25 ; oaflux_basic [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/OAFlux_basic_variables_1985_2009.nc"]; 26 ; uwind_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/uwind_ncep2_oafluxgrid_19890101_20091231.nc"]; 27 ; vwind_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/bwind_ncep2_oafluxgrid_19890101_20091231.nc"]; 28 ; ws_tmi [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/zonal_wind_speed_oafluxgrid_30N30S.nc"]; 29 ; 30 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/ws_validation_scatter_2000_2009_v50.ps"]; 31 ; 32 ; ws_validation_scatter_2000_2009_v50 [shape=box, 33 ; fontname=Courier, 34 ; color=blue, 35 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig3/ws_validation_scatter_2000_2009_v50.pro", 36 ; label="${TROPFLUX}/src/paper01/fig3/ws_validation_scatter_2000_2009_v50.pro"]; 37 ; 38 ; {ws_erai ws_erai_oafluxgrid ws_tropflux_2 oaflux_basic ws_ncep2 ws_tmi_2 ws_ncep1_2} -> {ws_validation_scatter_2000_2009_v50} -> {ws_tropflux ws_oaflux ws_tmi ws_ncep ws_ncep1 figure} 39 ; } 40 ; 11 41 ; SEE ALSO 12 42 ; ======== 13 43 ; 14 44 ; :ref:`tropflux_profile.sh` 45 ; :ref:`tropflux_init.pro` 46 ; :ref:`cm_tropflux.pro` 47 ; 48 ; :func:`x_site_location` 49 ; :func:`y_site_location` 50 ; 51 ; :ref:`read_variables_v2.pro` 52 ; :ref:`statistics_3var_v1.pro` 15 53 ; 16 54 ; EXAMPLES … … 20 58 ; 21 59 ; IDL> @tropflux_init 22 ; IDL> date1= ++23 ; IDL> date2= ++60 ; IDL> date1=19890101L 61 ; IDL> date2=20091231L 24 62 ; IDL> ws_validation_scatter_2000_2009_v50, date1, date2 63 ; 64 ; TODO 65 ; ==== 66 ; 67 ; ++ plus de licences sur cratos 68 ; 69 ; ++ mooring data in graphviz 70 ; 71 ; coding rules 72 ; 73 ; get rid of spwan 74 ; 75 ; complete description 76 ; 77 ; handle IO error 25 78 ; 26 79 ; … … 30 83 ; $Id$ 31 84 ; 85 ; - fplod 20110420T132401Z aedon.locean-ipsl.upmc.fr (Darwin) 86 ; 87 ; * remove hard coding path 88 ; * add graphviz 89 ; * externalize functions 90 ; 32 91 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 33 92 ; … … 35 94 ; 36 95 ;- 37 pro ws_validation_scatter_2000_2009_v50, date1,date238 @c ommon39 96 pro ws_validation_scatter_2000_2009_v50, date1, date2 97 @cm_general 98 @cm_tropflux 40 99 reinitplt, /z,/invert 41 100 key_portrait = 1 42 101 43 102 openps, FILENAME = 'idl.ps' 44 ;; Before running this program, you have to compile the following subrutines45 ;; 1. .r read_era_total46 ;; 2. .r read_variables_v247 ;; 3. .r read_era_box48 103 49 104 ;; Give the location of mooring for validation of basic meteorological variables … … 68 123 close,/all 69 124 70 fi_ws_erai= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_erai_v50.txt'125 fi_ws_erai=tropflux_id_env+'ws_2000_2009_erai_v50.txt' 71 126 openw,1,fi_ws_erai 72 fi_ws_trop= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_trop_v50.txt'127 fi_ws_trop=tropflux_id_env+'ws_2000_2009_trop_v50.txt' 73 128 openw,2,fi_ws_trop 74 fi_ws_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_oaflx_v50.txt'129 fi_ws_oaflx=tropflux_id_env+'ws_2000_2009_oaflx_v50.txt' 75 130 openw,3,fi_ws_oaflx 76 fi_ws_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_ncep_v50.txt'131 fi_ws_ncep=tropflux_id_env+'ws_2000_2009_ncep_v50.txt' 77 132 openw,4,fi_ws_ncep 78 fi_ws_tmi= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_tmi_v50.txt'133 fi_ws_tmi=tropflux_id_env+'ws_2000_2009_tmi_v50.txt' 79 134 openw,5,fi_ws_tmi 80 fi_ws_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_ncep1_v50.txt'135 fi_ws_ncep1=tropflux_id_env+'ws_2000_2009_ncep1_v50.txt' 81 136 openw,6,fi_ws_ncep1 82 137 … … 91 146 ;; first reading the whole ERAI uncorrected and corrected data 92 147 93 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_ws_19890101_20091231_oafluxgrid.nc'148 file=tropflux_id_env+'erai_ws_19890101_20091231_oafluxgrid.nc' 94 149 initncdf, file 95 150 u=read_ncdf('u10',date1,date2,file=file,/nostr) … … 98 153 help, unc 99 154 100 file= '/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_ws_19890101_20091231_v20.nc'155 file=tropflux_id_env+'TropFlux_ws_19890101_20091231_v20.nc' 101 156 initncdf, file 102 157 cor=read_ncdf('ws',date1,date2,file=file,/nostr) 103 158 help, cor 104 159 105 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/OAFlux_basic_variables_1985_2009.nc'160 file=tropflux_id_env+'OAFlux_basic_variables_1985_2009.nc' 106 161 initncdf, file 107 162 oaf=read_ncdf("wind", date1, date2, file=file,/nostr) 108 163 help, oaf 109 164 110 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/uwind_ncep2_oafluxgrid_19890101_20091231.nc'165 fi=tropflux_id_env+'uwind_ncep2_oafluxgrid_19890101_20091231.nc' 111 166 initncdf, fi 112 167 u=read_ncdf("u", date1-1, date2, file=fi,/nostr) 113 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/vwind_ncep2_oafluxgrid_19890101_20091231.nc'168 fi=tropflux_id_env+'vwind_ncep2_oafluxgrid_19890101_20091231.nc' 114 169 initncdf, fi 115 170 v=read_ncdf("v", date1-1, date2, file=fi,/nostr) … … 126 181 help, ws_tmi 127 182 128 file= '/Volumes/Iomega_HDD/flux_reconstruction/ncep/wind_ncep1_19890101_20091231.nc'183 file=tropflux_id_env+'wind_ncep1_19890101_20091231.nc' 129 184 initncdf, file 130 185 u=read_ncdf("u", date1, date2, file=file,/nostr) … … 134 189 135 190 nn=n_elements(sitelist) 136 date1=date1137 date2=date2138 191 for n=0, nn-1 do begin 139 192 … … 201 254 endfor 202 255 close,/all 203 fi_ws_erai= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_erai_v50.txt'256 fi_ws_erai=tropflux_id_env+'ws_2000_2009_erai_v50.txt' 204 257 res=read_ascii(fi_ws_erai,data_start=1) 205 258 ff=res.field1 … … 227 280 oplot, mean_tao, yfit, color=250, thick=2 228 281 229 fi_ws_trop= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_trop_v50.txt'282 fi_ws_trop=tropflux_id_env+'ws_2000_2009_trop_v50.txt' 230 283 res=read_ascii(fi_ws_trop,data_start=1) 231 284 ff=res.field1 … … 254 307 oplot, mean_tao, yfit, color=250, thick=2 255 308 256 fi_ws_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_oaflx_v50.txt'309 fi_ws_oaflx=tropflux_id_env+'ws_2000_2009_oaflx_v50.txt' 257 310 res=read_ascii(fi_ws_oaflx,data_start=1) 258 311 ff=res.field1 … … 283 336 284 337 285 fi_ws_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_ncep_v50.txt'338 fi_ws_ncep=tropflux_id_env+'ws_2000_2009_ncep_v50.txt' 286 339 res=read_ascii(fi_ws_ncep,data_start=1) 287 340 ff=res.field1 … … 310 363 oplot, mean_tao, yfit, color=250, thick=2 311 364 312 fi_ws_tmi= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_tmi_v50.txt'365 fi_ws_tmi=tropflux_id_env+'ws_2000_2009_tmi_v50.txt' 313 366 res=read_ascii(fi_ws_tmi,data_start=1) 314 367 ff=res.field1 … … 338 391 339 392 340 fi_ws_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_ncep1_v50.txt'393 fi_ws_ncep1=tropflux_id_env+'ws_2000_2009_ncep1_v50.txt' 341 394 res=read_ascii(fi_ws_ncep1,data_start=1) 342 395 ff=res.field1 … … 370 423 spawn, 'mv '+psdir+'idl.ps '+fig 371 424 spawn, 'gv '+fig 372 return373 425 end 374 function x_site_location, site375 n1=strpos(site, 's')376 if (n1 gt -1) then begin377 ns=-1.378 x=strmid(site, 0, n1)379 x=float(x)*ns380 endif else begin381 n1=strpos(site, 'n')382 x=strmid(site, 0, n1)383 ny=1.384 x=float(x)*ny385 endelse386 return, float(x)387 end388 function y_site_location, site389 n1=strpos(site, 'e')390 if (n1 gt -1) then begin391 n=strpos(site, 's')392 if (n gt -1) then begin393 y=strmid(site, n+1, n1-n-1)394 endif else begin395 n=strpos(site, 'n')396 y=strmid(site, n+1, n1-n-1)397 endelse398 399 endif else begin400 n1=strpos(site, 'w')401 n=strpos(site, 's')402 if (n gt -1) then begin403 y=strmid(site, n+1, n1-n-1)404 y=180+(180-float(y))405 endif else begin406 n=strpos(site, 'n')407 y=strmid(site, n+1, n1-n-1)408 y=180+(180-float(y))409 endelse410 endelse411 return,float(y)412 end -
trunk/src/paper01/fig4/fig4_met_var_correction_scatter.pro
r43 r46 1 1 ;+ 2 ; .. _fig4_met_var_correction_scatter.pro 2 ; .. _fig4_met_var_correction_scatter.pro: 3 3 ; 4 4 ; =================================== … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph fig4_met_var_correction_scatter { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; sst [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/sst_correction_final.txt"]; 18 ; t2m [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/t2m_correction_final.txt"]; 19 ; q2m [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/q2m_correction_final.txt"]; 20 ; ws [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ws_correction_final.txt"]; 21 ; 22 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/fig4_met_var_correction_scatter.ps"]; 23 ; 24 ; fig4_met_var_correction_scatter [shape=box, 25 ; fontname=Courier, 26 ; color=blue, 27 ; URL="http://forge.ipsl.jussieu.fr/tropflux/browser/trunk/src/paper01/fig4/fig4_met_var_correction_scatter.pro", 28 ; label="${TROPFLUX}/src/paper01/fig4/fig4_met_var_correction_scatter.pro"]; 29 ; 30 ; {sst t2m q2m ws} -> {fig4_met_var_correction_scatter} -> {figure} 31 ; } 32 ; 11 33 ; SEE ALSO 12 34 ; ======== 13 35 ; 14 36 ; :ref:`tropflux_profile.sh` 37 ; :ref:`tropflux_init.pro` 38 ; 39 ; :ref:`significance_test_99.pro` 15 40 ; 16 41 ; EXAMPLES … … 22 47 ; IDL> fig4_met_var_correction_scatter 23 48 ; 49 ; TODO 50 ; ==== 51 ; 52 ; coding rules 53 ; 54 ; get rid of spwan 55 ; 56 ; complete description 57 ; 58 ; handle IO error 59 ; 24 60 ; EVOLUTIONS 25 61 ; ========== 26 62 ; 27 63 ; $Id$ 64 ; 65 ; - fplod 20110420T085113Z aedon.locean-ipsl.upmc.fr (Darwin) 66 ; 67 ; * make it work on cratos 68 ; * remove hard coding path 69 ; * add graphviz 28 70 ; 29 71 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) … … 32 74 ; 33 75 ;- 34 35 76 pro fig4_met_var_correction_scatter 36 @common 77 @cm_general 78 @cm_tropflux 37 79 reinitplt, /z,/invert 38 80 key_portrait = 1 39 81 40 82 openps, FILENAME = 'idl.ps' 41 fi= '/Users/pkb/work/MY_SAXO/flux_automat/sst_correction_final.txt'83 fi=tropflux_id_env+'sst_correction_final.txt' 42 84 res=read_ascii(fi,data_start=0) 43 85 ff=res.field1 … … 66 108 significance_test_99,mean,bias 67 109 68 fi= '/Users/pkb/work/MY_SAXO/flux_automat/t2m_correction_final.txt'110 fi=tropflux_id_env+'t2m_correction_final.txt' 69 111 res=read_ascii(fi,data_start=0) 70 112 ff=res.field1 … … 94 136 significance_test_99,mean,bias 95 137 96 fi= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_correction_final.txt'138 fi=tropflux_id_env+'q2m_correction_final.txt' 97 139 res=read_ascii(fi,data_start=0) 98 140 ff=res.field1 … … 120 162 ;; significant test 121 163 significance_test_99,mean,bias 122 fi= '/Users/pkb/work/MY_SAXO/flux_automat/ws_correction_final.txt'164 fi=tropflux_id_env+'ws_correction_final.txt' 123 165 res=read_ascii(fi,data_start=0) 124 166 ff=res.field1 … … 150 192 closeps 151 193 152 fig= 'fig4_met_var_correction_scatter.ps'153 spawn, 'mv '+psdir+'idl.ps '+ cpsdir+fig154 spawn, 'gv '+ cpsdir+fig194 fig=tropflux_od_env+'fig4_met_var_correction_scatter.ps' 195 spawn, 'mv '+psdir+'idl.ps '+fig 196 spawn, 'gv '+fig 155 197 156 198 end -
trunk/src/paper01/fig4/significance_test_99.pro
r43 r46 1 1 ;+ 2 ; .. _significance_test_99.pro 2 ; .. _significance_test_99.pro: 3 3 ; 4 4 ; ======================== … … 14 14 ; :ref:`tropflux_profile.sh` 15 15 ; 16 ; :ref:`fig10_swr_correction.pro` 17 ; :ref:`fig4_met_var_correction_scatter.pro` 18 ; 16 19 ; EXAMPLES 17 20 ; ======== … … 24 27 ; IDL> sig_value=++ 25 28 ; IDL> significance_test_99, x, y, sig_value 29 ; 30 ; TODO 31 ; ==== 32 ; 33 ; coding rules 34 ; 35 ; complete description 36 ; 37 ; complete example 26 38 ; 27 39 ; EVOLUTIONS -
trunk/src/paper01/fig5/fig5_gustiness_scatter.pro
r43 r46 1 1 ;+ 2 ; .. _fig5_gustiness_scatter.pro 2 ; .. _fig5_gustiness_scatter.pro: 3 3 ; 4 4 ; ========================== … … 6 6 ; ========================== 7 7 ; 8 ; ;9 8 ; DESCRIPTION 10 9 ; =========== 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph fig5_gustiness_scatter { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; ws [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ws_gustiness_bias.txt"]; 18 ; sst [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/raw_sst_2000_2008_gustiness.txt"]; 19 ; 20 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/fig5_gustiness_scatter.ps"]; 21 ; 22 ; fig5_gustiness_scatter [shape=box, 23 ; fontname=Courier, 24 ; color=blue, 25 ; URL="http://forge.ipsl.jussieu.fr/tropflux/browser/trunk/src/paper01/fig5/fig5_gustiness_scatter.pro", 26 ; label="${TROPFLUX}/src/paper01/fig5/fig5_gustiness_scatter.pro"]; 27 ; 28 ; {ws sst} -> {fig5_gustiness_scatter} -> {figure} 29 ; } 11 30 ; 12 31 ; SEE ALSO … … 14 33 ; 15 34 ; :ref:`tropflux_profile.sh` 35 ; :ref:`tropflux_init.pro` 16 36 ; 17 37 ; EXAMPLES … … 23 43 ; IDL> fig5_gustiness_scatter 24 44 ; 45 ; TODO 46 ; ==== 47 ; 48 ; coding rules 49 ; 50 ; get rid of spwan 51 ; 52 ; complete description 53 ; 54 ; handle IO error 55 ; 25 56 ; EVOLUTIONS 26 57 ; ========== 27 58 ; 28 59 ; $Id$ 60 ; 61 ; - fplod 20110420T090057Z aedon.locean-ipsl.upmc.fr (Darwin) 62 ; 63 ; * make it work on cratos 64 ; * remove hard coding path 65 ; * add graphviz 29 66 ; 30 67 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) … … 34 71 ;- 35 72 pro fig5_gustiness_scatter 36 @common 73 @cm_general 74 @cm_tropflux 37 75 reinitplt, /z,/invert 38 76 key_portrait = 1 39 77 40 78 openps, FILENAME = 'idl.ps' 41 fi_ws= '/Users/pkb/work/MY_SAXO/flux_automat/wind_gustiness_bias.txt'79 fi_ws=tropflux_id_env+'wind_gustiness_bias.txt' 42 80 res=read_ascii(fi_ws,data_start=1) 43 81 ff=res.field01 … … 47 85 print, correlate(erai_wind,gust) 48 86 49 fi_sst= '/Users/pkb/work/MY_SAXO/flux_automat/raw_sst_2000_2008_gustiness.txt'87 fi_sst=tropflux_id_env+'raw_sst_2000_2008_gustiness.txt' 50 88 res=read_ascii(fi_sst,data_start=1) 51 89 ff=res.field1 … … 76 114 print, a,b 77 115 closeps 78 fig= 'fig5_gustiness_scatter.ps'79 spawn, 'mv '+psdir+'idl.ps '+ cpsdir+fig80 spawn, 'gv '+ cpsdir+fig116 fig=tropflux_od_env+'fig5_gustiness_scatter.ps' 117 spawn, 'mv '+psdir+'idl.ps '+fig 118 spawn, 'gv '+fig 81 119 end -
trunk/src/paper01/fig6/icoads_q2m_stats_paper.pro
r43 r46 1 1 ;+ 2 ; .. _icoads_q2m_stats_paper.pro 2 ; .. _icoads_q2m_stats_paper.pro: 3 3 ; 4 4 ; ========================== … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph icoads_q2m_stats_paper { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; sphum [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/sphum_monthly_1960_2010_oafluxgrid.nc"]; 18 ; q2m_tropflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/q2m_TropFlux_global_monthly_1989_2009.nc"]; 19 ; q2m_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/q2m_OAFlux_global_monthly_1989_2009.nc"]; 20 ; q2m_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/q2m_ERAI_global_monthly_1989_2009.nc"]; 21 ; q2m_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/q2m_NCEP2_global_monthly_1989_2009.nc"]; 22 ; q2m_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/q2m_NCEP1_global_monthly_1989_2009.nc"]; 23 ; 24 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/icoads_q2m_stats_paper.ps"]; 25 ; 26 ; icoads_q2m_stats_paper [shape=box, 27 ; fontname=Courier, 28 ; color=blue, 29 ; URL="http://forge.ipsl.jussieu.fr/tropflux/browser/trunk/src/paper01/fig6/icoads_q2m_stats_paper.pro", 30 ; label="${TROPFLUX}/src/paper01/fig6/icoads_q2m_stats_paper.pro"]; 31 ; 32 ; {sphum q2m_tropflux q2m_oaflux q2m_erai q2m_ncep2 q2m_ncep1} -> {icoads_q2m_stats_paper} -> {figure} 33 ; } 34 ; 11 35 ; SEE ALSO 12 36 ; ======== 13 37 ; 14 38 ; :ref:`tropflux_profile.sh` 39 ; :ref:`tropflux_init.pro` 40 ; 41 ; :ref:`statistics.pro` 15 42 ; 16 43 ; EXAMPLES … … 22 49 ; IDL> icoads_q2m_stats_paper 23 50 ; 51 ; TODO 52 ; ==== 53 ; 54 ; make it work (missing data) 55 ; 56 ; coding rules 57 ; 58 ; get rid of spwan 59 ; 60 ; complete description 61 ; 62 ; handle IO error 63 ; 24 64 ; EVOLUTIONS 25 65 ; ========== … … 27 67 ; $Id$ 28 68 ; 69 ; - fplod 20110420T090949Z aedon.locean-ipsl.upmc.fr (Darwin) 70 ; 71 ; * remove hard coding path 72 ; * add graphviz 73 ; 29 74 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 30 75 ; … … 33 78 ;- 34 79 pro icoads_q2m_stats_paper 35 @common 80 @cm_general 81 @cm_tropflux 36 82 reinitplt, /z,/invert 37 83 key_portrait = 1 … … 44 90 domdef, box 45 91 46 file= "/Volumes/Sanathana/ICOADS/Median/sphum_monthly_1960_2010_oafluxgrid.nc"92 file=tropflux_id_env+'sphum_monthly_1960_2010_oafluxgrid.nc' 47 93 initncdf, file 48 94 icoads=read_ncdf("sphum", st, en , file=file,/nostr, box=box) 49 95 help, icoads 50 96 51 dir="/Volumes/Sanathana/monthly_met_var/" 52 file=dir+"q2m_TropFlux_global_monthly_1989_2009.nc" 97 file=tropflux_id_env+'q2m_TropFlux_global_monthly_1989_2009.nc' 53 98 initncdf, file 54 99 trop=read_ncdf("q2m", st, en , file=file,/nostr, box=box) 55 100 help, trop 56 101 57 file= dir+"q2m_OAFlux_global_monthly_1989_2009.nc"102 file=tropflux_id_env+"q2m_OAFlux_global_monthly_1989_2009.nc" 58 103 initncdf, file 59 104 oaf=read_ncdf("q2m", st, en , file=file,/nostr, box=box) 60 105 help, oaf 61 106 62 file= dir+"q2m_ERAI_global_monthly_1989_2009.nc"107 file=tropflux_id_env+"q2m_ERAI_global_monthly_1989_2009.nc" 63 108 initncdf, file 64 109 erai=read_ncdf("q2m", st, en , file=file,/nostr, box=box) 65 110 help, erai 66 111 67 file= dir+"q2m_NCEP2_global_monthly_1989_2009.nc"112 file=tropflux_id_env+"q2m_NCEP2_global_monthly_1989_2009.nc" 68 113 initncdf, file 69 114 ncep2=1000*read_ncdf("q2m", st, en , file=file,/nostr, box=box) 70 115 help, ncep2 71 116 72 file= dir+"q2m_NCEP1_global_monthly_1989_2009.nc"117 file=tropflux_id_env+"q2m_NCEP1_global_monthly_1989_2009.nc" 73 118 initncdf, file 74 119 ncep1=1000*read_ncdf("q2m", st, en , file=file,/nostr, box=box) … … 209 254 210 255 closeps 211 fig= "icoads_q2m_stats_paper.ps"212 spawn, 'mv '+psdir+'idl.ps '+ cpsdir+fig213 spawn, 'gv '+ cpsdir+fig256 fig=tropflux_od_env+"icoads_q2m_stats_paper.ps" 257 spawn, 'mv '+psdir+'idl.ps '+fig 258 spawn, 'gv '+fig 214 259 return 215 260 end -
trunk/src/paper01/fig6/icoads_sst_stats_paper.pro
r43 r46 1 1 ;+ 2 ; .. _icoads_sst_stats_paper.pro 2 ; .. _icoads_sst_stats_paper.pro: 3 3 ; 4 4 ; ========================== … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph icoads_sst_stats_paper { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; sst [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/sst_monthly_1960_2010_oafluxgrid.nc"]; 18 ; sst_tropflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/sst_TropFlux_global_monthly_1989_2009.nc"]; 19 ; sst_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/sst_OAFlux_global_monthly_1989_2009.nc"]; 20 ; sst_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/sst_ERAI_global_monthly_1989_2009.nc"]; 21 ; sst_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/sst_NCEP2_global_monthly_1989_2009.nc"]; 22 ; sst_noc [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/nocv2_sst_19890101_20091231_oafluxgrid.nc"]; 23 ; sst_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/sst_NCEP1_global_monthly_1989_2009.nc"]; 24 ; 25 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/icoads_sst_stats_paper.ps"]; 26 ; 27 ; icoads_sst_stats_paper [shape=box, 28 ; fontname=Courier, 29 ; color=blue, 30 ; URL="http://forge.ipsl.jussieu.fr/tropflux/browser/trunk/src/paper01/fig6/icoads_sst_stats_paper.pro", 31 ; label="${TROPFLUX}/src/paper01/fig6/icoads_sst_stats_paper.pro"]; 32 ; 33 ; {sst sst_tropflux sst_oaflux sst_erai sst_ncep2 sst_noc sst_ncep1} -> {icoads_sst_stats_paper} -> {figure} 34 ; } 35 ; 11 36 ; SEE ALSO 12 37 ; ======== 13 38 ; 14 39 ; :ref:`tropflux_profile.sh` 40 ; :ref:`tropflux_init.pro` 41 ; 42 ; :ref:`statistics.pro` 15 43 ; 16 44 ; EXAMPLES … … 22 50 ; IDL> icoads_sst_stats_paper 23 51 ; 52 ; TODO 53 ; ==== 54 ; 55 ; make it work (missing data) 56 ; 57 ; coding rules 58 ; 59 ; get rid of spwan 60 ; 61 ; complete description 62 ; 63 ; handle IO error 64 ; 24 65 ; EVOLUTIONS 25 66 ; ========== … … 27 68 ; $Id$ 28 69 ; 70 ; - fplod 20110420T091734Z aedon.locean-ipsl.upmc.fr (Darwin) 71 ; 72 ; * remove hard coding path 73 ; * add graphviz 74 ; 29 75 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 30 76 ; … … 33 79 ;- 34 80 pro icoads_sst_stats_paper 35 @c ommon81 @cm_tropflux 36 82 reinitplt, /z,/invert 37 83 key_portrait = 1 … … 44 90 domdef, box 45 91 46 file= "/Volumes/Sanathana/ICOADS/Median/sst_monthly_1960_2010_oafluxgrid.nc"92 file=tropflux_id_env+'sst_monthly_1960_2010_oafluxgrid.nc' 47 93 initncdf, file 48 94 icoads=read_ncdf("sst", st-1, en , file=file,/nostr, box=box) 49 95 help, icoads 50 96 51 dir="/Volumes/Sanathana/monthly_met_var/" 52 file=dir+"sst_TropFlux_global_monthly_1989_2009.nc" 97 file=tropflux_id_env+'sst_TropFlux_global_monthly_1989_2009.nc' 53 98 initncdf, file 54 99 trop=read_ncdf("sst", st, en , file=file,/nostr, box=box)-273.15 55 100 help, trop 56 101 57 file= dir+"sst_OAFlux_global_monthly_1989_2009.nc"102 file=tropflux_id_env+"sst_OAFlux_global_monthly_1989_2009.nc" 58 103 initncdf, file 59 104 oaf=read_ncdf("sst", st, en , file=file,/nostr, box=box) 60 105 help, oaf 61 106 62 file= dir+"sst_ERAI_global_monthly_1989_2009.nc"107 file=tropflux_id_env+"sst_ERAI_global_monthly_1989_2009.nc" 63 108 initncdf, file 64 109 erai=read_ncdf("sst", st, en , file=file,/nostr, box=box)-273.15 65 110 help, erai 66 111 67 file= dir+"sst_NCEP2_global_monthly_1989_2009.nc"112 file=tropflux_id_env+"sst_NCEP2_global_monthly_1989_2009.nc" 68 113 initncdf, file 69 114 ncep2=read_ncdf("sst", st, en , file=file,/nostr, box=box)-273.15 70 115 help, ncep2 71 116 72 file= "/Volumes/Sanathana/NOC_v2/oaflux_grid/nocv2_sst_19890101_20091231_oafluxgrid.nc"117 file=tropflux_id_env+'nocv2_sst_19890101_20091231_oafluxgrid.nc' 73 118 initncdf, file 74 119 noc=read_ncdf("sst", st, en , file=file,/nostr, box=box) 75 120 help, noc 76 121 77 file= dir+"sst_NCEP1_global_monthly_1989_2009.nc"122 file=tropflux_id_env+"sst_NCEP1_global_monthly_1989_2009.nc" 78 123 initncdf, file 79 124 ncep1=read_ncdf("sst", st, en , file=file,/nostr, box=box)-273.15 … … 236 281 237 282 closeps 238 fig= "icoads_sst_stats_paper.ps"239 spawn, 'mv '+psdir+'idl.ps '+ cpsdir+fig240 spawn, 'gv '+ cpsdir+fig241 return 283 fig=tropflux_od_env+"icoads_sst_stats_paper.ps" 284 spawn, 'mv '+psdir+'idl.ps '+fig 285 spawn, 'gv '+fig 286 end -
trunk/src/paper01/fig6/icoads_t2m_stats_paper.pro
r43 r46 1 1 ;+ 2 ; .. _icoads_t2m_stats_paper.pro 2 ; .. _icoads_t2m_stats_paper.pro: 3 3 ; 4 4 ; ========================== … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph icoads_t2m_stats_paper { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; airt [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/airt_monthly_1960_2010_oafluxgrid.nc"]; 18 ; t2m_tropflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/t2m_TropFlux_global_monthly_1989_2009.nc"]; 19 ; t2m_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/t2m_OAFlux_global_monthly_1989_2009.nc"]; 20 ; t2m_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/t2m_ERAI_global_monthly_1989_2009.nc"]; 21 ; t2m_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/t2m_NCEP2_global_monthly_1989_2009.nc"]; 22 ; t2m_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/t2m_NCEP1_global_monthly_1989_2009.nc"]; 23 ; 24 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/icoads_t2m_stats_paper.ps"]; 25 ; 26 ; icoads_t2m_stats_paper [shape=box, 27 ; fontname=Courier, 28 ; color=blue, 29 ; URL="http://forge.ipsl.jussieu.fr/tropflux/browser/trunk/src/paper01/fig6/icoads_t2m_stats_paper.pro", 30 ; label="${TROPFLUX}/src/paper01/fig6/icoads_t2m_stats_paper.pro"]; 31 ; 32 ; {airt t2m_tropflux t2m_oaflux t2m_erai t2m_ncep2 t2m_ncep1} -> {icoads_t2m_stats_paper} -> {figure} 33 ; } 34 ; 11 35 ; SEE ALSO 12 36 ; ======== 13 37 ; 14 38 ; :ref:`tropflux_profile.sh` 39 ; :ref:`tropflux_init.pro` 40 ; 41 ; :ref:`statistics.pro` 15 42 ; 16 43 ; EXAMPLES … … 22 49 ; IDL> icoads_t2m_stats_paper 23 50 ; 51 ; 52 ; TODO 53 ; ==== 54 ; 55 ; make it work (missing data) 56 ; 57 ; coding rules 58 ; 59 ; get rid of spwan 60 ; 61 ; complete description 62 ; 63 ; handle IO error 64 ; 24 65 ; EVOLUTIONS 25 66 ; ========== … … 27 68 ; $Id$ 28 69 ; 70 ; - fplod 20110420T092151Z aedon.locean-ipsl.upmc.fr (Darwin) 71 ; 72 ; * remove hard coding path 73 ; * add graphviz 74 ; 29 75 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 30 76 ; … … 33 79 ;- 34 80 pro icoads_t2m_stats_paper 35 @common 81 @cm_general 82 @cm_tropflux 36 83 reinitplt, /z,/invert 37 84 key_portrait = 1 … … 44 91 domdef, box 45 92 46 file= "/Volumes/Sanathana/ICOADS/Median/airt_monthly_1960_2010_oafluxgrid.nc"93 file=tropflux_id_env+'airt_monthly_1960_2010_oafluxgrid.nc' 47 94 initncdf, file 48 95 icoads=read_ncdf("airt", st-1, en , file=file,/nostr, box=box) 49 96 help, icoads 50 97 51 dir="/Volumes/Sanathana/monthly_met_var/" 52 file=dir+"t2m_TropFlux_global_monthly_1989_2009.nc" 98 file=tropflux_id_env+'t2m_TropFlux_global_monthly_1989_2009.nc' 53 99 initncdf, file 54 100 trop=read_ncdf("t2m", st, en , file=file,/nostr, box=box)-273.15 55 101 help, trop 56 102 57 file= dir+"t2m_OAFlux_global_monthly_1989_2009.nc"103 file=tropflux_id_env+"t2m_OAFlux_global_monthly_1989_2009.nc" 58 104 initncdf, file 59 105 oaf=read_ncdf("t2m", st, en , file=file,/nostr, box=box) 60 106 help, oaf 61 107 62 file= dir+"t2m_ERAI_global_monthly_1989_2009.nc"108 file=tropflux_id_env+"t2m_ERAI_global_monthly_1989_2009.nc" 63 109 initncdf, file 64 110 erai=read_ncdf("t2m", st, en , file=file,/nostr, box=box)-273.15 65 111 help, erai 66 112 67 file= dir+"t2m_NCEP2_global_monthly_1989_2009.nc"113 file=tropflux_id_env+"t2m_NCEP2_global_monthly_1989_2009.nc" 68 114 initncdf, file 69 115 ncep2=read_ncdf("t2m", st, en , file=file,/nostr, box=box)-273.15 70 116 help, ncep2 71 117 72 file= dir+"t2m_NCEP1_global_monthly_1989_2009.nc"118 file=tropflux_id_env+"t2m_NCEP1_global_monthly_1989_2009.nc" 73 119 initncdf, file 74 120 ncep1=read_ncdf("t2m", st, en , file=file,/nostr, box=box)-273.15 … … 217 263 218 264 closeps 219 fig="icoads_t2m_stats_paper.ps" 220 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 221 spawn, 'gv '+cpsdir+fig 222 return 265 fig=tropflux_od_env+"icoads_t2m_stats_paper.ps" 266 spawn, 'mv '+psdir+'idl.ps '+fig 267 spawn, 'gv '+fig 223 268 end -
trunk/src/paper01/fig6/icoads_ws_stats_paper.pro
r43 r46 1 1 ;+ 2 ; .. _icoads_ws_stats_paper.pro 2 ; .. _icoads_ws_stats_paper.pro: 3 3 ; 4 4 ; ========================= … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph icoads_ws_stats_paper { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; ws [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ws_monthly_1960_2010_oafluxgrid.nc"]; 18 ; ws_tropflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ws_TropFlux_global_monthly_1989_2009.nc"]; 19 ; ws_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ws_OAFlux_global_monthly_1989_2009.nc"]; 20 ; ws_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ws_ERAI_global_monthly_1989_2009.nc"]; 21 ; ws_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ws_NCEP2_global_monthly_1989_2009.nc"]; 22 ; ws_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ws_NCEP1_global_monthly_1989_2009.nc"]; 23 ; ws_noc [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/nocv2_ws_19890101_20091231_oafluxgrid.nc"]; 24 ; 25 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/icoads_ws_stats_paper.ps"]; 26 ; 27 ; icoads_ws_stats_paper [shape=box, 28 ; fontname=Courier, 29 ; color=blue, 30 ; URL="http://forge.ipsl.jussieu.fr/tropflux/browser/trunk/src/paper01/fig6/icoads_ws_stats_paper.pro", 31 ; label="${TROPFLUX}/src/paper01/fig6/icoads_ws_stats_paper.pro"]; 32 ; 33 ; {ws ws_tropflux ws_oaflux ws_erai ws_ncep2 ws_ncep1 ws_noc} -> {icoads_ws_stats_paper} -> {figure} 34 ; } 35 ; 11 36 ; SEE ALSO 12 37 ; ======== 13 38 ; 14 39 ; :ref:`tropflux_profile.sh` 40 ; :ref:`tropflux_init.pro` 41 ; 42 ; :ref:`statistics.pro` 15 43 ; 16 44 ; EXAMPLES … … 22 50 ; IDL> icoads_ws_stats_paper 23 51 ; 52 ; 53 ; TODO 54 ; ==== 55 ; 56 ; make it work (missing data) 57 ; 58 ; coding rules 59 ; 60 ; get rid of spwan 61 ; 62 ; complete description 63 ; 64 ; handle IO error 65 ; 24 66 ; EVOLUTIONS 25 67 ; ========== … … 27 69 ; $Id$ 28 70 ; 71 ; - fplod 20110420T092454Z aedon.locean-ipsl.upmc.fr (Darwin) 72 ; 73 ; * remove hard coding path 74 ; * add graphviz 75 ; 29 76 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 30 77 ; … … 33 80 ;- 34 81 pro icoads_ws_stats_paper 35 @common 82 @cm_general 83 @cm_tropflux 36 84 reinitplt, /z,/invert 37 85 key_portrait = 1 … … 44 92 domdef, box 45 93 46 file= "/Volumes/Sanathana/ICOADS/Median/ws_monthly_1960_2010_oafluxgrid.nc"94 file=tropflux_id_env+'ws_monthly_1960_2010_oafluxgrid.nc" 47 95 initncdf, file 48 96 icoads=read_ncdf("ws", st-1, en , file=file,/nostr, box=box) 49 97 help, icoads 50 98 51 dir="/Volumes/Sanathana/monthly_met_var/" 52 file=dir+"ws_TropFlux_global_monthly_1989_2009.nc" 99 file=tropflux_id_env+"ws_TropFlux_global_monthly_1989_2009.nc" 53 100 initncdf, file 54 101 trop=read_ncdf("ws", st, en , file=file,/nostr, box=box) 55 102 help, trop 56 103 57 file= dir+"ws_OAFlux_global_monthly_1989_2009.nc"104 file=tropflux_id_env+"ws_OAFlux_global_monthly_1989_2009.nc" 58 105 initncdf, file 59 106 oaf=read_ncdf("ws", st, en , file=file,/nostr, box=box) 60 107 help, oaf 61 108 62 file= dir+"ws_ERAI_global_monthly_1989_2009.nc"109 file=tropflux_id_env+"ws_ERAI_global_monthly_1989_2009.nc" 63 110 initncdf, file 64 111 erai=read_ncdf("ws", st, en , file=file,/nostr, box=box) 65 112 help, erai 66 113 67 file= dir+"ws_NCEP2_global_monthly_1989_2009.nc"114 file=tropflux_id_env+"ws_NCEP2_global_monthly_1989_2009.nc" 68 115 initncdf, file 69 116 ncep2=read_ncdf("wsm", st, en , file=file,/nostr, box=box) 70 117 help, ncep2 71 118 72 file= dir+"ws_NCEP1_global_monthly_1989_2009.nc"119 file=tropflux_id_env+"ws_NCEP1_global_monthly_1989_2009.nc" 73 120 initncdf, file 74 121 ncep1=read_ncdf("ws", st, en , file=file,/nostr, box=box) 75 122 help, ncep1 76 123 77 file= "/Volumes/Sanathana/NOC_v2/oaflux_grid/nocv2_ws_19890101_20091231_oafluxgrid.nc"124 file=tropflux_id_env+'nocv2_ws_19890101_20091231_oafluxgrid.nc' 78 125 initncdf, file 79 126 noc=read_ncdf("ws", st, en , file=file,/nostr, box=box) … … 233 280 234 281 closeps 235 fig="icoads_ws_stats_paper.ps" 236 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 237 spawn, 'gv '+cpsdir+fig 238 return 282 fig=tropflux_od_env+"icoads_ws_stats_paper.ps" 283 spawn, 'mv '+psdir+'idl.ps '+fig 284 spawn, 'gv '+fig 239 285 end -
trunk/src/paper01/fig6/statistics.pro
r43 r46 1 1 ;+ 2 ; .. _statistics.pro 2 ; .. _statistics.pro: 3 3 ; 4 4 ; ============== … … 14 14 ; :ref:`tropflux_profile.sh` 15 15 ; 16 ; :ref:`as_validation_net_1994_95_v10.pro` 17 ; :ref:`coare_validation_net_1992_93_all_v10.pro` 18 ; :ref:`stratus_validation_net_2001_2002_all_v10.pro` 19 ; :ref:`subdctn_cs_validation_net_1991_93_all_v10.pro` 20 ; :ref:`subdctn_ses_validation_net_1991_93_all_v10.pro` 21 ; :ref:`subdctn_sws_validation_net_1991_93_all_v10.pro` 22 ; :ref:`whots_validation_net_2004_2007_all_v10.pro` 23 ; :ref:`icoads_q2m_stats_paper.pro` 24 ; :ref:`icoads_sst_stats_paper.pro` 25 ; :ref:`icoads_t2m_stats_paper.pro` 26 ; :ref:`icoads_ws_stats_paper.pro` 27 ; 16 28 ; EXAMPLES 17 29 ; ======== … … 23 35 ; IDL> ++ 24 36 ; IDL> statistics, moor, erai, cor, bias, std, rmsd 37 ; 38 ; TODO 39 ; ==== 40 ; 41 ; coding rules 42 ; 43 ; complete description 44 ; 45 ; complete example 25 46 ; 26 47 ; EVOLUTIONS … … 37 58 pro statistics, moor, erai, $ 38 59 cor, bias, std, rmsd 39 @c ommon60 @cm_tropflux 40 61 ;; mean1= mean of mooring variable std1=std of mooring variable 41 62 ;; mean2= mean of erai variable std2=std of erai variable -
trunk/src/paper01/fig7/air_validation_scatter_2000_2009_basin.pro
r43 r46 1 1 ;+ 2 ; .. _air_validation_scatter_2000_2009.pro 3 ; 4 ; ==================================== 5 ; air_validation_scatter_2000_2009.pro 6 ; ==================================== 2 ; .. _air_validation_scatter_2000_2009_basin.pro: 3 ; 4 ; ========================================== 5 ; air_validation_scatter_2000_2009_basin.pro 6 ; ========================================== 7 ; 7 8 ; DESCRIPTION 8 9 ; =========== 9 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph air_validation_scatter_2000_2009_basin { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; air_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/air_2000_2009_erai_*.txt"]; 18 ; air_tropflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/air_2000_2009_trop_*.txt"]; 19 ; air_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/air_2000_2009_oaflx_*.txt"]; 20 ; air_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/air_2000_2009_ncep2_*.txt"]; 21 ; air_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/air_2000_2009_ncep1_*.txt"]; 22 ; t2m_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_t2m_19890101_20091231_oafluxgrid.nc"]; 23 ; 24 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/air_validation_scatter_2000_2009_basin.ps"]; 25 ; 26 ; air_validation_scatter_2000_2009_basin [shape=box, 27 ; fontname=Courier, 28 ; color=blue, 29 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broairer/trunk/src/paper01/fig7/air_validation_scatter_2000_2009_basin.pro", 30 ; label="${TROPFLUX}/src/paper01/fig7/air_validation_scatter_2000_2009_basin.pro"]; 31 ; 32 ; {air_tropflux t2m_erai} -> {air_validation_scatter_2000_2009_basin} -> {air_oaflux air_erai air_ncep2 air_ncep1 figure} 33 ; } 34 ; 10 35 ; SEE ALSO 11 36 ; ======== 12 37 ; 13 38 ; :ref:`tropflux_profile.sh` 39 ; :ref:`tropflux_init.pro` 40 ; :ref:`cm_tropflux.pro` 41 ; 42 ; :func:`x_site_location` 43 ; :func:`y_site_location` 44 ; 45 ; :ref:`read_variables_v2.pro` 46 ; :ref:`statistics_3var_v1.pro` 14 47 ; 15 48 ; EXAMPLES … … 19 52 ; 20 53 ; 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 54 ; IDL> date1=19890101L 55 ; IDL> date2=20091231L 56 ; IDL> air_validation_scatter_2000_2009_basin, date1, date2 57 ; 58 ; TODO 59 ; ==== 60 ; 61 ; make it work on cratos : pb restore 62 ; 63 ; ++ mooring data in graphviz 64 ; 65 ; coding rules 66 ; 67 ; get rid of spwan 68 ; 69 ; complete description 70 ; 71 ; handle IO error 27 72 ; 28 73 ; EVOLUTIONS … … 31 76 ; $Id$ 32 77 ; 78 ; - fplod 20110420T093206Z aedon.locean-ipsl.upmc.fr (Darwin) 79 ; 80 ; * remove hard coding path 81 ; * add graphviz 82 ; * externalize functions 83 ; * change name of procedure according to filename 84 ; 33 85 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 34 86 ; … … 36 88 ; 37 89 ;- 38 pro air_validation_scatter_2000_2009 ,date1,date239 @c ommon40 90 pro air_validation_scatter_2000_2009_basin, date1, date2 91 @cm_general 92 @cm_tropflux 41 93 reinitplt, /z,/invert 42 94 key_portrait = 1 … … 98 150 close,/all 99 151 100 fi_air_erai= '/Users/pkb/work/MY_SAXO/flux_automat/air_2000_2009_erai_'+ocean+'.txt'152 fi_air_erai=tropflux_id_env+'air_2000_2009_erai_'+ocean+'.txt' 101 153 openw,1,fi_air_erai 102 fi_air_trop= '/Users/pkb/work/MY_SAXO/flux_automat/air_2000_2009_trop_'+ocean+'.txt'154 fi_air_trop=tropflux_id_env+'air_2000_2009_trop_'+ocean+'.txt' 103 155 openw,2,fi_air_trop 104 fi_air_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/air_2000_2009_oaflx_'+ocean+'.txt'156 fi_air_oaflx=tropflux_id_env+'air_2000_2009_oaflx_'+ocean+'.txt' 105 157 openw,3,fi_air_oaflx 106 fi_air_ncep2= '/Users/pkb/work/MY_SAXO/flux_automat/air_2000_2009_ncep2_'+ocean+'.txt'158 fi_air_ncep2=tropflux_id_env+'air_2000_2009_ncep2_'+ocean+'.txt' 107 159 openw,4,fi_air_ncep2 108 fi_air_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/air_2000_2009_ncep1_'+ocean+'.txt'160 fi_air_ncep1=tropflux_id_env+'air_2000_2009_ncep1_'+ocean+'.txt' 109 161 openw,5,fi_air_ncep1 110 162 … … 118 170 ;; first reading the whole ERAI uncorrected and corrected data 119 171 120 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_t2m_19890101_20091231_oafluxgrid.nc'172 file=tropflux_id_env+'erai_t2m_19890101_20091231_oafluxgrid.nc' 121 173 initncdf, file 122 174 unc=read_ncdf('t2m',date1,date2,file=file,/nostr) & unc=unc-273.15 123 175 help, unc 124 176 125 ;file='/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_t2m_19890101_20091231_v3.nc'126 ;file="/Users/pkb/data/TropFlux/TropFlux_t2m_19890101_20091231_v50.nc"127 ;initncdf, file128 ;cor=read_ncdf('t2m',date1,date2,file=file,/nostr) & cor=cor-273.15129 ;help, cor130 131 ;file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/OAFlux_basic_variables_1985_2009.nc'132 ;initncdf, file133 ;oaf=read_ncdf("air", date1, date2, file=file,/nostr)134 ;help, oaf135 136 ;fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/air_2m_ncep2_oafluxgrid_19890101_20091231.nc'137 ;initncdf, fi138 ;nce=read_ncdf("air", date1-1, date2, file=fi,/nostr)139 ;nce=nce-273.15140 ;help, nce141 142 ;file='/Volumes/Iomega_HDD/flux_reconstruction/ncep/t2m_ncep1_19890101_20091231.nc'143 ;initncdf, file144 ;nce1=read_ncdf("t2m", date1, date2, file=file,/nostr)145 ;nce1=nce1-273.15146 ;help, nce1147 148 177 ;save, unc, cor, oaf, nce, nce1, filename="airt_unc_cor_oaf_nce_nce1_2000_2009_global.idl" 149 178 restore, file="/Users/pkb/work/MY_SAXO/airt_unc_cor_oaf_nce_nce1_2000_2009_global.idl" … … 151 180 152 181 nn=n_elements(sitelist) 153 date1=date1154 date2=date2155 182 for n=0, nn-1 do begin 156 183 … … 221 248 close,/all 222 249 223 fi_air_erai= '/Users/pkb/work/MY_SAXO/flux_automat/air_2000_2009_erai_'+ocean+'.txt'250 fi_air_erai=tropflux_id_env+'air_2000_2009_erai_'+ocean+'.txt' 224 251 res=read_ascii(fi_air_erai,data_start=1) 225 252 ff=res.field1 … … 247 274 oplot, mean_tao, yfit, color=250, thick=2 248 275 249 fi_air_trop= '/Users/pkb/work/MY_SAXO/flux_automat/air_2000_2009_trop_'+ocean+'.txt'276 fi_air_trop=tropflux_id_env+'air_2000_2009_trop_'+ocean+'.txt' 250 277 res=read_ascii(fi_air_trop,data_start=1) 251 278 ff=res.field1 … … 274 301 oplot, mean_tao, yfit, color=250, thick=2 275 302 276 fi_air_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/air_2000_2009_oaflx_'+ocean+'.txt'303 fi_air_oaflx=tropflux_id_env+'air_2000_2009_oaflx_'+ocean+'.txt' 277 304 res=read_ascii(fi_air_oaflx,data_start=1) 278 305 ff=res.field1 … … 303 330 304 331 305 fi_air_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/air_2000_2009_ncep2_'+ocean+'.txt'332 fi_air_ncep=tropflux_id_env+'air_2000_2009_ncep2_'+ocean+'.txt' 306 333 res=read_ascii(fi_air_ncep,data_start=1) 307 334 ff=res.field1 … … 330 357 oplot, mean_tao, yfit, color=250, thick=2 331 358 332 fi_air_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/air_2000_2009_ncep1_'+ocean+'.txt'359 fi_air_ncep1=tropflux_id_env+'air_2000_2009_ncep1_'+ocean+'.txt' 333 360 res=read_ascii(fi_air_ncep1,data_start=1) 334 361 ff=res.field1 … … 359 386 closeps 360 387 361 fig='air_validation_scatter_2000_2009_'+ocean+'.ps' 362 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 363 spawn, 'gv '+cpsdir+fig 364 return 388 fig=tropflux_od_env+'air_validation_scatter_2000_2009_'+ocean+'.ps' 389 spawn, 'mv '+psdir+'idl.ps '+fig 390 spawn, 'gv '+fig 365 391 end 366 function x_site_location, site367 n1=strpos(site, 's')368 if (n1 gt -1) then begin369 ns=-1.370 x=strmid(site, 0, n1)371 x=float(x)*ns372 endif else begin373 n1=strpos(site, 'n')374 x=strmid(site, 0, n1)375 ny=1.376 x=float(x)*ny377 endelse378 return, float(x)379 end380 function y_site_location, site381 n1=strpos(site, 'e')382 if (n1 gt -1) then begin383 n=strpos(site, 's')384 if (n gt -1) then begin385 y=strmid(site, n+1, n1-n-1)386 endif else begin387 n=strpos(site, 'n')388 y=strmid(site, n+1, n1-n-1)389 endelse390 391 endif else begin392 n1=strpos(site, 'w')393 n=strpos(site, 's')394 if (n gt -1) then begin395 y=strmid(site, n+1, n1-n-1)396 y=180+(180-float(y))397 endif else begin398 n=strpos(site, 'n')399 y=strmid(site, n+1, n1-n-1)400 y=180+(180-float(y))401 endelse402 endelse403 return,float(y)404 end -
trunk/src/paper01/fig7/q2m_validation_scatter_2000_2009_basin.pro
r43 r46 1 1 ;+ 2 ; .. _q2m_validation_scatter_2000_2009_basin.pro 2 ; .. _q2m_validation_scatter_2000_2009_basin.pro: 3 3 ; 4 4 ; ========================================== … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph q2m_validation_scatter_2000_2009_basin { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; q2m_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/q2m_2000_2009_erai_*.txt"]; 18 ; q2m_erai_2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_q2m_19890101_20091231_oafluxgrid.nc"]; 19 ; q2m_tropflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/q2m_2000_2009_trop_*.txt"]; 20 ; q2m_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/q2m_2000_2009_oaflx_*.txt"]; 21 ; q2m_ncep [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/q2m_2000_2009_ncep_*.txt"]; 22 ; q2m_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/q2m_2000_2009_ncep1_*.txt"]; 23 ; 24 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/q2m_validation_scatter_2000_2009_basin.ps"]; 25 ; 26 ; q2m_validation_scatter_2000_2009_basin [shape=box, 27 ; fontname=Courier, 28 ; color=blue, 29 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broq2mer/trunk/src/paper01/fig7/q2m_validation_scatter_2000_2009_basin.pro", 30 ; label="${TROPFLUX}/src/paper01/fig7/q2m_validation_scatter_2000_2009_basin.pro"]; 31 ; 32 ; {q2m_erai q2m_erai_2} -> {q2m_validation_scatter_2000_2009_basin} -> {q2m_tropflux q2m_oafluxq2m_ncep q2m_ncep1 figure} 33 ; } 34 ; 11 35 ; SEE ALSO 12 36 ; ======== 13 37 ; 14 38 ; :ref:`tropflux_profile.sh` 39 ; :ref:`tropflux_init.pro` 40 ; :ref:`cm_tropflux.pro` 41 ; 42 ; :func:`x_site_location` 43 ; :func:`y_site_location` 44 ; 45 ; :ref:`read_variables_v2.pro` 46 ; :ref:`statistics_3var_v1.pro` 15 47 ; 16 48 ; EXAMPLES … … 20 52 ; 21 53 ; IDL> @tropflux_init 22 ; IDL> date1= ++23 ; IDL> date2= ++54 ; IDL> date1=19890101L 55 ; IDL> date2=20091231L 24 56 ; IDL> q2m_validation_scatter_2000_2009_basin, date1, date2 57 ; 58 ; TODO 59 ; ==== 60 ; 61 ; make it work on cratos : pb restore 62 ; 63 ; ++ mooring data in graphviz 64 ; 65 ; coding rules 66 ; 67 ; get rid of spwan 68 ; 69 ; complete description 70 ; 71 ; handle IO error 25 72 ; 26 73 ; EVOLUTIONS … … 29 76 ; $Id$ 30 77 ; 78 ; - fplod 20110420T101050Z aedon.locean-ipsl.upmc.fr (Darwin) 79 ; 80 ; * remove hard coding path 81 ; * add graphviz 82 ; * externalize functions 83 ; 31 84 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 32 85 ; … … 36 89 37 90 pro q2m_validation_scatter_2000_2009_basin, date1, date2 38 @c ommon39 91 @cm_general 92 @cm_tropflux 40 93 reinitplt, /z,/invert 41 94 key_portrait = 1 42 95 43 96 openps, FILENAME = 'idl.ps' 44 ;; Before running this program, you have to compile the following subrutines45 ;; 1. .r read_era_total46 ;; 2. .r read_variables_v247 ;; 3. .r read_era_box48 97 49 98 ;; Give the location of mooring for validation of basic meteorological variables 50 51 52 99 sitelist=['8s67e','12s55e', '8s55e', '8s80.5e', '1.5s80.5e', '0n80.5e', '1.5n80.5e', '1.5s90e', $ 53 100 '0n90e', '1.5n90e', '4n90e','8n90e','12n90e', '15n90e', '5s95e', $ … … 101 148 close,/all 102 149 103 fi_q2m_erai= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_erai_'+ocean+'.txt'150 fi_q2m_erai=tropflux_id_env+'q2m_2000_2009_erai_'+ocean+'.txt' 104 151 openw,1,fi_q2m_erai 105 fi_q2m_trop= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_trop_'+ocean+'.txt'152 fi_q2m_trop=tropflux_id_env+'q2m_2000_2009_trop_'+ocean+'.txt' 106 153 openw,2,fi_q2m_trop 107 fi_q2m_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_oaflx_'+ocean+'.txt'154 fi_q2m_oaflx=tropflux_id_env+'q2m_2000_2009_oaflx_'+ocean+'.txt' 108 155 openw,3,fi_q2m_oaflx 109 fi_q2m_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_ncep_'+ocean+'.txt'156 fi_q2m_ncep=tropflux_id_env+'q2m_2000_2009_ncep_'+ocean+'.txt' 110 157 openw,4,fi_q2m_ncep 111 fi_q2m_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_ncep1_'+ocean+'.txt'158 fi_q2m_ncep1=tropflux_id_env+'q2m_2000_2009_ncep1_'+ocean+'.txt' 112 159 openw,5,fi_q2m_ncep1 113 160 … … 121 168 ;; first reading the whole ERAI uncorrected and corrected data 122 169 123 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_q2m_19890101_20091231_oafluxgrid.nc'170 file=tropflux_id_env+'erai_q2m_19890101_20091231_oafluxgrid.nc' 124 171 initncdf, file 125 172 unc=read_ncdf('q2m',date1,date2,file=file,/nostr) 126 173 help, unc 127 174 128 ;file='/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_q2m_19890101_20091231_v20.nc'129 ;initncdf, file130 ;cor=read_ncdf('q2m',date1,date2,file=file,/nostr)131 ;help, cor132 133 ;file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/OAFlux_basic_variables_1985_2009.nc'134 ;initncdf, file135 ;oaf=read_ncdf("sphum", date1, date2, file=file,/nostr)136 ;help, oaf137 138 ;fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/sphum_ncep2_oafluxgrid_19890101_20091231.nc'139 ;initncdf, fi140 ;nce=read_ncdf("shum", date1-1, date2, file=fi,/nostr)141 ;nce=nce*1000142 ;help, nce143 144 ;file='/Volumes/Iomega_HDD/flux_reconstruction/ncep/q2m_ncep1_19890101_20091231.nc'145 ;initncdf, file146 ;nce1=read_ncdf("q2m", date1, date2, file=file,/nostr)147 ;nce1=nce1*1000148 ;help, nce1149 150 175 ;save, unc, cor, oaf, nce, nce1, filename="q2m_era_trop_oaf_nce_nce1_2000_2009_global.idl" 151 176 restore, file="/Users/pkb/work/MY_SAXO/q2m_era_trop_oaf_nce_nce1_2000_2009_global.idl" … … 153 178 154 179 nn=n_elements(sitelist) 155 date1=date1156 date2=date2157 180 for n=0, nn-1 do begin 158 181 … … 222 245 close,/all 223 246 224 fi_q2m_erai= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_erai_'+ocean+'.txt'247 fi_q2m_erai=tropflux_id_env+'q2m_2000_2009_erai_'+ocean+'.txt' 225 248 res=read_ascii(fi_q2m_erai,data_start=1) 226 249 ff=res.field1 … … 248 271 oplot, mean_tao, yfit, color=250, thick=2 249 272 250 fi_q2m_trop= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_trop_'+ocean+'.txt'273 fi_q2m_trop=tropflux_id_env+'q2m_2000_2009_trop_'+ocean+'.txt' 251 274 res=read_ascii(fi_q2m_trop,data_start=1) 252 275 ff=res.field1 … … 275 298 oplot, mean_tao, yfit, color=250, thick=2 276 299 277 fi_q2m_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_oaflx_'+ocean+'.txt'300 fi_q2m_oaflx=tropflux_id_env+'q2m_2000_2009_oaflx_'+ocean+'.txt' 278 301 res=read_ascii(fi_q2m_oaflx,data_start=1) 279 302 ff=res.field1 … … 303 326 304 327 305 fi_q2m_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_ncep_'+ocean+'.txt'328 fi_q2m_ncep=tropflux_id_env+'q2m_2000_2009_ncep_'+ocean+'.txt' 306 329 res=read_ascii(fi_q2m_ncep,data_start=1) 307 330 ff=res.field1 … … 330 353 oplot, mean_tao, yfit, color=250, thick=2 331 354 332 fi_q2m_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/q2m_2000_2009_ncep1_'+ocean+'.txt'355 fi_q2m_ncep1=tropflux_id_env+'q2m_2000_2009_ncep1_'+ocean+'.txt' 333 356 res=read_ascii(fi_q2m_ncep1,data_start=1) 334 357 ff=res.field1 … … 359 382 closeps 360 383 361 fig='q2m_validation_scatter_2000_2009_'+ocean+'.ps' 362 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 363 spawn, 'gv '+cpsdir+fig 364 return 384 fig=tropflux_od_env+'q2m_validation_scatter_2000_2009_'+ocean+'.ps' 385 spawn, 'mv '+psdir+'idl.ps '+fig 386 spawn, 'gv '+fig 365 387 end 366 function x_site_location, site367 n1=strpos(site, 's')368 if (n1 gt -1) then begin369 ns=-1.370 x=strmid(site, 0, n1)371 x=float(x)*ns372 endif else begin373 n1=strpos(site, 'n')374 x=strmid(site, 0, n1)375 ny=1.376 x=float(x)*ny377 endelse378 return, float(x)379 end380 function y_site_location, site381 n1=strpos(site, 'e')382 if (n1 gt -1) then begin383 n=strpos(site, 's')384 if (n gt -1) then begin385 y=strmid(site, n+1, n1-n-1)386 endif else begin387 n=strpos(site, 'n')388 y=strmid(site, n+1, n1-n-1)389 endelse390 391 endif else begin392 n1=strpos(site, 'w')393 n=strpos(site, 's')394 if (n gt -1) then begin395 y=strmid(site, n+1, n1-n-1)396 y=180+(180-float(y))397 endif else begin398 n=strpos(site, 'n')399 y=strmid(site, n+1, n1-n-1)400 y=180+(180-float(y))401 endelse402 endelse403 return,float(y)404 end -
trunk/src/paper01/fig7/sst_validation_scatter_2000_2009_basin.pro
r43 r46 1 1 ;+ 2 ; .. _sst_validation_scatter_2000_2009_basin.pro 2 ; .. _sst_validation_scatter_2000_2009_basin.pro: 3 3 ; 4 4 ; ========================================== … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph sst_validation_scatter_2000_2009_basin { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; sst_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/sst_2000_2009_erai_*.txt"]; 18 ; sst_tropflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/sst_2000_2009_trop_*.txt"]; 19 ; sst_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/sst_2000_2009_oaflx_*.txt"]; 20 ; sst_ncep [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/sst_2000_2009_ncep_*.txt"]; 21 ; sst_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/sst_2000_2009_ncep1_*.txt"]; 22 ; sst_tmi [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/sst_2000_2009_tmi_*.txt"]; 23 ; 24 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/sst_validation_scatter_2000_2009_basin.ps"]; 25 ; 26 ; sst_validation_scatter_2000_2009_basin [shape=box, 27 ; fontname=Courier, 28 ; color=blue, 29 ; URL="http://forge.ipsl.jussieu.fr/tropflux/brosster/trunk/src/paper01/fig7/sst_validation_scatter_2000_2009_basin.pro", 30 ; label="${TROPFLUX}/src/paper01/fig7/sst_validation_scatter_2000_2009_basin.pro"]; 31 ; 32 ; {sst_erai} -> {sst_validation_scatter_2000_2009_basin} -> {sst_tropflux sst_oaflux sst_ncep sst_ncep1 figure} 33 ; } 34 ; 11 35 ; SEE ALSO 12 36 ; ======== 13 37 ; 14 38 ; :ref:`tropflux_profile.sh` 39 ; :ref:`tropflux_init.pro` 40 ; :ref:`cm_tropflux.pro` 41 ; 42 ; :func:`x_site_location` 43 ; :func:`y_site_location` 44 ; 45 ; :ref:`read_variables_v2.pro` 46 ; :ref:`statistics_3var_v1.pro` 15 47 ; 16 48 ; EXAMPLES … … 20 52 ; 21 53 ; IDL> @tropflux_init 22 ; IDL> date1= ++23 ; IDL> date2= ++54 ; IDL> date1=19890101L 55 ; IDL> date2=20091231L 24 56 ; IDL> sst_validation_scatter_2000_2009_basin, date1, date2 25 57 ; 58 ; TODO 59 ; ==== 60 ; 61 ; make it work on cratos : pb restore 62 ; 63 ; ++ mooring data in graphviz 64 ; 65 ; coding rules 66 ; 67 ; get rid of spwan 68 ; 69 ; complete description 70 ; 71 ; handle IO error 26 72 ; 27 73 ; EVOLUTIONS … … 30 76 ; $Id$ 31 77 ; 78 ; - fplod 20110420T101535Z aedon.locean-ipsl.upmc.fr (Darwin) 79 ; 80 ; * remove hard coding path 81 ; * add graphviz 82 ; * externalize functions 83 ; 32 84 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 33 85 ; … … 35 87 ; 36 88 ;- 37 pro sst_validation_scatter_2000_2009_basin, date1,date238 @c ommon39 89 pro sst_validation_scatter_2000_2009_basin, date1, date2 90 @cm_general 91 @cm_tropflux 40 92 reinitplt, /z,/invert 41 93 key_portrait = 1 42 94 43 95 openps, FILENAME = 'idl.ps' 44 ;; Before running this program, you have to compile the following subrutines45 ;; 1. .r read_era_total46 ;; 2. .r read_variables_v247 ;; 3. .r read_era_box48 96 49 97 ;; Give the location of mooring for validation of basic meteorological variables 50 51 52 98 sitelist=['8s67e','12s55e', '8s55e', '8s80.5e', '1.5s80.5e', '0n80.5e', '1.5n80.5e', '1.5s90e', $ 53 99 '0n90e', '1.5n90e', '4n90e','8n90e','12n90e', '15n90e', '5s95e', $ … … 80 126 close,/all 81 127 82 fi_sst_erai= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_erai_'+ocean+'.txt'128 fi_sst_erai=tropflux_id_env+'sst_2000_2009_erai_'+ocean+'.txt' 83 129 openw,1,fi_sst_erai 84 fi_sst_trop= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_trop_'+ocean+'.txt'130 fi_sst_trop=tropflux_id_env+'sst_2000_2009_trop_'+ocean+'.txt' 85 131 openw,2,fi_sst_trop 86 fi_sst_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_oaflx_'+ocean+'.txt'132 fi_sst_oaflx=tropflux_id_env+'sst_2000_2009_oaflx_'+ocean+'.txt' 87 133 openw,3,fi_sst_oaflx 88 fi_sst_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_ncep_'+ocean+'.txt'134 fi_sst_ncep=tropflux_id_env+'sst_2000_2009_ncep_'+ocean+'.txt' 89 135 openw,4,fi_sst_ncep 90 fi_sst_tmi= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_tmi_'+ocean+'.txt'136 fi_sst_tmi=tropflux_id_env+'sst_2000_2009_tmi_'+ocean+'.txt' 91 137 openw,5,fi_sst_tmi 92 fi_sst_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_ncep1_'+ocean+'.txt'138 fi_sst_ncep1=tropflux_id_env+'sst_2000_2009_ncep1_'+ocean+'.txt' 93 139 openw,6,fi_sst_ncep1 94 140 … … 104 150 ;; first reading the whole ERAI uncorrected and corrected data 105 151 106 ;file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_sst_19890101_20091231_oafluxgrid.nc'107 ;initncdf, file108 ;unc=read_ncdf('sst',date1,date2,file=file,/nostr) & unc=unc-273.15109 ;help, unc110 111 ;file='/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_sst_19890101_20091231_v20.nc'112 ;initncdf, file113 ;cor=read_ncdf('sst',date1,date2,file=file,/nostr) & cor=cor-273.15114 ;help, cor115 116 ;file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/OAFlux_basic_variables_1985_2009.nc'117 ;initncdf, file118 ;oaf=read_ncdf("sst", date1, date2, file=file,/nostr)119 ;help, oaf120 121 ;fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/sst_ncep2_oafluxgrid_19890101_20091231.nc'122 ;initncdf, fi123 ;nce=read_ncdf("sst", date1-1, date2, file=fi,/nostr)124 ;nce=nce-273.15125 ;help, nce126 127 ;fi='/Volumes/Iomega_HDD/work/flux_reconstruction/gridded_data/tmi_OI_oafluxgrid_30N30S.nc'128 ;initncdf, fi129 ;sst_tmi=read_ncdf("sst", date1, date2, file=fi,/nostr)130 ;help, sst_tmi131 132 ;file='/Volumes/Iomega_HDD/flux_reconstruction/ncep/sst_ncep1_19890101_20091231.nc'133 ;initncdf, file134 ;nce1=read_ncdf("sst", date1, date2, file=file,/nostr)135 ;nce1=nce1-273.15136 ;help, nce1137 138 152 ;save, unc, cor, oaf, nce, sst_tmi, nce1, filename="sst_era_trop_oaf_nce_tmi_2000_2009_global.idl" 139 153 ;; full data from 2000-2009 period are read first, and hence the above lines are commented … … 143 157 ;; data from 20000101, 20090931 144 158 nn=n_elements(sitelist) 145 date1=date1146 date2=date2147 159 for n=0, nn-1 do begin 148 160 … … 216 228 close,/all 217 229 218 fi_sst_erai= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_erai_'+ocean+'.txt'230 fi_sst_erai=tropflux_id_env+'sst_2000_2009_erai_'+ocean+'.txt' 219 231 res=read_ascii(fi_sst_erai,data_start=1) 220 232 ff=res.field1 … … 242 254 oplot, mean_tao, yfit, color=250, thick=2 243 255 244 fi_sst_trop= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_trop_'+ocean+'.txt'256 fi_sst_trop=tropflux_id_env+'sst_2000_2009_trop_'+ocean+'.txt' 245 257 res=read_ascii(fi_sst_trop,data_start=1) 246 258 ff=res.field1 … … 269 281 oplot, mean_tao, yfit, color=250, thick=2 270 282 271 fi_sst_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_oaflx_'+ocean+'.txt'283 fi_sst_oaflx=tropflux_id_env+'sst_2000_2009_oaflx_'+ocean+'.txt' 272 284 res=read_ascii(fi_sst_oaflx,data_start=1) 273 285 ff=res.field1 … … 298 310 299 311 300 fi_sst_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_ncep_'+ocean+'.txt'312 fi_sst_ncep=tropflux_id_env+'sst_2000_2009_ncep_'+ocean+'.txt' 301 313 res=read_ascii(fi_sst_ncep,data_start=1) 302 314 ff=res.field1 … … 326 338 327 339 328 fi_sst_tmi= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_tmi_'+ocean+'.txt'340 fi_sst_tmi=tropflux_id_env+'sst_2000_2009_tmi_'+ocean+'.txt' 329 341 res=read_ascii(fi_sst_tmi,data_start=1) 330 342 ff=res.field1 … … 353 365 oplot, mean_tao, yfit, color=250, thick=2 354 366 355 fi_sst_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/sst_2000_2009_ncep1_'+ocean+'.txt'367 fi_sst_ncep1=tropflux_id_env+'sst_2000_2009_ncep1_'+ocean+'.txt' 356 368 res=read_ascii(fi_sst_ncep1,data_start=1) 357 369 ff=res.field1 … … 382 394 closeps 383 395 384 fig='sst_validation_scatter_2000_2009_'+ocean+'.ps' 385 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 386 spawn, 'gv '+cpsdir+fig 387 return 396 fig=tropflux_od_env+'sst_validation_scatter_2000_2009_'+ocean+'.ps' 397 spawn, 'mv '+psdir+'idl.ps '+fig 398 spawn, 'gv '+fig 388 399 end 389 function x_site_location, site390 n1=strpos(site, 's')391 if (n1 gt -1) then begin392 ns=-1.393 x=strmid(site, 0, n1)394 x=float(x)*ns395 endif else begin396 n1=strpos(site, 'n')397 x=strmid(site, 0, n1)398 ny=1.399 x=float(x)*ny400 endelse401 return, float(x)402 end403 function y_site_location, site404 n1=strpos(site, 'e')405 if (n1 gt -1) then begin406 n=strpos(site, 's')407 if (n gt -1) then begin408 y=strmid(site, n+1, n1-n-1)409 endif else begin410 n=strpos(site, 'n')411 y=strmid(site, n+1, n1-n-1)412 endelse413 414 endif else begin415 n1=strpos(site, 'w')416 n=strpos(site, 's')417 if (n gt -1) then begin418 y=strmid(site, n+1, n1-n-1)419 y=180+(180-float(y))420 endif else begin421 n=strpos(site, 'n')422 y=strmid(site, n+1, n1-n-1)423 y=180+(180-float(y))424 endelse425 endelse426 return,float(y)427 end -
trunk/src/paper01/fig7/ws_validation_scatter_2000_2009_basin.pro
r43 r46 1 1 ;+ 2 2 ; 3 ; .. _ws_validation_scatter_2000_2009_basin.pro 3 ; .. _ws_validation_scatter_2000_2009_basin.pro: 4 4 ; 5 5 ; ========================================= … … 10 10 ; =========== 11 11 ; 12 ; .. graphviz:: 13 ; 14 ; digraph ws_validation_scatter_2000_2009_basin { 15 ; graph [ 16 ; rankdir="LR", 17 ; ] 18 ; ws_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/ws_2000_2009_erai_*.txt"]; 19 ; ws_tropflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/ws_2000_2009_trop_*.txt"]; 20 ; ws_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/ws_2000_2009_oaflx_*.txt"]; 21 ; ws_ncep [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/ws_2000_2009_ncep_*.txt"]; 22 ; ws_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/ws_2000_2009_ncep1_*.txt"]; 23 ; ws_tmi [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/ws_2000_2009_tmi_*.txt"]; 24 ; 25 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/ws_validation_scatter_2000_2009_basin.ps"]; 26 ; 27 ; ws_validation_scatter_2000_2009_basin [shape=box, 28 ; fontname=Courier, 29 ; color=blue, 30 ; URL="http://forge.ipsl.jussieu.fr/tropflux/browser/trunk/src/paper01/fig7/ws_validation_scatter_2000_2009_basin.pro", 31 ; label="${TROPFLUX}/src/paper01/fig7/ws_validation_scatter_2000_2009_basin.pro"]; 32 ; 33 ; {ws_erai} -> {ws_validation_scatter_2000_2009_basin} -> {ws_tropflux ws_oaflux ws_ncep ws_ncep1 ws_tmi figure} 34 ; } 35 ; 12 36 ; SEE ALSO 13 37 ; ======== 14 38 ; 15 39 ; :ref:`tropflux_profile.sh` 40 ; :ref:`tropflux_init.pro` 41 ; :ref:`cm_tropflux.pro` 42 ; 43 ; :func:`x_site_location` 44 ; :func:`y_site_location` 45 ; 46 ; :ref:`read_variables_v2.pro` 47 ; :ref:`statistics_3var_v1.pro` 16 48 ; 17 49 ; EXAMPLES … … 21 53 ; 22 54 ; IDL> @tropflux_init 23 ; IDL> date1= ++24 ; IDL> date2= ++55 ; IDL> date1=19890101L 56 ; IDL> date2=20091231L 25 57 ; IDL> ws_validation_scatter_2000_2009_basin, date1, date2 58 ; 59 ; TODO 60 ; ==== 61 ; 62 ; make it work on cratos : pb restore, missing data 63 ; 64 ; ++ mooring data in graphviz 65 ; 66 ; coding rules 67 ; 68 ; get rid of spwan 69 ; 70 ; complete description 71 ; 72 ; handle IO error 26 73 ; 27 74 ; EVOLUTIONS … … 36 83 ;- 37 84 pro ws_validation_scatter_2000_2009_basin,date1,date2 38 @c ommon39 85 @cm_general 86 @cm_tropflux 40 87 reinitplt, /z,/invert 41 88 key_portrait = 1 42 89 43 90 openps, FILENAME = 'idl.ps' 44 ;; Before running this program, you have to compile the following subrutines45 ;; 1. .r read_era_total46 ;; 2. .r read_variables_v247 ;; 3. .r read_era_box48 49 91 ;; Give the location of mooring for validation of basic meteorological variables 50 92 … … 101 143 close,/all 102 144 103 fi_ws_erai= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_erai_'+ocean+'.txt'145 fi_ws_erai=tropflux_id_env+'ws_2000_2009_erai_'+ocean+'.txt' 104 146 openw,1,fi_ws_erai 105 fi_ws_trop= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_trop_'+ocean+'.txt'147 fi_ws_trop=tropflux_id_env+'ws_2000_2009_trop_'+ocean+'.txt' 106 148 openw,2,fi_ws_trop 107 fi_ws_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_oaflx_'+ocean+'.txt'149 fi_ws_oaflx=tropflux_id_env+'ws_2000_2009_oaflx_'+ocean+'.txt' 108 150 openw,3,fi_ws_oaflx 109 fi_ws_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_ncep_'+ocean+'.txt'151 fi_ws_ncep=tropflux_id_env+'ws_2000_2009_ncep_'+ocean+'.txt' 110 152 openw,4,fi_ws_ncep 111 fi_ws_tmi= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_tmi_'+ocean+'.txt'153 fi_ws_tmi=tropflux_id_env+'ws_2000_2009_tmi_'+ocean+'.txt' 112 154 openw,5,fi_ws_tmi 113 fi_ws_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_ncep1_'+ocean+'.txt'155 fi_ws_ncep1=tropflux_id_env+'ws_2000_2009_ncep1_'+ocean+'.txt' 114 156 openw,6,fi_ws_ncep1 115 157 … … 125 167 ;; date1=20000101 & date2=20090931 126 168 127 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_ws_19890101_20091231_oafluxgrid.nc'169 file=tropflux_id_env+'erai_ws_19890101_20091231_oafluxgrid.nc' 128 170 initncdf, file 129 171 u=read_ncdf('u10',date1,date2,file=file,/nostr) … … 132 174 ;help, unc 133 175 134 ;file='/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_ws_19890101_20091231_v20.nc'135 ;initncdf, file136 ;cor=read_ncdf('ws',date1,date2,file=file,/nostr)137 ;help, cor138 139 ;file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/OAFlux_basic_variables_1985_2009.nc'140 ;initncdf, file141 ;oaf=read_ncdf("wind", date1, date2, file=file,/nostr)142 ;help, oaf143 144 ;fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/uwind_ncep2_oafluxgrid_19890101_20091231.nc'145 ;initncdf, fi146 ;u=read_ncdf("u", date1-1, date2, file=fi,/nostr)147 ;fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/vwind_ncep2_oafluxgrid_19890101_20091231.nc'148 ;initncdf, fi149 ;v=read_ncdf("v", date1-1, date2, file=fi,/nostr)150 ;nce=sqrt(u*u+v*v)151 ;help, nce152 153 ;dir='/Volumes/Iomega_HDD/work/flux_reconstruction/gridded_data/'154 ;fi=dir+'zonal_wind_speed_oafluxgrid_30N30S.nc'155 ;initncdf, fi156 ;u=read_ncdf("u", date1, date2, file=fi,/nostr)157 ;fi=dir+'meridional_wind_speed_oafluxgrid_30N30S.nc'158 ;initncdf, fi159 ;v=read_ncdf("v", date1, date2, file=fi,/nostr)160 ;ws_tmi=sqrt(u*u+v*v)161 ;help, ws_tmi162 163 ;file='/Volumes/Iomega_HDD/flux_reconstruction/ncep/wind_ncep1_19890101_20091231.nc'164 ;initncdf, file165 ;u=read_ncdf("u", date1, date2, file=file,/nostr)166 ;v=read_ncdf("v", date1, date2, file=file,/nostr)167 ;nce1=sqrt(u*u+v*v)168 ;help, nce1169 170 176 ;save, unc, cor, oaf, nce, ws_tmi, nce1, filename="ws_era_trop_oaf_nce_qscat_2000_2009_global.idl" 171 177 restore, file="/Users/pkb/work/MY_SAXO/ws_era_trop_oaf_nce_qscat_2000_2009_global.idl" … … 173 179 174 180 nn=n_elements(sitelist) 175 date1=date1176 date2=date2177 181 for n=0, nn-1 do begin 178 182 … … 240 244 endfor 241 245 close,/all 242 fi_ws_erai= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_erai_'+ocean+'.txt'246 fi_ws_erai=tropflux_id_env+'ws_2000_2009_erai_'+ocean+'.txt' 243 247 res=read_ascii(fi_ws_erai,data_start=1) 244 248 ff=res.field1 … … 266 270 oplot, mean_tao, yfit, color=250, thick=2 267 271 268 fi_ws_trop= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_trop_'+ocean+'.txt'272 fi_ws_trop=tropflux_id_env+'ws_2000_2009_trop_'+ocean+'.txt' 269 273 res=read_ascii(fi_ws_trop,data_start=1) 270 274 ff=res.field1 … … 293 297 oplot, mean_tao, yfit, color=250, thick=2 294 298 295 fi_ws_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_oaflx_'+ocean+'.txt'299 fi_ws_oaflx=tropflux_id_env+'ws_2000_2009_oaflx_'+ocean+'.txt' 296 300 res=read_ascii(fi_ws_oaflx,data_start=1) 297 301 ff=res.field1 … … 322 326 323 327 324 fi_ws_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_ncep_'+ocean+'.txt'328 fi_ws_ncep=tropflux_id_env+'ws_2000_2009_ncep_'+ocean+'.txt' 325 329 res=read_ascii(fi_ws_ncep,data_start=1) 326 330 ff=res.field1 … … 349 353 oplot, mean_tao, yfit, color=250, thick=2 350 354 351 fi_ws_tmi= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_tmi_'+ocean+'.txt'355 fi_ws_tmi=tropflux_id_env+'ws_2000_2009_tmi_'+ocean+'.txt' 352 356 res=read_ascii(fi_ws_tmi,data_start=1) 353 357 ff=res.field1 … … 377 381 378 382 379 fi_ws_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_ncep1_'+ocean+'.txt'383 fi_ws_ncep1=tropflux_id_env+'ws_2000_2009_ncep1_'+ocean+'.txt' 380 384 res=read_ascii(fi_ws_ncep1,data_start=1) 381 385 ff=res.field1 … … 406 410 closeps 407 411 408 fig='ws_validation_scatter_2000_2009_'+ocean+'.ps' 409 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 410 spawn, 'gv '+cpsdir+fig 411 return 412 fig=tropflux_od_env+'ws_validation_scatter_2000_2009_'+ocean+'.ps' 413 spawn, 'mv '+psdir+'idl.ps '+fig 414 spawn, 'gv '+fig 412 415 end 413 function x_site_location, site414 n1=strpos(site, 's')415 if (n1 gt -1) then begin416 ns=-1.417 x=strmid(site, 0, n1)418 x=float(x)*ns419 endif else begin420 n1=strpos(site, 'n')421 x=strmid(site, 0, n1)422 ny=1.423 x=float(x)*ny424 endelse425 return, float(x)426 end427 function y_site_location, site428 n1=strpos(site, 'e')429 if (n1 gt -1) then begin430 n=strpos(site, 's')431 if (n gt -1) then begin432 y=strmid(site, n+1, n1-n-1)433 endif else begin434 n=strpos(site, 'n')435 y=strmid(site, n+1, n1-n-1)436 endelse437 438 endif else begin439 n1=strpos(site, 'w')440 n=strpos(site, 's')441 if (n gt -1) then begin442 y=strmid(site, n+1, n1-n-1)443 y=180+(180-float(y))444 endif else begin445 n=strpos(site, 'n')446 y=strmid(site, n+1, n1-n-1)447 y=180+(180-float(y))448 endelse449 endelse450 return,float(y)451 end -
trunk/src/paper01/fig8/lhf_validation_scatter_2000_2009.pro
r43 r46 1 1 ;+ 2 ; .. _lhf_validation_scatter_2000_2009.pro 2 ; .. _lhf_validation_scatter_2000_2009.pro: 3 3 ; 4 4 ; ==================================== … … 6 6 ; ==================================== 7 7 ; 8 ; 8 ; DESCRIPTION 9 9 ; =========== 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph lhf_validation_scatter_2000_2009 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; lhf_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_2000_2009_erai_v52.txt"]; 18 ; lhf_tropflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/lhf_2000_2009_trop_v52.txt"]; 19 ; lhf_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/lhf_2000_2009_oaflx_v52.txt"]; 20 ; lhf_ncep [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/lhf_2000_2009_ncep_v52.txt"]; 21 ; lhf_ncep2_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_ncep2_oafluxgrid_19890101_20091231.nc"]; 22 ; lhf_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/lhf_2000_2009_ncep1_v52.txt"]; 23 ; lhf_ncep1_2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/fluxe_ncep1_19890101_20091231.nc"]; 24 ; lhf_erai_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_lhf_19890101_20091231_oafluxgrid.nc"]; 25 ; lhf_tropflux2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_19890101_20091231.nc"]; 26 ; lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lhf_oafluxgrid_1985_2009.nc"]; 27 ; 28 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/lhf_validation_scatter_2000_2009.ps"]; 29 ; 30 ; lhf_validation_scatter_2000_2009 [shape=box, 31 ; fontname=Courier, 32 ; color=blue, 33 ; URL="http://forge.ipsl.jussieu.fr/tropflux/brolhfer/trunk/src/paper01/fig7/lhf_validation_scatter_2000_2009.pro", 34 ; label="${TROPFLUX}/src/paper01/fig7/lhf_validation_scatter_2000_2009.pro"]; 35 ; 36 ; {lhf_erai lhf_ncep2_oafluxgrid lhf_ncep1_2 lhf_erai_oafluxgrid lhf_tropflux2 lhf_oafluxgrid} -> {lhf_validation_scatter_2000_2009} -> {lhf_tropflux lhf_oaflux lhf_ncep lhf_ncep1 figure} 37 ; } 10 38 ; 11 39 ; SEE ALSO … … 13 41 ; 14 42 ; :ref:`tropflux_profile.sh` 43 ; :ref:`tropflux_init.pro` 44 ; :ref:`cm_tropflux.pro` 45 ; 46 ; :func:`x_site_location` 47 ; :func:`y_site_location` 48 ; 49 ; :ref:`read_variables_v2.pro` 50 ; :ref:`statistics_3var_v1.pro` 15 51 ; 16 52 ; EXAMPLES … … 20 56 ; 21 57 ; IDL> @tropflux_init 22 ; IDL> date1= ++23 ; IDL> date2= ++58 ; IDL> date1=19890101L 59 ; IDL> date2=20091231L 24 60 ; IDL> lhf_validation_scatter_2000_2009, date1, date2 61 ; 62 ; TODO 63 ; ==== 64 ; 65 ; make it work on cratos : missing data 66 ; 67 ; ++ mooring data in graphviz 68 ; 69 ; coding rules 70 ; 71 ; get rid of spwan 72 ; 73 ; complete description 74 ; 75 ; handle IO error 25 76 ; 26 77 ; EVOLUTIONS … … 29 80 ; $Id$ 30 81 ; 82 ; - fplod 20110420T102937Z aedon.locean-ipsl.upmc.fr (Darwin) 83 ; 84 ; * remove hard coding path 85 ; * add graphviz 86 ; * externalize functions 87 ; 31 88 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 32 89 ; … … 35 92 ;- 36 93 pro lhf_validation_scatter_2000_2009,date1,date2 37 @c ommon38 94 @cm_general 95 @cm_tropflux 39 96 reinitplt, /z,/invert 40 97 key_portrait = 1 41 98 42 99 openps, FILENAME = 'idl.ps' 43 ;; Before running this program, you have to compile the following subrutines44 45 ;; 1. read_variables_v246 ;; 2. statistics_3var_v147 100 48 101 ;; evaluation is done for 20000101 - 20091231 period … … 66 119 close,/all 67 120 68 fi_lhf_erai= '/Users/pkb/work/MY_SAXO/flux_automat/lhf_2000_2009_erai_v52.txt'121 fi_lhf_erai=tropflux_id_env+'lhf_2000_2009_erai_v52.txt' 69 122 openw,1,fi_lhf_erai 70 fi_lhf_trop= '/Users/pkb/work/MY_SAXO/flux_automat/lhf_2000_2009_trop_v52.txt'123 fi_lhf_trop=tropflux_id_env+'lhf_2000_2009_trop_v52.txt' 71 124 openw,2,fi_lhf_trop 72 fi_lhf_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/lhf_2000_2009_oaflx_v52.txt'125 fi_lhf_oaflx=tropflux_id_env+'lhf_2000_2009_oaflx_v52.txt' 73 126 openw,3,fi_lhf_oaflx 74 fi_lhf_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/lhf_2000_2009_ncep_v52.txt'127 fi_lhf_ncep=tropflux_id_env+'lhf_2000_2009_ncep_v52.txt' 75 128 openw,4,fi_lhf_ncep 76 fi_lhf_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/lhf_2000_2009_ncep1_v52.txt'129 fi_lhf_ncep1=tropflux_id_env+'lhf_2000_2009_ncep1_v52.txt' 77 130 openw,5,fi_lhf_ncep1 78 131 … … 85 138 ;; first reading the whole ERAI uncorrected and corrected data 86 139 87 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lhf_19890101_20091231_oafluxgrid.nc'140 file=tropflux_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc' 88 141 initncdf, file 89 142 unc=read_ncdf('lhf',date1,date2,file=file,/nostr) 90 143 help, unc 91 144 92 file= "/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc"145 file=tropflux_id_env+"TropFlux_19890101_20091231.nc" 93 146 initncdf, file 94 147 cor=read_ncdf('lhf',date1,date2,file=file,/nostr) … … 96 149 help, cor 97 150 98 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lhf_oafluxgrid_1985_2009.nc'151 file=tropflux_id_env+'lhf_oafluxgrid_1985_2009.nc' 99 152 initncdf, file 100 153 oaf=read_ncdf("lhf", date1, date2, file=file,/nostr) 101 154 help, oaf 102 155 103 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/lhf_ncep2_oafluxgrid_19890101_20091231.nc'156 fi=tropflux_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc' 104 157 initncdf, fi 105 158 nce=read_ncdf("lhf", date1, date2, file=fi,/nostr) 106 159 help, nce 107 160 108 file= '/Volumes/Iomega_HDD/flux_reconstruction/ncep/fluxe_ncep1_19890101_20091231.nc'161 file=tropflux_id_env+'fluxe_ncep1_19890101_20091231.nc' 109 162 initncdf, file 110 163 nce1=-1*read_ncdf("lhf", date1, date2, file=file,/nostr) … … 113 166 nsmooth=1. 114 167 nn=n_elements(sitelist) 115 date1=date1116 date2=date2117 168 for n=0, nn-1 do begin 118 169 … … 177 228 close,/all 178 229 179 fi_lhf_erai= '/Users/pkb/work/MY_SAXO/flux_automat/lhf_2000_2009_erai_v52.txt'230 fi_lhf_erai=tropflux_id_env+'lhf_2000_2009_erai_v52.txt' 180 231 res=read_ascii(fi_lhf_erai,data_start=1) 181 232 ff=res.field1 … … 208 259 oplot, [20,200], [20,200] 209 260 210 fi_lhf_trop= '/Users/pkb/work/MY_SAXO/flux_automat/lhf_2000_2009_trop_v52.txt'261 fi_lhf_trop=tropflux_id_env+'lhf_2000_2009_trop_v52.txt' 211 262 res=read_ascii(fi_lhf_trop,data_start=1) 212 263 ff=res.field1 … … 240 291 241 292 242 fi_lhf_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/lhf_2000_2009_oaflx_v52.txt'293 fi_lhf_oaflx=tropflux_id_env+'lhf_2000_2009_oaflx_v52.txt' 243 294 res=read_ascii(fi_lhf_oaflx,data_start=1) 244 295 ff=res.field1 … … 271 322 oplot, [20,200], [20,200] 272 323 273 fi_lhf_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/lhf_2000_2009_ncep_v52.txt'324 fi_lhf_ncep=tropflux_id_env+'lhf_2000_2009_ncep_v52.txt' 274 325 res=read_ascii(fi_lhf_ncep,data_start=1) 275 326 ff=res.field1 … … 302 353 oplot, [20,200], [20,200] 303 354 304 fi_lhf_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/lhf_2000_2009_ncep1_v52.txt'355 fi_lhf_ncep1=tropflux_id_env+'lhf_2000_2009_ncep1_v52.txt' 305 356 res=read_ascii(fi_lhf_ncep1,data_start=1) 306 357 ff=res.field1 … … 335 386 closeps 336 387 337 fig='lhf_validation_scatter_2000_2009.ps' 338 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 339 spawn, 'gv '+cpsdir+fig 340 return 388 fig=tropflux_od_env+'lhf_validation_scatter_2000_2009.ps' 389 spawn, 'mv '+psdir+'idl.ps '+fig 390 spawn, 'gv '+fig 341 391 end 342 function x_site_location, site343 n1=strpos(site, 's')344 if (n1 gt -1) then begin345 ns=-1.346 x=strmid(site, 0, n1)347 x=float(x)*ns348 endif else begin349 n1=strpos(site, 'n')350 x=strmid(site, 0, n1)351 ny=1.352 x=float(x)*ny353 endelse354 return, float(x)355 end356 function y_site_location, site357 n1=strpos(site, 'e')358 if (n1 gt -1) then begin359 n=strpos(site, 's')360 if (n gt -1) then begin361 y=strmid(site, n+1, n1-n-1)362 endif else begin363 n=strpos(site, 'n')364 y=strmid(site, n+1, n1-n-1)365 endelse366 367 endif else begin368 n1=strpos(site, 'w')369 n=strpos(site, 's')370 if (n gt -1) then begin371 y=strmid(site, n+1, n1-n-1)372 y=180+(180-float(y))373 endif else begin374 n=strpos(site, 'n')375 y=strmid(site, n+1, n1-n-1)376 y=180+(180-float(y))377 endelse378 endelse379 return,float(y)380 end -
trunk/src/paper01/fig8/shf_validation_scatter_2000_2009.pro
r43 r46 1 1 ;+ 2 ; .. _shf_validation_scatter_2000_2009.pro 2 ; .. _shf_validation_scatter_2000_2009.pro: 3 3 ; 4 4 ; ==================================== … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph shf_validation_scatter_2000_2009 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; shf_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_2000_2009_erai_v52.txt"]; 18 ; shf_tropflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/shf_2000_2009_trop_v52.txt"]; 19 ; shf_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/shf_2000_2009_oaflx_v52.txt"]; 20 ; shf_ncep [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/shf_2000_2009_ncep_v52.txt"]; 21 ; shf_ncep2_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_ncep2_oafluxgrid_19890101_20091231.nc"]; 22 ; shf_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/shf_2000_2009_ncep1_v52.txt"]; 23 ; shf_ncep1_2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/fluxe_ncep1_19890101_20091231.nc"]; 24 ; shf_erai_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_shf_19890101_20091231_oafluxgrid.nc"]; 25 ; shf_tropflux2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_19890101_20091231.nc"]; 26 ; shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/shf_oafluxgrid_1985_2009.nc"]; 27 ; 28 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/shf_validation_scatter_2000_2009.ps"]; 29 ; 30 ; shf_validation_scatter_2000_2009 [shape=box, 31 ; fontname=Courier, 32 ; color=blue, 33 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broshfer/trunk/src/paper01/fig8/shf_validation_scatter_2000_2009.pro", 34 ; label="${TROPFLUX}/src/paper01/fig8/shf_validation_scatter_2000_2009.pro"]; 35 ; 36 ; {shf_erai shf_ncep2_oafluxgrid shf_ncep1_2 shf_erai_oafluxgrid shf_tropflux2 shf_oafluxgrid} -> {shf_validation_scatter_2000_2009} -> {shf_tropflux shf_oaflux shf_ncep shf_ncep1 figure} 37 ; } 38 ; 11 39 ; SEE ALSO 12 40 ; ======== 13 41 ; 14 42 ; :ref:`tropflux_profile.sh` 43 ; :ref:`tropflux_init.pro` 44 ; :ref:`cm_tropflux.pro` 45 ; 46 ; :func:`x_site_location` 47 ; :func:`y_site_location` 48 ; 49 ; :ref:`read_variables_v2.pro` 50 ; :ref:`statistics_3var_v1.pro` 15 51 ; 16 52 ; EXAMPLES … … 20 56 ; 21 57 ; IDL> @tropflux_init 22 ; IDL> date1= ++23 ; IDL> date2= ++58 ; IDL> date1=19890101L 59 ; IDL> date2=20091231L 24 60 ; IDL> shf_validation_scatter_2000_2009, date1, date2 61 ; 62 ; TODO 63 ; ==== 64 ; 65 ; make it work on cratos : missing data 66 ; 67 ; ++ mooring data in graphviz 68 ; 69 ; coding rules 70 ; 71 ; get rid of spwan 72 ; 73 ; complete description 74 ; 75 ; handle IO error 25 76 ; 26 77 ; EVOLUTIONS … … 29 80 ; $Id$ 30 81 ; 82 ; - fplod 20110420T103316Z aedon.locean-ipsl.upmc.fr (Darwin) 83 ; 84 ; * remove hard coding path 85 ; * add graphviz 86 ; * externalize functions 87 ; 31 88 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 32 89 ; … … 34 91 ; 35 92 ;- 36 pro shf_validation_scatter_2000_2009, date1,date237 @c ommon38 93 pro shf_validation_scatter_2000_2009, date1, date2 94 @cm_general 95 @cm_tropflux 39 96 reinitplt, /z,/invert 40 97 key_portrait = 1 41 98 42 99 openps, FILENAME = 'idl.ps' 43 ;; Before running this program, you have to compile the following subrutines44 ;; 1. .r read_variables_sh45 ;; 2. .r statistics_3var_v146 100 47 101 ;; evaluation is done for 20000101, 20091231 period … … 66 120 close,/all 67 121 68 fi_shf_erai= '/Users/pkb/work/MY_SAXO/flux_automat/shf_2000_2009_erai_v52.txt'122 fi_shf_erai=tropflux_id_env+'shf_2000_2009_erai_v52.txt' 69 123 openw,1,fi_shf_erai 70 fi_shf_trop= '/Users/pkb/work/MY_SAXO/flux_automat/shf_2000_2009_trop_v52.txt'124 fi_shf_trop=tropflux_id_env+'shf_2000_2009_trop_v52.txt' 71 125 openw,2,fi_shf_trop 72 fi_shf_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/shf_2000_2009_oaflx_v52.txt'126 fi_shf_oaflx=tropflux_id_env+'shf_2000_2009_oaflx_v52.txt' 73 127 openw,3,fi_shf_oaflx 74 fi_shf_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/shf_2000_2009_ncep_v52.txt'128 fi_shf_ncep=tropflux_id_env+'shf_2000_2009_ncep_v52.txt' 75 129 openw,4,fi_shf_ncep 76 130 77 fi_shf_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/shf_2000_2009_ncep1_v52.txt'131 fi_shf_ncep1=tropflux_id_env+'shf_2000_2009_ncep1_v52.txt' 78 132 openw,5,fi_shf_ncep1 79 133 … … 87 141 ;; first reading the whole ERAI uncorrected and corrected data 88 142 89 file= '/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_shf_19890101_20091231_oafluxgrid.nc'143 file=tropflux_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc' 90 144 initncdf, file 91 145 unc=read_ncdf('shf',date1,date2,file=file,/nostr) 92 146 help, unc 93 147 94 file= '/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_19890101_20091231_v51.nc'148 file=tropflux_id_env+'TropFlux_19890101_20091231_v51.nc' 95 149 initncdf, file 96 150 cor=read_ncdf('shf',date1,date2,file=file,/nostr) … … 98 152 help, cor 99 153 100 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/shf_oafluxgrid_1985_2009.nc'154 file=tropflux_id_env+'shf_oafluxgrid_1985_2009.nc' 101 155 initncdf, file 102 156 oaf=read_ncdf("shf", date1, date2, file=file,/nostr) 103 157 help, oaf 104 158 105 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/shf_ncep2_oafluxgrid_19890101_20091231.nc'159 fi=tropflux_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc' 106 160 initncdf, fi 107 161 nce=read_ncdf("shf", date1, date2, file=fi,/nostr) 108 162 help, nce 109 163 110 file= '/Volumes/Iomega_HDD/flux_reconstruction/ncep/fluxe_ncep1_19890101_20091231.nc'164 file=tropflux_id_env+'fluxe_ncep1_19890101_20091231.nc' 111 165 initncdf, file 112 166 nce1=-1*read_ncdf("shf", date1, date2, file=file,/nostr) … … 114 168 115 169 nn=n_elements(sitelist) 116 date1=date1117 date2=date2118 170 for n=0, nn-1 do begin 119 171 … … 176 228 close,/all 177 229 178 fi_shf_erai= '/Users/pkb/work/MY_SAXO/flux_automat/shf_2000_2009_erai_v52.txt'230 fi_shf_erai=tropflux_id_env+'shf_2000_2009_erai_v52.txt' 179 231 res=read_ascii(fi_shf_erai,data_start=1) 180 232 ff=res.field1 … … 208 260 209 261 210 fi_shf_trop= '/Users/pkb/work/MY_SAXO/flux_automat/shf_2000_2009_trop_v52.txt'262 fi_shf_trop=tropflux_id_env+'shf_2000_2009_trop_v52.txt' 211 263 res=read_ascii(fi_shf_trop,data_start=1) 212 264 ff=res.field1 … … 240 292 241 293 242 fi_shf_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/shf_2000_2009_oaflx_v52.txt'294 fi_shf_oaflx=tropflux_id_env+'shf_2000_2009_oaflx_v52.txt' 243 295 res=read_ascii(fi_shf_oaflx,data_start=1) 244 296 ff=res.field1 … … 271 323 oplot, [-5,25], [-5,25] 272 324 273 fi_shf_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/shf_2000_2009_ncep_v52.txt'325 fi_shf_ncep=tropflux_id_env+'shf_2000_2009_ncep_v52.txt' 274 326 res=read_ascii(fi_shf_ncep,data_start=1) 275 327 ff=res.field1 … … 302 354 oplot, [-5,25], [-5,25] 303 355 304 fi_shf_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/shf_2000_2009_ncep1_v52.txt'356 fi_shf_ncep1=tropflux_id_env+'shf_2000_2009_ncep1_v52.txt' 305 357 res=read_ascii(fi_shf_ncep1,data_start=1) 306 358 ff=res.field1 … … 335 387 closeps 336 388 337 fig='shf_validation_scatter_2000_2009.ps' 338 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 339 spawn, 'gv '+cpsdir+fig 340 return 389 fig=tropflux_od_env+'shf_validation_scatter_2000_2009.ps' 390 spawn, 'mv '+psdir+'idl.ps '+fig 391 spawn, 'gv '+fig 341 392 end 342 function x_site_location, site343 n1=strpos(site, 's')344 if (n1 gt -1) then begin345 ns=-1.346 x=strmid(site, 0, n1)347 x=float(x)*ns348 endif else begin349 n1=strpos(site, 'n')350 x=strmid(site, 0, n1)351 ny=1.352 x=float(x)*ny353 endelse354 return, float(x)355 end356 function y_site_location, site357 n1=strpos(site, 'e')358 if (n1 gt -1) then begin359 n=strpos(site, 's')360 if (n gt -1) then begin361 y=strmid(site, n+1, n1-n-1)362 endif else begin363 n=strpos(site, 'n')364 y=strmid(site, n+1, n1-n-1)365 endelse366 367 endif else begin368 n1=strpos(site, 'w')369 n=strpos(site, 's')370 if (n gt -1) then begin371 y=strmid(site, n+1, n1-n-1)372 y=180+(180-float(y))373 endif else begin374 n=strpos(site, 'n')375 y=strmid(site, n+1, n1-n-1)376 y=180+(180-float(y))377 endelse378 endelse379 return,float(y)380 end -
trunk/src/paper01/fig9/lwr_validation_scatter_2000_2007.pro
r43 r46 1 1 ;+ 2 ; .. _lwr_validation_scatter_2000_2007.pro 2 ; .. _lwr_validation_scatter_2000_2007.pro: 3 3 ; 4 4 ; ==================================== … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph lwr_validation_scatter_2000_2007 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; lwr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lwr_2000_2007_erai.txt"]; 18 ; lwr_tropflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/lwr_2000_2007_trop.txt"]; 19 ; lwr_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/lwr_2000_2007_oaflx.txt"]; 20 ; lwr_ncep [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/lwr_2000_2007_ncep.txt"]; 21 ; lwr_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/lwr_2000_2007_ncep1.txt"]; 22 ; lwr_ncep1_2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/fluxe_ncep1_19890101_20091231.nc"]; 23 ; lwr_clark [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lwr_2000_2007_clark.txt"]; 24 ; lwr_erai_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_fluxes_19930101_20090801_TROP_oafluxgrid.nc"]; 25 ; lwr_tropflux2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_lwr_19890101_20091231.nc"]; 26 ; lwr_tropflux3 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_19890101_20091231.nc"]; 27 ; lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/lwr_oafluxgrid_1985_2007.nc"]; 28 ; lwr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/NCEP2_flux_19890101_20090729.nc"]; 29 ; 30 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/lwr_validation_scatter_2000_2007.ps"]; 31 ; 32 ; lwr_validation_scatter_2000_2007 [shape=box, 33 ; fontname=Courier, 34 ; color=blue, 35 ; URL="http://forge.ipsl.jussieu.fr/tropflux/brolwrer/trunk/src/paper01/fig9/lwr_validation_scatter_2000_2007.pro", 36 ; label="${TROPFLUX}/src/paper01/fig9/lwr_validation_scatter_2000_2007.pro"]; 37 ; 38 ; {lwr_erai lwr_nceplwr_ncep1 lwr_ncep1_2 lwr_clark lwr_erai_oafluxgrid lwr_tropflux2 lwr_tropflux3 lwr_oafluxgrid lwr_ncep2} -> {lwr_validation_scatter_2000_2007} -> {lwr_tropflux lwr_oaflux lwr_ncep lwr_ncep1 figure} 39 ; } 40 ; 11 41 ; SEE ALSO 12 42 ; ======== … … 14 44 ; :ref:`tropflux_profile.sh` 15 45 ; 46 ; :ref:`tropflux_init.pro` 47 ; :ref:`cm_tropflux.pro` 48 ; 49 ; :func:`x_site_location` 50 ; :func:`y_site_location` 51 ; 52 ; :ref:`read_lw_global_v2.pro` 53 ; :ref:`statistics_3var_v1.pro` 54 ; 16 55 ; EXAMPLES 17 56 ; ======== … … 20 59 ; 21 60 ; IDL> @tropflux_init 22 ; IDL> date1= ++23 ; IDL> date2= ++61 ; IDL> date1=19890101L 62 ; IDL> date2=20091231L 24 63 ; IDL> lwr_validation_scatter_2000_2007, date1, date2 64 ; 65 ; TODO 66 ; ==== 67 ; 68 ; mùake it work on cratos : missing data 69 ; 70 ; ++ mooring data in graphviz 71 ; 72 ; coding rules 73 ; 74 ; get rid of spwan 75 ; 76 ; complete description 77 ; 78 ; handle IO error 25 79 ; 26 80 ; EVOLUTIONS … … 29 83 ; $Id$ 30 84 ; 85 ; - fplod 20110420T104246Z aedon.locean-ipsl.upmc.fr (Darwin) 86 ; 87 ; * remove hard coding path 88 ; * add graphviz 89 ; * externalize functions 90 ; 31 91 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 32 92 ; … … 34 94 ; 35 95 ;- 36 pro lwr_validation_scatter_2000_2007, date1,date237 @c ommon38 96 pro lwr_validation_scatter_2000_2007, date1, date2 97 @cm_general 98 @cm_tropflux 39 99 reinitplt, /z,/invert 40 100 key_portrait = 1 41 101 42 102 openps, FILENAME = 'idl.ps' 43 ;; Before running this program, you have to compile the following subrutines44 ;; 1. .r read_lw_global_v245 ;; 2. .r statistics_3var_v146 47 103 ;; evaluation is done for 20000101-20071231 period 48 104 … … 70 126 close,/all 71 127 72 fi_lwr_erai= '/Users/pkb/work/MY_SAXO/flux_automat/lwr_2000_2007_erai.txt'128 fi_lwr_erai=tropflux_id_env+'lwr_2000_2007_erai.txt' 73 129 openw,1,fi_lwr_erai 74 fi_lwr_trop= '/Users/pkb/work/MY_SAXO/flux_automat/lwr_2000_2007_trop.txt'130 fi_lwr_trop=tropflux_id_env+'lwr_2000_2007_trop.txt' 75 131 openw,2,fi_lwr_trop 76 fi_lwr_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/lwr_2000_2007_oaflx.txt'132 fi_lwr_oaflx=tropflux_id_env+'lwr_2000_2007_oaflx.txt' 77 133 openw,3,fi_lwr_oaflx 78 fi_lwr_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/lwr_2000_2007_ncep.txt'134 fi_lwr_ncep=tropflux_id_env+'lwr_2000_2007_ncep.txt' 79 135 openw,4,fi_lwr_ncep 80 fi_lwr_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/lwr_2000_2007_ncep1.txt'136 fi_lwr_ncep1=tropflux_id_env+'lwr_2000_2007_ncep1.txt' 81 137 openw,5,fi_lwr_ncep1 82 fi_lwr_clark= '/Users/pkb/work/MY_SAXO/flux_automat/lwr_2000_2007_clark.txt'138 fi_lwr_clark=tropflux_id_env+'lwr_2000_2007_clark.txt' 83 139 openw,6,fi_lwr_clark 84 140 … … 92 148 ;; first reading the whole ERAI uncorrected and corrected data 93 149 94 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/gridded_data/erai_fluxes_19930101_20090801_TROP_oafluxgrid.nc'150 file=tropflux_id_env+'erai_fluxes_19930101_20090801_TROP_oafluxgrid.nc' 95 151 initncdf, file 96 152 unc=read_ncdf('lwr',date1,date2,file=file,/nostr) 97 153 help, unc 98 154 99 file= "/Volumes/Sanathana/TropFlux_data/TropFlux_lwr_19890101_20091231.nc"100 initncd f, file155 file=tropflux_id_env+'TropFlux_lwr_19890101_20091231.nc" 156 initncda, file 101 157 cor=read_ncdf('lwr',date1,date2,file=file,/nostr) & cor=-1*cor 102 158 help, cor 103 159 104 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lwr_oafluxgrid_1985_2007.nc'160 file=tropflux_id_env+'lwr_oafluxgrid_1985_2007.nc' 105 161 initncdf, file 106 162 oaf=read_ncdf("lwr", date1, date2, file=file,/nostr) 107 163 help, oaf 108 164 109 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/NCEP2_flux_19890101_20090729.nc'165 fi=tropflux_id_env+'NCEP2_flux_19890101_20090729.nc' 110 166 initncdf, fi 111 167 nce=read_ncdf("lwr", date1, date2, file=fi,/nostr) ;; & nce=-1*nce 112 168 help, nce 113 169 114 file= '/Volumes/Iomega_HDD/flux_reconstruction/ncep/fluxe_ncep1_19890101_20091231.nc'170 file=tropflux_id_env+'fluxe_ncep1_19890101_20091231.nc' 115 171 initncdf, file 116 172 nce1=-1*read_ncdf("lwr", date1, date2, file=file,/nostr) 117 173 help, nce1 118 174 119 file= '/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_19890101_20091231.nc'175 file=tropflux_id_env+'TropFlux_19890101_20091231.nc' 120 176 initncdf, file 121 177 clark=-1*read_ncdf("lwr", date1, date2, file=file,/nostr) … … 123 179 124 180 nn=n_elements(sitelist) 125 date1=date1126 date2=date2127 181 for n=0, nn-1 do begin 128 182 … … 191 245 close,/all 192 246 193 fi_lwr_erai= '/Users/pkb/work/MY_SAXO/flux_automat/lwr_2000_2007_erai.txt'247 fi_lwr_erai=tropflux_id_env+'lwr_2000_2007_erai.txt' 194 248 res=read_ascii(fi_lwr_erai,data_start=1) 195 249 ff=res.field1 … … 224 278 significance_test, mean_tao, mean_erai 225 279 226 fi_lwr_trop= '/Users/pkb/work/MY_SAXO/flux_automat/lwr_2000_2007_trop.txt'280 fi_lwr_trop=tropflux_id_env+'lwr_2000_2007_trop.txt' 227 281 res=read_ascii(fi_lwr_trop,data_start=1) 228 282 ff=res.field1 … … 257 311 significance_test, mean_tao, mean_trop 258 312 259 fi_lwr_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/lwr_2000_2007_oaflx.txt'313 fi_lwr_oaflx=tropflux_id_env+'lwr_2000_2007_oaflx.txt' 260 314 res=read_ascii(fi_lwr_oaflx,data_start=1) 261 315 ff=res.field1 … … 290 344 significance_test, mean_tao, mean_oaf 291 345 292 fi_lwr_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/lwr_2000_2007_ncep.txt'346 fi_lwr_ncep=tropflux_id_env+'lwr_2000_2007_ncep.txt' 293 347 res=read_ascii(fi_lwr_ncep,data_start=1) 294 348 ff=res.field1 … … 323 377 significance_test, mean_tao, mean_nce 324 378 325 fi_lwr_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/lwr_2000_2007_ncep1.txt'379 fi_lwr_ncep1=tropflux_id_env+'lwr_2000_2007_ncep1.txt' 326 380 res=read_ascii(fi_lwr_ncep1,data_start=1) 327 381 ff=res.field1 … … 356 410 significance_test, mean_tao, mean_nce 357 411 358 fi_lwr_clark= '/Users/pkb/work/MY_SAXO/flux_automat/lwr_2000_2007_clark.txt'412 fi_lwr_clark=tropflux_id_env+'lwr_2000_2007_clark.txt' 359 413 res=read_ascii(fi_lwr_clark,data_start=1) 360 414 ff=res.field1 … … 391 445 closeps 392 446 393 fig='lwr_validation_scatter_2000_2007.ps' 394 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 395 spawn, 'gv '+cpsdir+fig 396 return 447 fig=tropflux_od_env+'lwr_validation_scatter_2000_2007.ps' 448 spawn, 'mv '+psdir+'idl.ps '+fig 449 spawn, 'gv '+fig 397 450 end 398 function x_site_location, site399 n1=strpos(site, 's')400 if (n1 gt -1) then begin401 ns=-1.402 x=strmid(site, 0, n1)403 x=float(x)*ns404 endif else begin405 n1=strpos(site, 'n')406 x=strmid(site, 0, n1)407 ny=1.408 x=float(x)*ny409 endelse410 return, float(x)411 end412 function y_site_location, site413 n1=strpos(site, 'e')414 if (n1 gt -1) then begin415 n=strpos(site, 's')416 if (n gt -1) then begin417 y=strmid(site, n+1, n1-n-1)418 endif else begin419 n=strpos(site, 'n')420 y=strmid(site, n+1, n1-n-1)421 endelse422 423 endif else begin424 n1=strpos(site, 'w')425 n=strpos(site, 's')426 if (n gt -1) then begin427 y=strmid(site, n+1, n1-n-1)428 y=180+(180-float(y))429 endif else begin430 n=strpos(site, 'n')431 y=strmid(site, n+1, n1-n-1)432 y=180+(180-float(y))433 endelse434 endelse435 return,float(y)436 end -
trunk/src/paper01/fig9/swr_validation_scatter_2000_2007.pro
r43 r46 1 1 ;+ 2 ; .. _swr_validation_scatter_2000_2007.pro 2 ; .. _swr_validation_scatter_2000_2007.pro: 3 3 ; 4 4 ; ==================================== … … 9 9 ; =========== 10 10 ; 11 ; .. graphviz:: 12 ; 13 ; digraph swr_validation_scatter_2000_2007 { 14 ; graph [ 15 ; rankdir="LR", 16 ; ] 17 ; swr_erai [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_2000_2007_erai_v50.txt"]; 18 ; swr_tropflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/swr_2000_2007_trop_v50.txt"]; 19 ; swr_oaflux [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/swr_2000_2007_oaflx_v50.txt"]; 20 ; swr_ncep [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/swr_2000_2007_ncep_v50.txt"]; 21 ; swr_ncep1 [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/swr_2000_2007_ncep1_v50.txt"]; 22 ; swr_olr [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/swr_2000_2007_olr_v50.txt"]; 23 ; swr_ncep1_2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/fluxe_ncep1_19890101_20091231.nc"]; 24 ; swr_erai_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/erai_fluxes_20000101_20090801_TROP_oafluxgrid.nc"]; 25 ; swr_tropflux2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_swr_19890101_20091231_DT_v51.nc"]; 26 ; swr_tropflux3 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/TropFlux_19890101_20091231.nc"]; 27 ; swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_oafluxgrid_1985_2007.nc"]; 28 ; swr_ncep2 [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/swr_ncep2_oaflxgrid_19890101_20091231.nc"]; 29 ; 30 ; figure [shape=ellipse,fontname=Courier,label="${TROPFLUX_OD}/swr_validation_scatter_2000_2007.ps"]; 31 ; 32 ; swr_validation_scatter_2000_2007 [shape=box, 33 ; fontname=Courier, 34 ; color=blue, 35 ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig9/swr_validation_scatter_2000_2007.pro", 36 ; label="${TROPFLUX}/src/paper01/fig9/swr_validation_scatter_2000_2007.pro"]; 37 ; 38 ; {swr_erai swr_ncep1_2 swr_erai_oafluxgrid swr_tropflux2 swr_tropflux3 swr_oafluxgrid swr_ncep2} -> {swr_validation_scatter_2000_2007} -> {swr_tropflux swr_oaflux swr_ncep swr_olr swr_ncep1 figure} 39 ; } 40 ; 11 41 ; SEE ALSO 12 42 ; ======== 13 43 ; 14 44 ; :ref:`tropflux_profile.sh` 45 ; :ref:`tropflux_init.pro` 46 ; :ref:`cm_tropflux.pro` 47 ; 48 ; :func:`x_site_location` 49 ; :func:`y_site_location` 50 ; 51 ; :ref:`read_global_sw_v50.pro` 52 ; :ref:`statistics_3var_v1.pro` 15 53 ; 16 54 ; EXAMPLES … … 20 58 ; 21 59 ; IDL> @tropflux_init 22 ; IDL> date1= ++23 ; IDL> date2= ++60 ; IDL> date1=19890101L 61 ; IDL> date2=20091231L 24 62 ; IDL> swr_validation_scatter_2000_2007, date1, date2 63 ; 64 ; TODO 65 ; ==== 66 ; 67 ; make it work on cratos : missing data 68 ; 69 ; ++ mooring data in graphviz 70 ; 71 ; coding rules 72 ; 73 ; get rid of spwan 74 ; 75 ; complete description 76 ; 77 ; handle IO error 25 78 ; 26 79 ; EVOLUTIONS … … 29 82 ; $Id$ 30 83 ; 84 ; - fplod 20110420T105004Z aedon.locean-ipsl.upmc.fr (Darwin) 85 ; 86 ; * remove hard coding path 87 ; * add graphviz 88 ; * externalize functions 89 ; 31 90 ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 32 91 ; … … 35 94 ;- 36 95 pro swr_validation_scatter_2000_2007, date1, date2 37 @c ommon38 96 @cm_genral 97 @cm_tropflux 39 98 reinitplt, /z,/invert 40 99 key_portrait = 1 41 100 42 101 openps, FILENAME = 'idl.ps' 43 ;; Before running this program, you have to compile the following subrutines44 ;; 1. .r read_global_sw_v5045 ;; 2. .r statistics_3var_v146 102 47 103 ;; evaluation is done for 20000101-20071231 period … … 68 124 close,/all 69 125 70 fi_swr_erai= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2007_erai_v50.txt'126 fi_swr_erai=tropflux_id_env+'swr_2000_2007_erai_v50.txt' 71 127 openw,1,fi_swr_erai 72 fi_swr_trop= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2007_trop_v50.txt'128 fi_swr_trop=tropflux_id_env+'swr_2000_2007_trop_v50.txt' 73 129 openw,2,fi_swr_trop 74 fi_swr_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2007_oaflx_v50.txt'130 fi_swr_oaflx=tropflux_id_env+'swr_2000_2007_oaflx_v50.txt' 75 131 openw,3,fi_swr_oaflx 76 fi_swr_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2007_ncep_v50.txt'132 fi_swr_ncep=tropflux_id_env+'swr_2000_2007_ncep_v50.txt' 77 133 openw,4,fi_swr_ncep 78 fi_swr_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2007_ncep1_v50.txt'134 fi_swr_ncep1=tropflux_id_env+'swr_2000_2007_ncep1_v50.txt' 79 135 openw,5,fi_swr_ncep1 80 fi_swr_olr= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2007_olr_v50.txt'136 fi_swr_olr=tropflux_id_env+'swr_2000_2007_olr_v50.txt' 81 137 openw,6,fi_swr_olr 82 138 … … 91 147 ;; first reading the whole ERAI uncorrected and corrected data 92 148 93 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/gridded_data/erai_fluxes_20000101_20090801_TROP_oafluxgrid.nc'149 file=tropflux_id_env+'erai_fluxes_20000101_20090801_TROP_oafluxgrid.nc' 94 150 initncdf, file 95 151 unc=read_ncdf('swr',date1,date2,file=file,/nostr) & unc=-1*unc 96 152 help, unc 97 153 98 file= '/Users/pkb/data/TropFlux/TropFlux_swr_19890101_20071231_DT_v51.nc'154 file=tropflux_id_env+'TropFlux_swr_19890101_20071231_DT_v51.nc' 99 155 initncdf, file 100 156 cor=read_ncdf('swr',date1,date2,file=file,/nostr) 101 157 help, cor 102 158 103 file= '/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/swr_oafluxgrid_1985_2007.nc'159 file=tropflux_id_env+'swr_oafluxgrid_1985_2007.nc' 104 160 initncdf, file 105 161 oaf=read_ncdf("swr", date1, date2, file=file,/nostr) 106 162 help, oaf 107 163 108 fi= '/Volumes/Iomega_HDD/flux_reconstruction/ncep2/swr_ncep2_oaflxgrid_19890101_20091231.nc'164 fi=tropflux_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc' 109 165 initncdf, fi 110 166 nce=read_ncdf("swr", date1, date2, file=fi,/nostr) & nce=0.94*nce 111 167 help, nce 112 168 113 file= '/Volumes/Iomega_HDD/flux_reconstruction/ncep/fluxe_ncep1_19890101_20091231.nc'169 file=tropflux_id_env+'fluxe_ncep1_19890101_20091231.nc' 114 170 initncdf, file 115 171 nce1=read_ncdf("swr", date1, date2, file=file,/nostr) 116 172 help, nce1 117 173 118 file= '/Users/pkb/data/TropFlux/TropFlux_swr_19890101_20091231_NRT_v50.nc'174 file=tropflux_id_env+'TropFlux_swr_19890101_20091231_NRT_v50.nc' 119 175 initncdf, file 120 176 sw_olr=read_ncdf("sw", date1-1, date2, file=file,/nostr) 121 177 help, sw_olr 122 178 nn=n_elements(sitelist) 123 date1=date1124 date2=date2125 179 for n=0, nn-1 do begin 126 180 … … 190 244 close,/all 191 245 192 fi_swr_erai= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2007_erai_v50.txt'246 fi_swr_erai=tropflux_id_env+'swr_2000_2007_erai_v50.txt' 193 247 res=read_ascii(fi_swr_erai,data_start=1) 194 248 ff=res.field1 … … 222 276 223 277 224 fi_swr_trop= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2007_trop_v50.txt'278 fi_swr_trop=tropflux_id_env+'swr_2000_2007_trop_v50.txt' 225 279 res=read_ascii(fi_swr_trop,data_start=1) 226 280 ff=res.field1 … … 254 308 255 309 256 fi_swr_oaflx= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2007_oaflx_v50.txt'310 fi_swr_oaflx=tropflux_id_env+'swr_2000_2007_oaflx_v50.txt' 257 311 res=read_ascii(fi_swr_oaflx,data_start=1) 258 312 ff=res.field1 … … 286 340 287 341 288 fi_swr_ncep= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2007_ncep_v50.txt'342 fi_swr_ncep=tropflux_id_env+'swr_2000_2007_ncep_v50.txt' 289 343 res=read_ascii(fi_swr_ncep,data_start=1) 290 344 ff=res.field1 … … 318 372 319 373 320 fi_swr_ncep1= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2007_ncep1_v50.txt'374 fi_swr_ncep1=tropflux_id_env+'swr_2000_2007_ncep1_v50.txt' 321 375 res=read_ascii(fi_swr_ncep1,data_start=1) 322 376 ff=res.field1 … … 350 404 351 405 352 fi_swr_olr= '/Users/pkb/work/MY_SAXO/flux_automat/swr_2000_2007_olr_v50.txt'406 fi_swr_olr=tropflux_id_env+'swr_2000_2007_olr_v50.txt' 353 407 res=read_ascii(fi_swr_olr,data_start=1) 354 408 ff=res.field1 … … 384 438 closeps 385 439 386 fig='swr_validation_scatter_2000_2007.ps' 387 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 388 spawn, 'gv '+cpsdir+fig 389 return 440 fig=tropflux_od_env+'swr_validation_scatter_2000_2007.ps' 441 spawn, 'mv '+psdir+'idl.ps '+fig 442 spawn, 'gv '+fig 390 443 end 391 function x_site_location, site392 n1=strpos(site, 's')393 if (n1 gt -1) then begin394 ns=-1.395 x=strmid(site, 0, n1)396 x=float(x)*ns397 endif else begin398 n1=strpos(site, 'n')399 x=strmid(site, 0, n1)400 ny=1.401 x=float(x)*ny402 endelse403 return, float(x)404 end405 function y_site_location, site406 n1=strpos(site, 'e')407 if (n1 gt -1) then begin408 n=strpos(site, 's')409 if (n gt -1) then begin410 y=strmid(site, n+1, n1-n-1)411 endif else begin412 n=strpos(site, 'n')413 y=strmid(site, n+1, n1-n-1)414 endelse415 416 endif else begin417 n1=strpos(site, 'w')418 n=strpos(site, 's')419 if (n gt -1) then begin420 y=strmid(site, n+1, n1-n-1)421 y=180+(180-float(y))422 endif else begin423 n=strpos(site, 'n')424 y=strmid(site, n+1, n1-n-1)425 y=180+(180-float(y))426 endelse427 endelse428 return,float(y)429 end
Note: See TracChangeset
for help on using the changeset viewer.