Ignore:
Timestamp:
03/16/07 10:22:26 (17 years ago)
Author:
pinsard
Message:

corrections of some misspellings in some *.pro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/TRIANGULATION/tracemask.pro

    r163 r226  
    99; @categories 
    1010; Utilities 
    11 ;  
     11; 
    1212; @param MASKENTREE {in}{required} 
    1313; 2d array specifying the mask 
    14 ;  
     14; 
    1515; @param XIN {in}{required}, 
    1616; 2d array specifying longitude coordinates. 
    17 ;  
     17; 
    1818; @param YIN {in}{required}, 
    1919; 2d array specifying latitude coordinates. 
     
    5656@updatekwd 
    5757  ENDIF 
    58 ;---------------------------------------------------------  
     58;--------------------------------------------------------- 
    5959   tempsun = systime(1)         ; For key_performance 
    6060; We avoid edging problems: 
     
    8282; we sill 
    8383   xentree = xrange[0] > xentree < xrange[1] 
    84 ; we enlarge the array  
     84; we enlarge the array 
    8585   xf = fltarr(nx, ny) 
    8686   xf[1:nx-1, 1:ny-1] = xentree 
     
    9292   yrange = !y.range[sort(!y.range)] 
    9393   yentree = .5*(yentree+shift(yentree, 0, -1)) 
    94    IF not keyword_set(overplot) THEN BEGIN  
     94   IF not keyword_set(overplot) THEN BEGIN 
    9595      if yinverse then yentree[*, ny-2] = yrange[0] ELSE yentree[*, ny-2] = yrange[1] 
    9696   ENDIF ELSE yentree[*, ny-2] = yentree[*, ny-3] 
     
    9999   yf[1:nx-1, 1:ny-1] = yentree 
    100100   yf[0, 1:ny-1] = yentree[0, *] 
    101    IF not keyword_set(overplot) THEN BEGIN  
     101   IF not keyword_set(overplot) THEN BEGIN 
    102102      if yinverse then yf[*, 0] = yrange[1] ELSE yf[*, 0] = yrange[0] 
    103103   ENDIF ELSE yentree[*, 0] = yentree[*, 1] 
     
    113113; We recuperate lx and ly which are indexes in a 2d array of points given by list 
    114114      ly = liste/nx & lx = temporary(liste)-nx*ly 
    115       indice = where(ly NE 0) ; We do not take points concernining  
    116 ; the first line because in this case, the point j-1 is not defined  
     115      indice = where(ly NE 0) ; We do not take points concerning 
     116; the first line because in this case, the point j-1 is not defined 
    117117      if indice[0] NE -1 then begin 
    118118         lx = lx[indice] & ly = ly[temporary(indice)] 
     
    122122; loop on concerned points and drawing of the segment. 
    123123; comments: we use plots instead of plot because plots is faster. 
    124          for pt = 0L, n_elements(lx)-1 do BEGIN  
     124         for pt = 0L, n_elements(lx)-1 do BEGIN 
    125125            i = lx[pt] & j = ly[pt] 
    126126            plots, [xf[i, j-1], xf[i, j]], [yf[i, j-1], yf[i, j]] $ 
     
    146146       print, 'temps tracemask: liste traits horizontaux', systime(1)-tempdeux 
    147147      tempdeux = systime(1)     ; For key_performance =2 
    148       for pt = 0L, n_elements(lx)-1 do BEGIN  
     148      for pt = 0L, n_elements(lx)-1 do BEGIN 
    149149         i = lx[pt] & j = ly[pt] 
    150150         plots, [xf[i-1, j], xf[i, j]], [yf[i-1, j], yf[i, j]] $ 
     
    156156; 
    157157; 
    158    if keyword_set(key_performance) THEN print, 'temps tracemask', systime(1)-tempsun  
    159     
     158   if keyword_set(key_performance) THEN print, 'temps tracemask', systime(1)-tempsun 
     159 
    160160   return 
    161161end 
Note: See TracChangeset for help on using the changeset viewer.