% @(#)get_fhea.hlq	19.1 (ESO-IPG) 02/25/03 14:03:22 
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1990 European Southern Observatory
%.IDENT      get_fheader.hlq
%.AUTHOR     KB, IPG/ESO
%.KEYWORDS   MIDAS, help files, GET/FHEADER
%.PURPOSE    On-line help file for the command: GET/FHEADER
%.VERSION    1.0  15-NOV-2002 : Creation, KB
%----------------------------------------------------------------
\se
SECTION./FHEA
\es\co
GET/FHEADER					15-NOV-2002  KB
\oc\su
GET/FHEADER FITS_file viewer
	extract (and view) the primary header of a FITS file
\us\pu
Purpose:      
	  Extract the primary header of a FITS file and store it in an
          ASCII file which can be viewed by a suitable program.
\up\sy
Syntax:       
          GET/FHEADER FITS_file viewer
\ys\pa
          FITS_file = name of FITS file
\ap\pa
          viewer = name of program to be used for viewing the ASCII file 
		   containing the FITS header data;
		   defaulted to nothing
\ap\sa
See also:
          READ/DESCR, INFO/FRAME
\as\no
Note:         
          The text from the primary FITS header and all following extension
	  headers are extracted from the FITS file and stored in an ASCII 
	  file with same name and file extension ".fhead"
\on\exs
Examples:
\ex
          GET/FHEADER vimos.fits
            Extract FITS header data of `vimos.fits' and store it in
            ASCII file `vimos.fhead'. 
\xe\ex
          GET/FHEADER wcstest.mt less
            Extract all FITS header data of `wcstest.mt' and use "less" to 
	    browse the FITS header(s) stored in `wcstest.fhead'.
\xe \sxe
