Changeset 114 for trunk/SRC/ToBeReviewed/STRUCTURE
- Timestamp:
- 06/19/06 16:14:56 (18 years ago)
- Location:
- trunk/SRC/ToBeReviewed/STRUCTURE
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/STRUCTURE/chkstru.pro
r27 r114 27 27 ; INDEX --> a named variable that will contain the indices of 28 28 ; the required field names in the structure. They can then 29 ; be assessed through structure.(index (i)) . Index will29 ; be assessed through structure.(index[i]) . Index will 30 30 ; contain -1 for all fields entries that are not in the 31 31 ; structure. … … 75 75 76 76 function chkstru,structure,fields,index=index,verbose=verbose, extract = extract 77 ; 78 compile_opt idl2, strictarrsubs 79 ; 77 80 78 81 … … 91 94 92 95 s = size(structure) 93 if (s (1+s(0))ne 8) then begin96 if (s[1+s[0]] ne 8) then begin 94 97 if(keyword_set(verbose)) then $ 95 98 ras = report('CHKSTRU: ** No structure passed ! **') … … 109 112 110 113 for i=0,n_elements(fields)-1 do begin 111 ind = where(names eq strupcase(fields (i)))112 if (ind (0)lt 0) then begin114 ind = where(names eq strupcase(fields[i])) 115 if (ind[0] lt 0) then begin 113 116 if(keyword_set(verbose)) then $ 114 ras = report('CHKSTRU: ** Cannot find field '+fields (i)+' ! **')115 endif else index (i) = ind(0)117 ras = report('CHKSTRU: ** Cannot find field '+fields[i]+' ! **') 118 endif else index[i] = ind[0] 116 119 endfor 117 120 -
trunk/SRC/ToBeReviewed/STRUCTURE/extractstru.pro
r27 r114 60 60 ;------------------------------------------------------------ 61 61 FUNCTION extractstru, stru, liste, GARDE = garde, VIRE = vire 62 ; 63 compile_opt idl2, strictarrsubs 64 ; 62 65 if size(stru, /type) NE 8 then return, -1 63 66 if size(liste, /type) NE 7 then return, -1 -
trunk/SRC/ToBeReviewed/STRUCTURE/mixstru.pro
r74 r114 60 60 ;------------------------------------------------------------ 61 61 FUNCTION mixstru, stru1, stru2 62 ; 63 compile_opt idl2, strictarrsubs 64 ; 62 65 @cm_general 63 66 -
trunk/SRC/ToBeReviewed/STRUCTURE/struct2string.pro
r27 r114 45 45 ;------------------------------------------------------------ 46 46 FUNCTION struct2string, struct, CUT_IN_STRING = cut_in_string, MAX_STRUCT_LENGTH = max_struct_length, DIRECT2STRING = direct2string 47 ; 48 compile_opt idl2, strictarrsubs 49 ; 47 50 if size(struct, /type) NE 8 then return, '' 48 51 if NOT keyword_set(max_struct_length) then max_struct_length = 10000l -
trunk/SRC/ToBeReviewed/STRUCTURE/where_tag.pro
r97 r114 55 55 RANGE=range, VALUES=values 56 56 ;First check required parameters... 57 ; 58 compile_opt idl2, strictarrsubs 59 ; 57 60 58 61 Ntag = N_tags( Struct )
Note: See TracChangeset
for help on using the changeset viewer.