| sampcum | stsdas.hst_calib.nicmos | sampcum |
sampcum -- accumulate a MultiAccum image from a set of first differences
sampcum image outimage zeroimage template
Sampcum is a CL script that sums a series of first differences in a NICMOS MultiAccum file into a normal set of accumulating SCI image extensions. The output file is initially created as a copy of the template file. Next, the zero read SCI image extension in the output file is replaced by the image referenced by the "zeroimage" parameter. Then the remaining SCI image extensions in the output file are replaced by the accumulating sums of the input file SCI image extensions, starting with the first read (IMSET = NSAMP-1) and proceeding through to the last read (IMSET = 1).
The corresponding task "sampdiff" can be used to create first differences.
1. Reaccumulate the first differences in the file "n4xj13jwq_fdiff.fits", storing the results in file "n4xj13jqd_reacc.fits". The original IMA file for this dataset, "n4xj13jwq_ima.fits", is used as the template, and the zero read SCI image extension from this file is used for the zero read of the output file.
cl> sampcum n4xj13jwq_fdiff.fits n4xj13jwq_reacc.fits \ >>> n4xj13jwq_ima[sci,12] n4xj13jwq_ima.fits
Authors: M. Dickinson, H. Bushouse, STScI