%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1990-2009 European Southern Observatory
%.IDENT      get_fheader.hlq
%.AUTHOR     KB, IPG/ESO
%.KEYWORDS   MIDAS, help files, GET/FEXTENS
%.PURPOSE    On-line help file for the command: GET/FEXTENS
%.VERSION    1.0  19-JAN-2009 : Creation, KB
%----------------------------------------------------------------
\se
SECTION./FEXT
\es\co
GET/FEXTENS					19-JAN-2009  KB
\oc\su
GET/FEXTENS FITS_file extname
	get extension of FITS file with corresponding keyword EXTNAME 
\us\pu
Purpose:      
	  Search for extension in FITS file with FITS keyword EXTNAME 
          containing the given string `extname', which is converted
	  uppercase, first.
	  If found, this extension no. is then stored in integer keyword 
          OUTPUTI(1), else OUPUTI(1) = -999.
\up\sy
Syntax:       
          GET/FEXTENS FITS_file extname
\ys\pa
          FITS_file = name of FITS file
\ap\pa
          extname = name stored in FITS keyword EXTNAME of an extension
\ap\sa
See also:
          GET/FHEADER, INFO/FRAME
\as\no
Note:         
          If the extension does not have the keyword EXTNAME, the command
	  fails.
\on\exs
Examples:
\ex
          GET/FEXTENS newbie.fits Quality
            Search all extensions of FITS file `newbie.fits' and compare
	    keyword EXTNAME with string "QUALITY".
            A subsequent command
            READ/DESCR newbie.fits[{outputi}]
            would then access that specific extension directly in Midas.
\xe \sxe
