Changeset 46 for trunk/src/paper01/fig16


Ignore:
Timestamp:
04/20/11 16:45:53 (13 years ago)
Author:
pinsard
Message:

going on consolidation of paper01 materials

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/paper01/fig16/fig16_timeseries_nino3.pro

    r43 r46  
    99; =========== 
    1010; 
     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; 
    1130; SEE ALSO 
    1231; ======== 
    1332; 
    1433; :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` 
    1539; 
    1640; EXAMPLES 
     
    2246;  IDL> fig16_timeseries_nino3 
    2347; 
     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; 
    2461; EVOLUTIONS 
    2562; ========== 
     
    2764; $Id$ 
    2865; 
     66; - fplod 20110420T123110Z aedon.locean-ipsl.upmc.fr (Darwin) 
     67; 
     68;   * remove hard coding path 
     69;   * add graphviz 
     70;   * externalize functions 
     71; 
    2972; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 
    3073; 
     
    3376;- 
    3477pro fig16_timeseries_nino3 
    35 @common 
    36  
     78@cm_general 
     79@cm_tropflux 
    3780reinitplt, /z,/invert 
    3881key_portrait = 1 
     
    4285box=[240,330,-5,5] 
    4386 
    44 file_trop='/Users/pkb/data/TropFlux/TropFlux_sst_19890101_20091231.nc' 
     87file_trop=tropflux_id_env+'TropFlux_sst_19890101_20091231.nc' 
    4588initncdf, file_trop 
    4689sst=read_ncdf("sst", date1, date2, box=box, file=file_trop,/nostr) 
     
    157200 
    158201closeps 
    159 fig='fig16_timeseries_nino3.ps' 
    160 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 
    161 spawn, 'gv '+cpsdir+fig 
    162 return 
     202fig=tropflux_od_env+'fig16_timeseries_nino3.ps' 
     203spawn, 'mv '+psdir+'idl.ps '+fig 
     204spawn, 'gv '+fig 
    163205end 
    164 function x_site_location, site 
    165     n1=strpos(site, 's') 
    166 if (n1 gt -1) then begin 
    167     ns=-1. 
    168     x=strmid(site, 0, n1) 
    169     x=float(x)*ns 
    170 endif else begin 
    171     n1=strpos(site, 'n') 
    172     x=strmid(site, 0, n1) 
    173     ny=1. 
    174     x=float(x)*ny 
    175 endelse 
    176 return, float(x) 
    177 end 
    178 function y_site_location, site 
    179     n1=strpos(site, 'e') 
    180 if (n1 gt -1) then begin 
    181     n=strpos(site, 's') 
    182     if (n gt -1) then begin 
    183         y=strmid(site, n+1, n1-n-1) 
    184     endif else begin 
    185         n=strpos(site, 'n') 
    186         y=strmid(site, n+1, n1-n-1) 
    187     endelse 
    188  
    189 endif else begin 
    190     n1=strpos(site, 'w') 
    191     n=strpos(site, 's') 
    192     if (n gt -1) then begin 
    193         y=strmid(site, n+1, n1-n-1) 
    194         y=180+(180-float(y)) 
    195     endif else begin 
    196         n=strpos(site, 'n') 
    197         y=strmid(site, n+1, n1-n-1) 
    198         y=180+(180-float(y)) 
    199    endelse 
    200 endelse 
    201 return,float(y) 
    202 end 
Note: See TracChangeset for help on using the changeset viewer.