Ignore:
Timestamp:
07/23/09 11:18:49 (15 years ago)
Author:
smasson
Message:

update documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/idldoc_html_output/Interpolation/spl_keep_mean.html

    r338 r402  
    237237          <h3>Examples</h3><div class="preformat"> 
    238238 
    239     12 monthly values of precipitations into daily values: 
    240  
    241  IDL> yr1 = 1990 
    242  IDL> yr2 = 1992 
    243  IDL> nyr = yr2-yr1+1 
    244  IDL> n1 = 12*nyr+1 
    245  IDL> x = julday(1+findgen(n1), replicate(1, n1) $ 
    246  IDL>        , replicate(yr1, n1), fltarr(n1)) 
    247  IDL> n2 = 365*nyr + total(leapyr(yr1+indgen(nyr))) + 1 
    248  IDL> x2 = julday(replicate(1, n2), 1+findgen(n2) $ 
    249  IDL>            , replicate(yr1, n2), fltarr(n2)) 
    250  IDL> y = abs(randomn(0, n1-1)) 
    251  IDL> y2 = spl_keep_mean(x, y, x2, /ge0) 
    252  
    253  IDL> print, min(x, max = ma), ma 
    254  IDL> print, min(x2, max = ma), ma 
    255  IDL> print, vairdate([min(x, max = ma), ma]) 
    256  IDL> print, total(y*(x[1:n1-1]-x[0:n1-2])) 
    257  IDL> print, total(y2*(x2[1:n2-1]-x2[0:n2-2])) 
     239 12 monthly values of precipitations into daily values: 
     240 
     241   IDL> yr1 = 1990 
     242   IDL> yr2 = 1992 
     243   IDL> nyr = yr2-yr1+1 
     244   IDL> n1 = 12*nyr+1 
     245   IDL> x = julday(1+findgen(n1), replicate(1, n1) $ 
     246   IDL>        , replicate(yr1, n1), fltarr(n1)) 
     247   IDL> n2 = 365*nyr + total(leapyr(yr1+indgen(nyr))) + 1 
     248   IDL> x2 = julday(replicate(1, n2), 1+findgen(n2) $ 
     249   IDL>            , replicate(yr1, n2), fltarr(n2)) 
     250   IDL> y = abs(randomn(0, n1-1)) 
     251   IDL> y2 = spl_keep_mean(x, y, x2, /ge0) 
     252 
     253   IDL> print, min(x, max = ma), ma 
     254   IDL> print, min(x2, max = ma), ma 
     255   IDL> print, vairdate([min(x, max = ma), ma]) 
     256   IDL> print, total(y*(x[1:n1-1]-x[0:n1-2])) 
     257   IDL> print, total(y2*(x2[1:n2-1]-x2[0:n2-2])) 
    258258</div> 
    259259          <h3>Version history</h3> 
    260260           
    261261          <h4>Version</h4><div class="preformat"> 
    262  $Id: spl_keep_mean.pro 327 2007-12-13 16:22:35Z pinsard $ 
     262 $Id: spl_keep_mean.pro 372 2008-08-08 12:31:53Z pinsard $ 
    263263</div> 
    264264          <h4>History</h4><div class="preformat"> 
    265   Sebastien Masson (smasson@lodyc.jussieu.fr): May 2005 
     265 Sebastien Masson (smasson@lodyc.jussieu.fr): May 2005 
    266266</div> 
    267267           
Note: See TracChangeset for help on using the changeset viewer.