NAME

uvotimgrism - extract UVOT grism spectra

USAGE

uvotimgrism infile=<filename> outfile=<filename>

DESCRIPTION

This tool extracts the grism dispersed region including the 0th order from a V or UV grism image and calculates a wavelength scale. The source extraction region is a rectangular box in a fixed relationship to the source position. The background regions widths and offsets are controlled by user parameters.

The user must supply the sourcex and sourcey parameters giving the 0th order position on the detector in FITS input image coordinates. The use of the ra and dec parameters is not yet implemented, and these must be set to a negative number.

PARAMETERS

infile [filename]
UVOT V or UV grism detector image file (see SSC UVOT Data Handbook).

outfile [filename]
Output file for source+background spectrum and extracted source region.

backfile [filename]
Output file for background spectrum.

(areafile = CALDB) [filename]
UVOT flux calibration (effective area) file (see SSC UVOT Data Handbook).

(wavefile = CALDB) [filename]
UVOT grating equation calibration file (see SSC UVOT Data Handbook).

badpixfile = NONE [filename]
Bad pixel file (as created by uvotbadpix). The special value NONE causes a bad pixel image to be created with no bad pixels.

ra [real]
Right ascension of source [degrees]. If negative, sourcex/y will be used. Currently sourcex/y MUST be used as the RA/Dec interface is not yet implemented.

dec [real]
Declination of source [degrees]. Not yet implemented.

(sourcex = 0) [real]
X centroid of zeroth order in input FITS image [pix]. Note that sourcex/y are only used if ra is negative.

(sourcey = 0) [real]
Y centroid of zeroth order in input FITS image [pix]. Note that sourcex/y are only used if ra is negative.

(ang = -1) [real]
Angle (CCW) from X axis to 1st order grism [degrees]. The default value (-1) uses a lookup table for the angle based on the WHEELPOS keyword. The value depends on the grism mode and is set to 144.5 (U grism clocked) or 151.4 (U grism nominal) or 140.5 (V grism clocked) or 148.1 (V grism nominal).

(wavemin = 1600) [real]
Minimum wavelength of wave scale [A]

(wavemax = 2900) [real]
Maximum wavelength of wave scale [A]

(srcwid = 30) [integer]
Width of 1st order source extraction region [pixels]

(bkgwid1 = 10) [integer]
Width of lower background region [pixels]

(bkgoff1 = 10) [integer]
Separation of lower background region from source region [pixels]

(bkgwid2 = 10) [integer]
Width of upper background region [pixels]

(bkgoff2 = 10) [integer]
Separation of upper background region from source region [pixels]

(inreg = DEFAULT) [string]
Name of region file to create to indicate extraction regions in infile image. The value DEFAULT causes a region file with the same base name as infile and a .reg extension to be created. The value NONE causes no region file to be created. Otherwise, the value of inreg is taken to be the name of the region file to create.

(nsigma = 5) [real]
N sigma for determining outliers in background.

(history = yes) [boolean]
Standard HEAdas history parameter.

(cleanup = yes) [boolean]
Clean up temporary files?

(clobber = no) [boolean]
Standard HEAdas clobber parameter.

(chatter = 1) [enumerated integer]
Standard HEAdas chatter parameter.

EXAMPLES

The following example illustrates running uvotimgrism

1. run uvotimgrism on a given level 2 grism image file

      uvotimgrism infile=sw123456789ugv.fits

SEE ALSO

uvotevgrism

LAST MODIFIED

December 2007