Changeset 46 for trunk/src/paper01/fig15
- Timestamp:
- 04/20/11 16:45:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.