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