Ignore:
Timestamp:
04/17/14 10:49:43 (10 years ago)
Author:
pinsard
Message:

fix thanks to coding rules; typo; dupe empty lines; trailing blanks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/STRUCTURE/where_tag.pro

    r375 r495  
    88; 
    99; Like the <proidl>WHERE</proidl> function but for use with structures 
    10 ;  
     10; 
    1111; @categories 
    1212; Structure 
     
    1717; @keyword TAG_NAME 
    1818; Scalar string specifying Tag Name 
    19 ;  
     19; 
    2020; @keyword TAG_NUMBER 
    2121; Otherwise give the Tag Number 
    22 ;  
     22; 
    2323; @keyword RANGE 
    2424; [min,max] range to search for in STRUCT 
    25 ;  
     25; 
    2626; @keyword VALUES 
    2727; One or array of numbers to match for in STRUCT 
    28 ;  
     28; 
    2929; @keyword ISELECT 
    3030; Specifies indices to select only part of structure array, 
    3131; (use it to recycle subscripts from previous searches). 
    32 ;  
     32; 
    3333; @keyword NOPRINT 
    3434; Suppress informational messages about nothing found. 
     
    3737; Nfound {out} 
    3838; # of occurrences found. 
    39 ;  
     39; 
    4040; @restrictions 
    4141; User *must* specify (1) TAG_NAME or TAG_NUMBER to search, and (2) 
     
    4444; @examples 
    4545; 
    46 ; Suppose STR is a structure with tags CAT_NO:indgen(10), and  
     46; Suppose STR is a structure with tags CAT_NO:indgen(10), and 
    4747; NAME:strarr(10). Find the indices where STR.CAT_NO is between 3 and 5. 
    4848; 
    49 ;   IDL> print, WHERE_TAG( str, TAG_NAME = 'CAT_NO', VALUE = [3,4,5] )  
     49;   IDL> print, WHERE_TAG( str, TAG_NAME = 'CAT_NO', VALUE = [3,4,5] ) 
    5050; or 
    51 ;   IDL> print, WHERE_TAG( str, TAG_NUM = 0, RANGE = [3,5])  
     51;   IDL> print, WHERE_TAG( str, TAG_NUM = 0, RANGE = [3,5]) 
    5252; 
    5353; @history 
     
    5757; @version 
    5858; $Id$ 
    59 ;  
     59; 
    6060;- 
    6161FUNCTION where_tag, Struct, Nfound,     TAG_NAME=tag_name,      $ 
     
    9999           endif 
    100100 
    101         if N_elements( ipart ) GT 0 then begin          ;check if any searching  
     101        if N_elements( ipart ) GT 0 then begin          ;check if any searching 
    102102                                                        ;on a subset of input. 
    103103                w = where( ipart GE 0, nf ) 
Note: See TracChangeset for help on using the changeset viewer.