Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  Libraries  >  ASTROLIB  >  HGREP

HGREP

HGREP

Name


    HGREP

Purpose


      Find a substring in a FITS header (or any other string array)

Calling Sequence


      HGREP, header, substring, [/KEEPCASE, /LINENUM ]

Inputs


      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

Optional Input Keywords


      /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

Outputs


      None, results are printed to screen

Example


      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

History


      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



© 2018 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us