STScI Logo

rarc2pros_c xray.xdataio


NAME · USAGE · DESCRIPTION · PARAMETERS · EXAMPLES · TIME_REQUIREMENTS
BUGS · SEE_ALSO

NAME

rarc2pros_c - convert ROSAT ARCHIVE FITS files into a set of IRAF/PROS files

USAGE

rarc2pros_c fits_root_name instrument

DESCRIPTION

rarc2pros_c converts the FITS files for a ROSAT observation obtained from the data center archives into a set of IRAF/PROS files that includes qpoe, image, and tab files. The FITS files must be on disk and the task works on the full set or a subset of the files from the archive in either rationalized data format (RDF) or Rev0 format (US or GERMAN).

The user is strongly urged to use the default: "autoname=yes". All output files will be created in the current default directory.

The task works only for filenames whose extensions are capitals. (eg. root_BAS.FITS)

PARAMETERS

inpfile = input filename [root]

The root name of the input FITS files loaded with "t2d". (e.g. root name of rp110590n00_BAS.FITS is rp110590n00 )

instrument = instrument (hri|pspc)

Type either "hri" or "pspc" (quotes not needed).

outpfile = "." output filename [root]

If autonaming is used this parameter is NOT required and output files are always written to the current default directory. If autonaming has been turned off, this parameter is needed.

(unscreened = no) include rejected events?

Indicates whether to make an unscreened qpoe (standard + rejected events) by adding the events rejected by processing to the standard qpoe. (Available with RDF format data only)

(autoname = yes) Rename to OLDIRAFNAME?

Manual naming can be very confusing: use of the default is highly recommended.

(corkey = yes) [boolean] Correct CRPIX keywords?

The REV 0 ROSAT archive files have small errors in the IMAGE( or QPOE) reference point. This switch will automatically apply the necessary corrections.

(clobber = no) [boolean] Okay to delete existing file?

If file overwrite errors occur, try manually deleting existing files (use IRAF "imdel" for "imh" files).

(qpi = no) [boolean]

Boolean flag controlling whether the internal qpoe parameters (see below) are prompted for, or whether they are defaulted to internally hardwired values. This parameter is not usually changed by the user. (Prompting is normally turned off except during stand-alone debugging.)

(qp_psize = 2048) [int]

Page size for the qpoe file. This parameter is internal to qpoe and should not normally be changed. ("See Bug list, below")

(qp_blen = 4096) [int]

Bucket length for the qpoe file. This parameter is internal to qpoe and should not normally be changed. ("See Bug list, below")

(qp_blfact = 1) [int]

Qpoe blocking factor for imio. This parameter is internal to qpoe and should not normally be changed.

(qp_index = yes) [bool]

Boolean flag that an index should be made for the qpoe file. This parameter is internal to qpoe and should not normally be changed.

(qp_ky= "y x") [char]

Key on which to make the qpoe index. This parameter is internal to qpoe and should not normally be changed.

(qp_deb = 0) [int]

Debug level for qpoe internals. This parameter is internal to qpoe and should not normally be changed.

EXAMPLES

1. Convert the HRI RDF FITS files for the AR Lac test data to the standard set of IRAF/PROS files (filename: rh110267n00_BAS.FIT) :


   xd> rarc2pros_c
   input filename [root]: rh110267n00
   instrument (hri|pspc): hri
   output filename (.): 
   EOF encountered
   Files are in RDF format
   :

   Output files include :
       rh110267n00.qp                  
       rh110267n00_allqlm.tab
       rh110267n00_stdqlm.tab

2. Convert the HRI RDF FITS files for the AR Lac test data to the standard set of IRAF/PROS files (filename: RH110267n00_BAS.FITS) :


   xd> rarc2pros_c
   input filename [root]: RH110267n00
   instrument (hri|pspc): hri
   output filename (.): 
   EOF encountered
   Files are in RDF format
   :

   Output files include :
       rh110267n00.qp                  
       rh110267n00_allqlm.tab
       rh110267n00_stdqlm.tab

TIME REQUIREMENTS

BUGS

If the user aborts this task abrubtly, with for instance a ctrl-c, the task thinks that the temporary file, files.lst, exists. The only workaround we have determined is to exit IRAF and get back in, and then rerun rarc2pros_c.

This task will run the PROS task qpsort . For especially large files, or limited disk space, this task may abort. In these cases, it is necessary to adjust the QPOE parameters and restart the task.

This program could result in a fatal error as the last table file is attempted to be made from the split orbit file. This could happen if the split orbit file is from an early HRI sequence. The early HRI split orbit file had invalid formats that were later corrected. If this happens, all of the files except the "_eph.tab" file should be valid. Please contact hotseat@cfa.harvard.edu if this error occurs.

In case of an overflow error message when writing out the events to the qpoe file, try increasing qp_psize and qp_blen by factors of two.

SEE ALSO

ROSAT Data Products Guide and addendum "User's Guide to ROSAT Data in the Rationalized Data Format (RDF)", for descriptions of ROSAT FITS files.

Documentation on fits2qp and strfits since these tasks are called by this script.

Documentation on ROSAT data files (help rosat_files , help explain_xdata ) for descriptions of input HRI and PSPC data files and resulting output files.


Source Code · Search Form · STSDAS