[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

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


ST_DISKREAD ST_DISK_DATA ST_DISK_TABLE ST_DISK_GEIS Source code in st_diskread.pro

ST_DISKREAD

Name
       ST_DISKREAD
Purpose
       Read HST FITS formatted disk files and reconstruct GEIS (STSDAS) files.
Calling Sequence
       ST_DISKREAD, infiles
Input Parameters
       infiles - (scalar string) input disk files to be converted into GEIS
                       files. Wildcards are allowed.
Files Created
   GEIS files:
         The GEIS file is reconstructed from each input Fits file. The
       output filename is composed from the rootname of the observation
       and the appropriate GEIS file extension (i.e. d0h/d, c0h/d, etc.).
   Tables:
         If input file is a fits table, the output is an SDAS table.
Example
       a) Reconstruct the GEIS file for disk FITS file z29i020ct*.fits.
               st_diskread,'z29i020ct*.fits'
Procedures Used
       ST_DISK_DATA, ST_DISK_TABLE, ST_DISK_GEIS
       FTSIZE,SXPAR(),TAB_CREATE, TAB_WRITE
Revision History
       10/17/94        JKF/ACC - taken from ST_TAPEREAD.
       11/02/94        JKF/ACC - added /block on open statement to
                                 handle files with 512 bytes/record.
       12/6/95         JKF/ACC - include new jitter files...replaces
                                               st_read_jitter.pro.
       03/5/96         W. Landsman, change FORRD to READU, remove Version 1
                               type codes, add message facility
       05/20/00        W. Landsman, remove obsolete !ERR calls, new calling
                               sequence to FTINFO
****************************************************************************
       Converted to IDL V5.0   W. Landsman   September 1997

ST_DISK_DATA

Name
       ST_DISK_DATA
Purpose
       Routine to read next header and data array from an HST FITS disk file.
       This is a subroutine of ST_DISKREAD and not intended for stand alone
       use.
Calling Sequence
       st_disk_data,unit,h,data,name,gcount,dimen,opsize,nbytes,itype
Input Parameters
       unit - logical unit number.
Output Parameters
       h - FITS header
       data - data array
       name - file name
       gcount - number of groups
       dimen - data dimensions
       opsize - parameter blocks size
       nbytes - bytes per data group
       itype - idl data type
Note
       This is not a standalone program. Use ST_DISKREAD.
Procedures Used
       GETTOK(), SXPAR()
Revision History
       10/17/94        JKF/ACC         - taken from ST_TAPE_DATA.
***************************************************************************

ST_DISK_TABLE

Name
       ST_DISK_TABLE
Purpose
       Routine to read FITS table from an ST fits on disk.
       This is a subroutine of st_diskread and not intended for stand alone
       use.
Calling Sequence
       st_disk_table,unit,h,data
Input Parameters
       unit - disk unit number
Output Parameters
       h - FITS header
       data - table array
Note
       This is not a standalone program. Use ST_DISKREAD.
Revision History
       10/17/94        JKF/ACC - taken from ST_TAPE_TABLE.
       12/7/95         JKF/ACC - handle tables for jitter data.
****************************************************************************

ST_DISK_GEIS

Name
       ST_DISK_GEIS
Purpose
        Routine to construct GEIS files from ST FITS disk files.
Calling Sequence
       ST_DISK_GEIS, h, data, htab, tab, table_available, name, gcount,
               dimen,opsize, nbytes_g,itype
Input Parameters
       h - header for data
       data - data array
       htab - header for the table
       tab - fits table
       table_available - logical variable (1 if table was found)
       name - data set name
       gcount - number of groups
       dimen - data dimensions
       opsize - original parameter block size
       nbytes_g - number of bytes per group
       itype - idl integer data type value for the output data groups
Side Effects
       GEIS file updated with group parameters in unit 1 (already open)
       and header file created
Note
       This is not a standalone program. Use st_diskread.
       During the creation of the header, this routine performs the
       following steps:
       1) create a basic fits header (7 keywords)
       2) adjust basic fits header for the number of axis present (i.e. >1)
       3) adjust basic fits header for parameter keywords (i.e. ptype,etc)
       4) from this point, sequentially copies keywords until it hits one of
               the following keywords 'INSTRUME','INSTRUID', or 'CONFG'.
       5) append 'END' statement
Procedures Used
       FTSIZE, SXADDPAR, SXHWRITE
Revision History
       10/17/94        JKF/ACC         - taken from ST_DISK_GEIS
****************************************************************************

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