idlastro / STSDAS Image manipulation: SXHMAKE

[Source code]

NAME
SXHMAKE
PURPOSE
Create a basic STSDAS header file from an IDL data array
CALLING SEQUENCE
sxhmake, Data, Groups, Header
INPUTS
Data = IDL data array of the same type, dimensions and
        size as are to be written to file.
Groups = # of groups to be written.
OUTPUTS
Header = String array containing ST header file.
PROCEDURE
Call sxhmake to create a header file.  Then call sxopen to
open output image, followed by sxwrite to write the data.
If you do not plan to change the header created by sxhmake
before calling sxopen, you might consider using sxmake which
does both steps.
MODIFICATION HISTORY
Don Lindler  Feb 1990 modified from SXMAKE by DMS, July, 1983.
D. Lindler April 90  Converted to new VMS IDL
M. Greason May 1990  Header creation bugs eliminated.
W. Landsman Aug 1997 Use SYSTIME() instead of !STIME for V5.0 
Converted to IDL V5.0   W. Landsman   September 1997
Recognize unsigned datatype    January 2000   W. Landsman