Package stistools :: Module sshift
[hide private]
[frames] | no frames]

Module sshift

source code


Version: 1.7 (2010-Apr-27)

Functions [hide private]
 
shiftimage(infile, outfile, shift=0)
Shift each image extension of an input file by N rows and write the new image extension to the output file.
source code
 
sshift(input, output=None, shifts=None, platescale=None, tolerance=None)
Description:
source code
Variables [hide private]
  __package__ = 'stistools'

Imports: pyfits


Function Details [hide private]

sshift(input, output=None, shifts=None, platescale=None, tolerance=None)

source code 

Description:

    Align spectra from different images of an imset.

Input:

    input = A list of input filenames.  These must be STIS flat-
    fielded (_flt) image FITS files.  This argument will accept a
    single filename or a list of filenames.

Optional input (keywords):

    shifts = A list of integers indicating the number of rows to shift
    each image of each file in the cross-dispersion (Y-) direction.

    platescale = The size of a pixel in arcseconds.  Used to convert
    the value of the POSTARG2 keyword to pixels.

    tolerance = The allowed difference between calculated shifts and
    integer pixel shifts (fraction of pixel).

    help = this message.

Output:

    None

Optional output (keywords):

    output = A list of output filenames. The number of output
    filenames must match the number of input filenames.  If no output
    is given, then the _flt substring of the input file is replace by
    the _sfl substring to create an output file.  This option will
    accept a single filename or a list of filenames.

Author:

    Paul Barrett (STScI)

Python version:

    Paul Barrett (STScI)