topwhere_tag
Structure
Return value
Nfound {out}
# of occurrences found.
Parameters
Struct
in
required
Nfound
Keywords
TAG_NAME
TAG_NUMBER
ISELECT
NOPRINT
RANGE
VALUES
Examples
Suppose STR is a structure with tags CAT_NO:indgen(10), and
NAME:strarr(10). Find the indices where STR.CAT_NO is
between 3 and 5.
IDL> print, WHERE_TAG( str, TAG_NAME = 'CAT_NO', VALUE = [3,4,5] ) ;or
IDL> print, WHERE_TAG( str, TAG_NUM = 0, RANGE = [3,5])
Version history
Version
$Id: where_tag.pro 262 2007-08-21 14:19:32Z pinsard $
History
written 1990 Frank Varosi STX @ NASA/GSFC
Stop printing "Tag not found" with /NOPRINT, CD Pike 8-Jun-93
Known issues
Restrictions
User *must* specify (1) TAG_NAME or TAG_NUMBER to search, and (2)
the VALUES or RANGE to search on;
Statistics
McCabe cyclic | 26 |
McCabe essential | 1 |
McCabe modular design | 1 |