Stack#

class prose.blocks.Stack(ref=None, **kwargs)#

Build a FITS stack image of the observation

The stack image is accessible through the stack attribute. It is built by accumulating images along creating a pixel weights map. This map allows to ignore bad pixels contributions to the stack, built through a weighted mean.

The idea of weighting is stolen from https://github.com/lsst/meas_algorithms/blob/main/python/lsst/meas/algorithms/accumulator_mean_stack.py

Parameters:
  • destination (str, optional) – path of the stack image (must be a .fits file name), dfault is None and does not save

  • header (dict, optional) – header base of the stack image to be saved, default is None for fresh header

  • overwrite (bool, optional) – weather to overwrite file if exists, by default False