Changeset 46 for trunk/src/paper01/fig15


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/fig15/fig15_timeseries_mjo.pro

    r43 r46  
    66; ======================== 
    77; 
    8 ; 
    98; DESCRIPTION 
    109; =========== 
    1110; 
     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; 
    1238; SEE ALSO 
    1339; ======== 
    1440; 
    1541; :ref:`tropflux_profile.sh` 
     42; :ref:`tropflux_init.pro` 
     43; :ref:`cm_tropflux.pro` 
    1644; 
    1745; EXAMPLES 
     
    2351;  IDL> fig15_timeseries_mjo 
    2452; 
     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; 
    2566; EVOLUTIONS 
    2667; ========== 
     
    2869; $Id$ 
    2970; 
     71; - fplod 20110420T122720Z aedon.locean-ipsl.upmc.fr (Darwin) 
     72; 
     73;   * remove hard coding path 
     74;   * add graphviz 
     75;   * externalize functions 
     76; 
    3077; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 
    3178; 
     
    3481;- 
    3582pro fig15_timeseries_mjo 
    36 @common 
    37  
     83@cm_general 
     84@cm_tropflux 
    3885reinitplt, /z,/invert 
    3986key_portrait = 1 
     
    4491box=[50,80,-12,-5] 
    4592 
    46 file_trop='/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc' 
     93file_trop=tropflux_id_env+'TropFlux_19890101_20091231.nc' 
    4794initncdf, file_trop 
    4895shf_trop=read_ncdf("shf", date1, date2, box=box, file=file_trop,/nostr) 
     
    54101trop=grossemoyenne(trop, "xy",/nan) 
    55102 
    56 file_ncep='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/NCEP2_flux_19890101_20090729.nc' 
     103file_ncep=tropflux_id_env+'NCEP2_flux_19890101_20090729.nc' 
    57104initncdf, file_ncep 
    58105shf=read_ncdf("shf", date1, date2, box=box, file=file_ncep,/nostr) 
     
    65112help, nce2 
    66113 
    67 file_erai='/Volumes/Iomega_HDD/work/flux_reconstruction/gridded_data/erai_fluxes_19930101_20090801_TROP_oafluxgrid.nc' 
     114file_erai=tropflux_id_env+'erai_fluxes_19930101_20090801_TROP_oafluxgrid.nc' 
    68115initncdf, file_erai 
    69116shf=read_ncdf("shf", date1, date2, box=box, file=file_erai,/nostr) 
     
    75122help, era 
    76123 
    77 file='/Volumes/Iomega_HDD/flux_reconstruction/ncep/fluxe_ncep1_19890101_20091231.nc' 
     124file=tropflux_id_env+'fluxe_ncep1_19890101_20091231.nc' 
    78125initncdf, file 
    79126lwr=read_ncdf("lwr", date1, date2, box=box, file=file,/nostr) 
     
    86133help, nce 
    87134 
    88 file_oaf='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/shf_oafluxgrid_1985_2008.nc' 
     135file_oaf=tropflux_id_env+'shf_oafluxgrid_1985_2008.nc' 
    89136initncdf, file_oaf 
    90137shf=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' 
     138file_oaf=tropflux_id_env+'lhf_oafluxgrid_1985_2008.nc' 
    92139initncdf, file_oaf 
    93140lhf=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' 
     141file_oaf=tropflux_id_env+'lwr_oafluxgrid_1985_2007.nc' 
    95142initncdf, file_oaf 
    96143lwr=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' 
     144file_oaf=tropflux_id_env+'swr_oafluxgrid_1985_2007.nc' 
    98145initncdf, file_oaf 
    99146swr=read_ncdf("swr", date1, date2, box=box, file=file_oaf,/nostr) & swr_trop=swr 
     
    102149oafl=grossemoyenne(oafl, "xy",/nan) 
    103150 
    104 file="/Users/pkb/data/heat_budget/NOAA_OLR/olr_oafluxgrid_30n30s_19890101_20091231.nc" 
     151file=tropflux_id_env+"olr_oafluxgrid_30n30s_19890101_20091231.nc" 
    105152initncdf, file 
    106153olr=read_ncdf("olr", date1-1, date2, box=box, file=file,/nostr) 
     
    161208 
    162209closeps 
    163 fig='fig15_timeseries_mjo.ps' 
    164 spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig 
    165 spawn, 'gv '+cpsdir+fig 
    166 return 
     210fig=tropflux_od_env+'fig15_timeseries_mjo.ps' 
     211spawn, 'mv '+psdir+'idl.ps '+fig 
     212spawn, 'gv '+fig 
    167213end 
    168  
    169 function x_site_location, site 
    170     n1=strpos(site, 's') 
    171 if (n1 gt -1) then begin 
    172     ns=-1. 
    173     x=strmid(site, 0, n1) 
    174     x=float(x)*ns 
    175 endif else begin 
    176     n1=strpos(site, 'n') 
    177     x=strmid(site, 0, n1) 
    178     ny=1. 
    179     x=float(x)*ny 
    180 endelse 
    181 return, float(x) 
    182 end 
    183  
    184 function y_site_location, site 
    185     n1=strpos(site, 'e') 
    186 if (n1 gt -1) then begin 
    187     n=strpos(site, 's') 
    188     if (n gt -1) then begin 
    189         y=strmid(site, n+1, n1-n-1) 
    190     endif else begin 
    191         n=strpos(site, 'n') 
    192         y=strmid(site, n+1, n1-n-1) 
    193     endelse 
    194  
    195 endif else begin 
    196     n1=strpos(site, 'w') 
    197     n=strpos(site, 's') 
    198     if (n gt -1) then begin 
    199         y=strmid(site, n+1, n1-n-1) 
    200         y=180+(180-float(y)) 
    201     endif else begin 
    202         n=strpos(site, 'n') 
    203         y=strmid(site, n+1, n1-n-1) 
    204         y=180+(180-float(y)) 
    205    endelse 
    206 endelse 
    207 return,float(y) 
    208 end 
Note: See TracChangeset for help on using the changeset viewer.