[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Waldhäuser Str. 64, D-72076 Tübingen, Germany
[Uni logo]


STWRT Source code in stwrt.pro

STWRT

Name
       STWRT
Purpose
       Write a STSDAS header and/or 2-D array to disk (without groups!)
Calling Sequence
       STWRT, hdr                     ;Write image header (.hhh file) only
       STWRT, im                      ;Create header to match image array
       STWRT, im, hdr,[ name, /SDAS, /NOUPDATE ]
Input Parameters
       im - image array to be written to disk.  If no header array is
               supplied, then a simple header appropiate to the image will be
               constructed.
Optional Input Parameters
       hdr - STSDAS header, string array.
       name - character string containing the name of output file
               to which the image is written.  If omitted, then
               the program will prompt for the file name.  A file
               name will have the default extension of '.HHH'
Keyword Parameters
       NOUPDATE-- By default, STWRT will modify the input FITS header to create
               a proper SDAS .hhh file.   This includes  ensuring that (1) a
               DATATYPE keyword exists, and (2) that BITPIX is a positive
               value.
       SDAS-- The SDAS keyword can be specified to modify the input header to
               ensure SDAS compatibility.
Restrictions
       (1) STWRT is only for 2 dimensional images.  For other arrays use
       SXOPEN,1,NAME,HD,HISTORY,'W'   ;HISTORY need not be defined
       SXWRITE,1,IM
       CLOSE,1
       (2) The type of data written is determined by the DATATYPE
               keyword in the header.  A DATATYPE keyword appropiate to
               the image array type will be added if does not already exist
Side Effects
       A STSDAS header and/or image array is written to disk.    Unit 2 is
       opened and closed.
Revision History
       Written W. Landsman, STI Corp. August, 1986
       Returned old version to not modify header.  W. Landsman July 1991.
       Included call to CHKDType--option to change DATATYPE and BITPIX if they;
       do not match.                           J.D.Offenberg Dec 1991.
       Added call to CHECK_FITS, NOUPDATE keyword, remove autochange keyword
                                        W. Landsman May 1992
       Converted to IDL V5.0   W. Landsman   September 1997

Last modified by pro2html on 2001 April 26 at 03:14 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically