StepBinPixels¶
- class sofia_redux.instruments.hawc.steps.stepbinpixels.StepBinPixels[source]¶
Bases:
StepParentBin pixels to increase signal-to-noise.
Input for this image must contain STOKES, ERROR, and COVAR images, as produced by the
sofia_redux.instruments.hawc.steps.StepStokespipeline step. The output DataFits has the same extensions as the input.Methods Summary
run()Run the data reduction algorithm.
setup()Set parameters and metadata for the pipeline step.
Methods Documentation
- run()[source]¶
Run the data reduction algorithm.
Because this step is single-in, single-out (SISO), self.datain must be a DataFits object. The output is also a DataFits object, stored in self.dataout.
The process is:
Block sum detector pixels with specified binning.
Propagate errors, covariances, and WCS keys.
- setup()[source]¶
Set parameters and metadata for the pipeline step.
Output files have PRODTYPE = ‘binpixels’, and are named with the step abbreviation ‘BIN’.
Parameters defined for this step are:
- block_size{1, 2, 4, 8}
Bin size, in pixels. Must divide the 40x64 array evenly into square blocks. If set to 1, no binning will be performed.