- Timestamp:
- 08/09/06 12:12:54 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/TRIANGULATION/completecointerre.pro
r134 r150 1 ;------------------------------------------------------------2 ;------------------------------------------------------------3 ;------------------------------------------------------------4 ;+5 ; NAME: COMPLETECOINTERRE6 ;7 ; PURPOSE: pour colorier proprement les continents! (c''est une longue8 ; histoire...)9 ;10 ; CATEGORY: pour plt11 ;12 ; CALLING SEQUENCE: completecointerre13 ;14 ; INPUTS: non15 ;16 ; KEYWORD PARAMETERS: _EXTRA17 ;18 ; CONT_COLOR: the color of the continent. defaut value is19 ; (!d.n_colors - 1) < 255 => white20 ;21 ; OUTPUTS: non22 ;23 ; COMMON BLOCKS: common.pro24 ;25 ; SIDE EFFECTS:26 ;27 ; RESTRICTIONS:28 ;29 ; EXAMPLE:30 ;31 ; MODIFICATION HISTORY:Sebastien Masson (smasson@lodyc.jussieu.fr)32 ; 01/10/199933 ;-34 ;------------------------------------------------------------35 ;------------------------------------------------------------36 ;------------------------------------------------------------37 1 PRO draw_corner_triangle, lons, lats, seuil, CONT_COLOR = cont_color, _extra = ex 38 2 ; … … 55 19 ;------------------------------------------------------------ 56 20 ;------------------------------------------------------------ 21 ;------------------------------------------------------------ 22 ;+ 23 ; 24 ; @file_comments 25 ; To color cleanly continents 26 ; 27 ; @categories 28 ; graphic 29 ; 30 ; @keyword _EXTRA 31 ; Used to pass your keywords 32 ; 33 ; @keyword CONT_COLOR 34 ; The color of the continent. defaut value is 35 ; (!d.n_colors - 1) < 255 => white 36 ; 37 ; @uses 38 ; common.pro 39 ; 40 ; @history 41 ; Sebastien Masson (smasson@lodyc.jussieu.fr) 42 ; 01/10/1999 43 ; 44 ; @version 45 ; $Id$ 46 ; 47 ;- 48 ;------------------------------------------------------------ 49 ;------------------------------------------------------------ 50 ;------------------------------------------------------------ 57 51 PRO completecointerre, COINMONTE = coinmonte, COINDESCEND = coindescend $ 58 52 , CONT_COLOR = cont_color, INDICEZOOM = indicezoom $ … … 66 60 ; if NOT keyword_set(coindescend) then return 67 61 ; if NOT keyword_set(indicezoom) then return 68 tempsun = systime(1) ; pour key_performance62 tempsun = systime(1) ; For key_performance 69 63 ;------------------------------------------------------------ 70 ; definitions des vecteurs coinmont etcoindesc64 ; definitions of vectors coinmont and coindesc 71 65 ;------------------------------------------------------------ 72 66 if keyword_set(coinmonte) then coinmont = coinmonte $ … … 76 70 IF NOT keyword_set(cont_color) THEN cont_color = (!d.n_colors-1) < 255 77 71 ;------------------------------------------------------------ 78 ; definition descoordonnees des points numerotes 1,2,3,4,5,6 cf. les 79 ; schemas en dessous! 72 ; definition of coordinates of points numbered 1,2,3,4,5,6 (see figures below) 80 73 ;------------------------------------------------------------ 81 tempdeux = systime(1) ; pour key_performance =274 tempdeux = systime(1) ; For key_performance =2 82 75 if coinmont[0] NE -1 OR coindesc[0] NE -1 then BEGIN 83 76 if keyword_set(indicezoom) then BEGIN … … 122 115 ; 123 116 ; 124 ; cas coin terre en montee: 125 ; 2 points terre en diagonale montante avec 2 points mer sur 126 ; la diagonale descendante. 117 ; Case land corner in ascent: 118 ; 2 land points in diagonal ascending with 2 ocean points on the descendant diagonal. 127 119 ; 128 120 ; 4 … … 139 131 ; 140 132 if coinmont[0] NE -1 then BEGIN 141 tempdeux = systime(1) ; pour key_performance =2133 tempdeux = systime(1) ; For key_performance =2 142 134 for id = 0, n_elements(coinmont)-1 do BEGIN 143 135 i = coinmont[id] … … 159 151 ENDIF 160 152 ;------------------------------------------------------------ 161 ; cas coin terre en descendante.: 162 ; 2 points terre en diagonale descendante avec 2 points mer sur 163 ; la diagonale montante 164 ; 153 ; Case land corner in descent: 154 ; 2 land points in diagonal descending with 2 ocean points on the ascendant diagonal. 155 ; 165 156 ; 4 166 157 ; t(i+nx)=1 u(i+nx) t(i+nx+1)=0 … … 175 166 ; 176 167 if coindesc[0] NE -1 then begin 177 tempdeux = systime(1) ; pour key_performance =2168 tempdeux = systime(1) ; For key_performance =2 178 169 for id = 0, n_elements(coindesc)-1 do BEGIN 179 170 i = coindesc[id]
Note: See TracChangeset
for help on using the changeset viewer.