Download PACS Data Reduction Guide

Transcript
In the Beginning is the Pipeline. Photometry
5.5.1.3. photAvgPlateau
The task averages all valid signals on chopper plateau and
resamples signals, status and mask
words for the photometer. It
calculate noise map but not the coverage map. The result is a Frames
class with one image per every single chopper plateau.
myframe = photAvgPlateau(myframe,skipFirst=True,copy=1)
The module uses the status entry CHOPPERPLATEAU (CALSOURCE in
case of calibration
block pre-processing) to identify the chopper
plateau in the same way as CleanPlateau. Then
it
computes the average (sigma clipping if sigclip >
0, and median if mean =1) for each
pixel over the chopper plateau .
The signal of the bad pixels, identified by the BADPIXEL mask,
is reduced by the task as the
unmasked pixel. The pixels flagged in
the other available masks (SATURATION, GLITCH,
UNCLEANCHOP) are
discarded in the average. If the chopper plateau contains no valid
data
(all pixels masked out) the signal is set to
NaN (Not a Number). The noise is calculated for
each
pixel (x,y) and each plateau
(p) as:
noise[x,y,p] = STDDEV( signal[ x,y,validSelection[p] ]) /
SQRT(nn)
where nn is the number of valid readouts in
the chopper plateau. This number is then stored
as addition entry
(NrChopperPlateau ) in the status table. The noise
is stored in the
Noisemap. The skipFirst=True
option gets rid of the first frame of each plateau. It is needed
since
the first group of 4 averaged readout after the chopper motion will
have a different value
from the one following it as the signal takes a
few 40 Hz readouts to adjust to the new level
5.5.1.4. photAddPointing4PointSource
The task extracts pointing information for further photometer
PointSource processing. Stores
the averaged ra,dec of the virtual
aperture for both nod positions, dither positions and chop
positions
and adds the PhotPointSource Dataset to the Frames class. It contains
per nod
position, dither position and chopper position the first value
of : RaArray, DecArray, PaArray,
CPR, DithPos, NodCycleNum,
ChopperPlateau, isAPosition. This information is later used on
PhotProjectPointSource to map the Frames.
myframe = photAddPointing4PointSource(framesnod)
5.5.1.5. photDiffChop
Subtract every off-source signal from every consecutive
on-source signal. The result is a Frames
class with one image per one
chopper cycle. Note that in PS mode the 'off-source' image also
contains the source but on a different position.
71