Rfits

From BYU Astro Docs

Jump to: navigation, search

Contents

Basic Information

The rfits command converts image data (fits files from the telescope) to individual IRAF images (.imh files).

Parameters

To edit rfits parameters, type:

epar rfits

Something like this should be displayed:

fits_fil=          @InputNames  FITS data source
file_lis=                       File/extensions list
iraf_fil=         @OutputNames  IRAF filename
(make_im=                  yes) Create an IRAF image?
(long_he=                   no) Print FITS header cards?
(short_h=                  yes) Print short header?
(datatyp=                     ) IRAF data type
(blank  =                   0.) Blank value
(scale  =                  yes) Scale the data?
(oldiraf=                   no) Use old IRAF name in place of iraf_file?
(offset =                    0) Tape file offset
(mode   =                   ql)

The following is a generic guideline for how the parameter file should be configured. You should know and understand what you are trying to accomplish with your data before using the parameters given above and described below. See the rfits doc at iraf.net for complete details.

  • fits_files - Either a FITS file (eg object.fits or zero*.fits) or the name of an input file with a list of the file names one wants to rfits, one per line. The file name must be preceded with an @ character like the example above.
  • file_list - We will probably never need this (unless we start reading off tapes again, then this should be looked into). Leave it blank.
  • iraf_files - Either the prefix to be given to the .imh files (eg zero) or the name of an output file with a list of file names one wants to produce, one per line. The file name must be preceded with an @ character like the example above.
  • make_image - Should be set to yes. Making IRAF images is the point of using rfits. If this is set to no, only headers will be printed out.
  • long_header - Generally set to no, but if you want to see long headers (more information) when rfits is running, change this to yes and enjoy.
  • short_header - Generally set to yes.
  • datatype - Datatype of the output image. Generally IRAF figures this out, but it doesn't hurt to make sure it is or to check what the datatype of the CCD (input image) is and make sure data is not lost. For example, if the input datatype is and integer, but the output datatype is a short integer, there is a problem.
  • blank - Generally set to 0.
  • scale - Always set to yes
  • oldirafname - Always set to no
  • offset - Always set to 0 (unless at some point we are reading off tapes again, then this can be used)
  • mode - Never ever change.

Usage

Examples of usage.

  • rfits all zero fits files to imh:
rfits zero*.fit "" zero
  • rfits a list of input files into a list of output files
rfits @InputNames "" @OutputNames

Making Input / Output Files*

At a command window (not in IRAF) in the directory where all the FITS files are located, type:

ls *.fit > InputNames
cp InputFiles OutputFiles

Edit OutputFiles in your favorite text editor and replace all .fit with .imh

---

*Another method for doing this can be found in the notes for the "files" task here [1]

Links

Personal tools