Changeset 29 for trunk/ToBeReviewed/TRIANGULATION/drawcoast_e.pro
- Timestamp:
- 05/02/06 15:32:01 (18 years ago)
- 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 1 PRO 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 ;--------------------------------------------------------- 3 9 tempsun = systime(1) ; pour key_performance 4 10 ;--------------------------------------------------------- 5 if keyword_set(key_periodi que) AND nx EQ jpi then begin11 if keyword_set(key_periodic) AND nx EQ jpi then begin 6 12 mask = [mask, mask[0, *]] 7 13 xf = [xf, xf[0, *]] … … 13 19 ; 14 20 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) 16 22 distanceseuil = (!p.position[2]-!p.position[0])/xseuil 17 23 ; liste: liste des points i pourlesquels on va tracer un segment … … 20 26 indexbis = index-nx+((index/nx+onemore) MOD 2) 21 27 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) 23 29 IF liste[0] NE -1 THEN BEGIN 24 30 index = index[liste] … … 26 32 for pt = 0, n_elements(index)-1 do begin 27 33 plots, [xf[index[pt]], xf[indexbis[pt]]], [yf[index[pt]], yf[indexbis[pt]]] $ 28 , color=c_cote,thick=cont_thick, /normal, _extra = ex34 , color = coast_color, thick = coast_thick, /normal, _extra = ex 29 35 endfor 30 36 ENDIF … … 32 38 ; we plot the borders of the diamond in this sense : / 33 39 ; 34 if NOT keyword_set(xseuil) then xseuil = 5. 40 if NOT keyword_set(xseuil) then xseuil = 5. < (min([nx, ny])-2) 35 41 distanceseuil = (!p.position[2]-!p.position[0])/xseuil 36 42 ; liste: liste des points i pourlesquels on va tracer un segment … … 39 45 indexbis = index+nx+((index/nx+onemore) MOD 2) 40 46 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) 42 48 IF liste[0] NE -1 THEN BEGIN 43 49 index = index[liste] … … 45 51 for pt = 0, n_elements(index)-1 do begin 46 52 plots, [xf[index[pt]], xf[indexbis[pt]]], [yf[index[pt]], yf[indexbis[pt]]] $ 47 , color=c_cote,thick=cont_thick, /normal, _extra = ex53 , color = coast_color, thick = coast_thick, /normal, _extra = ex 48 54 endfor 49 55 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.