Institut für Astronomie und AstrophysikAbteilung AstronomieSand 1, D-72076 Tübingen, GermanyNew Address! -- Neue Adresse! |
HGREP
Find a substring in a FITS header (or any other string array)
HGREP, header, substring, [/KEEPCASE, /LINENUM ]
header - FITS header or other string array substring - scalar string to find in header; if a numeric value is supplied, it will be converted to type string
/KEEPCASE: if set, then look for an exact match of the input substring Default is to ignore case . /LINENUM: if set, prints line number of header in which substring appears
None, results are printed to screen
Find every place in a FITS header that the word 'aperture' appears in lower case letters and print the element number of the header array: IDL> hgrep, header, 'aperture', /keepcase, /linenum
Written, Wayne Landsman (Raytheon ITSS) August 1998 Adapted from STIS version by Phil Plait/ ACC November 14, 1997 Remove trailing spaces if a non-string is supplied W. Landsman Jun 2002
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]