Ignore:
Timestamp:
05/02/06 15:32:01 (18 years ago)
Author:
pinsard
Message:

upgrade of TRIANGULATION according to cerbere.lodyc.jussieu.fr: /usr/home/smasson/SAXO_RD/ : files

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/ToBeReviewed/TRIANGULATION/drawcoast_e.pro

    r27 r29  
    1 PRO drawcoast_e, mask, xf, yf, nx, ny, CONT_THICK = cont_thick, YSEUIL = yseuil, XSEUIL = xseuil, onemore = onemore, _extra = ex 
    2 @common 
     1PRO drawcoast_e, mask, xf, yf, nx, ny, COAST_COLOR = coast_color, COAST_THICK = coast_thick, YSEUIL = yseuil, XSEUIL = xseuil, onemore = onemore, _extra = ex 
     2;--------------------------------------------------------- 
     3@cm_4mesh 
     4  IF NOT keyword_set(key_forgetold) THEN BEGIN 
     5@updatenew 
     6@updatekwd 
     7  ENDIF 
     8;--------------------------------------------------------- 
    39   tempsun = systime(1)         ; pour key_performance 
    410;--------------------------------------------------------- 
    5    if keyword_set(key_periodique) AND nx EQ jpi then begin 
     11   if keyword_set(key_periodic) AND nx EQ jpi then begin 
    612      mask = [mask, mask[0, *]] 
    713      xf = [xf, xf[0, *]] 
     
    1319; 
    1420   if NOT keyword_set(onemore) then onemore = 0 
    15    if NOT keyword_set(xseuil) then xseuil = 5. 
     21   if NOT keyword_set(xseuil) then xseuil = 5. < (min([nx, ny])-2) 
    1622   distanceseuil = (!p.position[2]-!p.position[0])/xseuil 
    1723; liste: liste des points i pourlesquels on va tracer un segment  
     
    2026   indexbis = index-nx+((index/nx+onemore) MOD 2) 
    2127   liste = where(mask[index+1]+mask[indexbis] EQ 1 $ 
    22                  AND (xf[index]-xf[indexbis])^2+(yf[index]-yf[indexbis])^2 LE distanceseuil) 
     28                 AND (xf[index]-xf[indexbis])^2+(yf[index]-yf[indexbis])^2 LE distanceseuil^2) 
    2329   IF liste[0] NE -1 THEN BEGIN 
    2430      index = index[liste] 
     
    2632      for pt = 0, n_elements(index)-1 do begin 
    2733         plots, [xf[index[pt]], xf[indexbis[pt]]], [yf[index[pt]], yf[indexbis[pt]]] $ 
    28           , color=c_cote,thick=cont_thick, /normal, _extra = ex 
     34           , color = coast_color, thick = coast_thick, /normal, _extra = ex 
    2935      endfor 
    3036   ENDIF 
     
    3238; we plot the borders of the diamond in this sense : / 
    3339; 
    34    if NOT keyword_set(xseuil) then xseuil = 5. 
     40   if NOT keyword_set(xseuil) then xseuil = 5. < (min([nx, ny])-2) 
    3541   distanceseuil = (!p.position[2]-!p.position[0])/xseuil 
    3642; liste: liste des points i pourlesquels on va tracer un segment  
     
    3945   indexbis = index+nx+((index/nx+onemore) MOD 2) 
    4046   liste = where(mask[index+1]+mask[indexbis] EQ 1 $ 
    41                  AND (xf[index]-xf[indexbis])^2+(yf[index]-yf[indexbis])^2 LE distanceseuil) 
     47                 AND (xf[index]-xf[indexbis])^2+(yf[index]-yf[indexbis])^2 LE distanceseuil^2) 
    4248   IF liste[0] NE -1 THEN BEGIN 
    4349      index = index[liste] 
     
    4551      for pt = 0, n_elements(index)-1 do begin 
    4652         plots, [xf[index[pt]], xf[indexbis[pt]]], [yf[index[pt]], yf[indexbis[pt]]] $ 
    47           , color=c_cote,thick=cont_thick, /normal, _extra = ex 
     53           , color = coast_color, thick = coast_thick, /normal, _extra = ex 
    4854      endfor 
    4955   ENDIF 
Note: See TracChangeset for help on using the changeset viewer.