STScI Logo
STScI Logo
HST
Banner
FAQ
STScI

Part I: Introduction to Reducing the HST Data

TOC PREV NEXT INDEX PDF

1.4 Reading HST Data Disks


If you request HDA files on CDs or DVDs, you will receive them within a few days of your request. The datasets will all be in FITS (Flexible Image Transport System) format1. On disk, the data is placed in subdirectories based on the rootname.

Currently, datasets obtained with HST's original instruments (FGS, FOC, FOS, GHRS, HSP and WFPC) as well as one of the current instruments WFPC2, must have their FITS files converted to GEIS (Generic Edited Information Set) format in order to work on them with IRAF/STSDAS. Further information on HST file formats is presented in Chapter 2. STSDAS is the analysis software package for HST data, and is discussed further in Chapter 3. Datasets obtained with ACS, NICMOS and STIS should be reduced in FITS format without conversion to GEIS. (STSDAS support for the analysis of WFPC2 data in FITS format is currently planned.)

The steps for reading and converting FITS files to GEIS files are as follows:

First bring up IRAF/STSDAS in your IRAF home directory by typing

> cl


 

If this does not start up an IRAF session, you will need to type "mkiraf" first and select an appropriate terminal window. See Appendix A.3.

This will start an IRAF session. IRAF and STSDAS are organized into packages. To load a package, type its name. To begin with, you must load the stsdas and fitsio (FITS Input/Output) packages:

cl> stsdas

st> fitsio


 

The IRAF prompt (such as st>) shows the first two letters of the most recently loaded package. The fitsio package contains the STSDAS programs (called tasks in the IRAF/STSDAS environment) required to read and write FITS files to and from tapes and disks. The two principle tasks are strfits, for reading files, and stwfits, for writing them.

Next, set the IRAF environment variable imtype to specify that your data files are to be written in GEIS format. This is done by typing:

fi> set imtype="hhh"


 

You should then move to the directory containing the FITS files.

The last step is to use strfits to read the data. Like most IRAF/STSDAS tasks, strfits has several parameters that control its function. You can either edit these tasks using the IRAF epar command, or specify them on the command line. For the purpose of converting FITS files to GEIS files, the important parameter is oldirafname, which needs to be set to "yes" in order to keep the file rootname the same. To convert all the FITS files in a directory to GEIS files, type

fi> strfits *.fits " " oldirafname=yes


 

This command will make GEIS format copies (having extension ".hhh") of all the FITS files in the directory with the same rootname. Following reduction and analysis of the GEIS files with the IRAF/STSDAS tasks, they may be written back into FITS format, on hard disk or to a tape or other storage media, with the stwfits task.

1A description of FITS format and various supporting documents can be found at the Web site http://fits.gsfc.nasa.gov/fits_home.html

TOC PREV NEXT INDEX PDF
Space Telescope Science Institute
http://www.stsci.edu
Voice: (410) 338-1082
help@stsci.edu

Copyright  | Help  | Printable Page