Changeset 230 for trunk/SRC/ToBeReviewed
- Timestamp:
- 03/19/07 11:17:59 (17 years ago)
- Location:
- trunk/SRC/ToBeReviewed
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/HOPE/read_hope.pro
r226 r230 261 261 ; 262 262 ; @returns 263 ; -1 if typein and varnamein are undefine (this is the widget263 ; -1 if typein and varnamein are undefined (this is the widget 264 264 ; version) 265 265 ; -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/bar_plot.pro
r163 r230 1 1 ;+ 2 ; 3 ; @file_comments 2 ; 3 ; @file_comments 4 4 ; Create a bar graph, or overplot on an existing one. 5 5 ; 6 ; @categories 6 ; @categories 7 7 ; Graphics 8 8 ; … … 65 65 ; on the same graph. 66 66 ; 67 ; @keyword OUTLINE 67 ; @keyword OUTLINE 68 68 ; If set, this keyword specifies that an outline should be 69 69 ; drawn around each bar. 70 70 ; 71 ; @keyword OVERPLOT 71 ; @keyword OVERPLOT 72 72 ; If set, this keyword specifies that the bar plot should be 73 73 ; overplotted on an existing graph. … … 77 77 ; the background color. 78 78 ; 79 ; @keyword ROTATE 79 ; @keyword ROTATE 80 80 ; If set, this keyword indicates that horizontal rather than 81 81 ; vertical bars should be drawn. The bases of horizontal bars 82 82 ; are on the left, "Y" axis and the bars extend to the right. 83 83 ; 84 ; @examples By using the overplotting capability, it is relatively easy to create 84 ; @examples 85 ; By using the overplotting capability, it is relatively easy to create 85 86 ; stacked bar charts, or different groups of bars on the same graph. 86 87 ; … … 118 119 ; this could easily be changed.) 119 120 ; 120 ; @history August 1990, T.J. Armitage, RSI, initial programming. Replacement 121 ; @history 122 ; August 1990, T.J. Armitage, RSI, initial programming. Replacement 121 123 ; for PLOTBAR and OPLOTBAR routines written by William Thompson. 122 124 ; … … 125 127 ; spacing the bars slightly. 126 128 ; 129 ; @version 127 130 ; $Id$ 128 131 ; -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/barrecouleur.pro
r226 r230 52 52 ; Used to pass your keywords 53 53 ; 54 ; @restrictions pass all argument we want thanks to _extra 54 ; @restrictions 55 ; pass all argument we want thanks to _extra 55 56 ; 56 57 ; @history … … 61 62 ; $Id$ 62 63 ; 63 ; @todo seb: mettre les keyword et les param 64 ; @todo 65 ; seb: mettre les keyword et les param 64 66 ;- 65 67 ;------------------------------------------------------------ -
trunk/SRC/ToBeReviewed/STRING/getwrd.pro
r163 r230 4 4 ; @file_comments 5 5 ; Return the n'th word from a text string. 6 ; 6 ; 7 7 ; @categories 8 ; String 8 9 ; 9 ; @param TXTSTR {in}{required} 10 ; @param TXTSTR {in}{required} {type=string or array of strings} 10 11 ; text string to extract from. 11 12 ; The first element is used if txt is an array. 12 13 ; 13 ; @param NTH {in}{required} 14 ; @param NTH {in}{required} {type=integer} {default=0} 14 15 ; word number to get (first = 0 = def) 15 16 ; 16 ; @param MTH {in}{ required}17 ; @param MTH {in}{optional} {type=integer} 17 18 ; optional last word number to get. 18 19 ; 19 20 ; @keyword LOCATION 20 21 ; = l. Return word n string location. 21 ; 22 ; 22 23 ; @keyword DELIMITER 23 24 ; = d. Set word delimiter (def = space & tab). 24 ; 25 ; 25 26 ; @keyword LAST 26 27 ; means n is offset from last word. So n=0 gives … … 30 31 ; @keyword NOTRIM 31 32 ; suppresses whitespace trimming on ends. 32 ; 33 ; 33 34 ; @keyword NWORDS 34 35 ; = n. Returns number of words in string. 35 ; 36 ; @returns wrd = returned word or words. 36 ; 37 ; @returns 38 ; wrd = returned word or words. 37 39 ; 38 40 ; @uses 39 41 ; getwrd_com 40 ; 42 ; 41 43 ; @restrictions 42 44 ; If a NULL string is given (txt="") then the last string … … 71 73 ;- 72 74 ;------------------------------------------------------------- 73 74 75 76 75 77 FUNCTION getwrd, TXTSTR, NTH, MTH, help=hlp, location=ll,$ 76 78 delimiter=delim, notrim=notrim, last=last, nwords=nwords 77 79 78 80 common getwrd_com, txtstr0, nwds, loc, len 79 81 80 82 if (n_params(0) lt 1) or keyword_set(hlp) then begin 81 83 print," Return the n'th word from a text string." … … 103 105 return, -1 104 106 endif 105 107 106 108 if n_params(0) lt 2 then nth = 0 ; Def is first word. 107 109 IF N_PARAMS(0) LT 3 THEN MTH = NTH ; Def is one word. 108 110 109 111 if strlen(txtstr[0]) gt 0 then begin 110 112 ddel = ' ' ; Def del is a space. … … 118 120 X = tb NE TST ; Non-delchar (=words). 119 121 X = [0,X,0] ; 0s at ends. 120 122 121 123 Y = (X-SHIFT(X,1)) EQ 1 ; Diff=1: word start. 122 124 Z = WHERE(SHIFT(Y,-1) EQ 1) ; Word start locations. 123 125 Y2 = (X-SHIFT(X,-1)) EQ 1 ; Diff=1: word end. 124 126 Z2 = WHERE(SHIFT(Y2,1) EQ 1) ; Word end locations. 125 127 126 128 txtstr0 = txtstr[0] ; Move string to common. 127 129 NWDS = long(TOTAL(Y)) ; Number of words. … … 135 137 endif 136 138 endelse 137 139 138 140 nwords = nwds ; Set nwords 139 141 140 142 if keyword_set(last) then begin ; Offset from last. 141 143 lst = nwds - 1 … … 149 151 im = im < lst ; to be last. 150 152 ll = loc[in] ; Nth word start. 151 return, strtrim(strmid(txtstr0,ll,loc[im]-loc[in]+len[im]), 2) 153 return, strtrim(strmid(txtstr0,ll,loc[im]-loc[in]+len[im]), 2) 152 154 endif 153 155 154 156 N = ABS(NTH) ; Allow nth<0. 155 157 IF N GT NWDS-1 THEN RETURN,'' ; out of range, null. … … 157 159 IF NTH LT 0 THEN GOTO, NEG ; Handle nth<0. 158 160 IF MTH GT NWDS-1 THEN MTH = NWDS-1 ; Words to end. 159 161 160 162 if keyword_set(notrim) then begin 161 163 RETURN, STRMID(TXTSTR0,ll,LOC[MTH]-LOC[NTH]+LEN[MTH]) … … 163 165 RETURN, strtrim(STRMID(TXTSTR0,ll,LOC[MTH]-LOC[NTH]+LEN[MTH]), 2) 164 166 endelse 165 167 166 168 NEG: if keyword_set(notrim) then begin 167 169 RETURN, STRMID(TXTSTR0,ll,9999) … … 169 171 RETURN, strtrim(STRMID(TXTSTR0,ll,9999), 2) 170 172 endelse 171 173 172 174 END -
trunk/SRC/ToBeReviewed/TRIANGULATION/definetri.pro
r186 r230 48 48 ; 49 49 ; @param DOWNWARD {in}{optional} 50 ; When downward is undefineall rectangles are cut in using the upward50 ; When DOWNWARD is undefined all rectangles are cut in using the upward 51 51 ; diagonal. 52 ; D ownwardis a vector which contains the rectangles numbers which are cut in52 ; DOWNWARD is a vector which contains the rectangles numbers which are cut in 53 53 ; using the downward diagonal. 54 54 ; The rectangle number is defined by the index (in a nx*ny vector) of the
Note: See TracChangeset
for help on using the changeset viewer.