merge_centroid

sofia_redux.instruments.forcast.merge_centroid.merge_centroid(data, header, variance=None, normmap=None, resize=True)[source]

Merge an image using a centroid algorithm

Add each frame of the data to a 2-d summation frame in a manner appropriate to the current reduction scheme. Averaged by the number of frames.

Parameters:
datanumpy.ndarray

data to be merged (nrow, ncol). i.e. frame with target images

headerastropy.fits.header.Header

FITS header of input data

variancenumpy.ndarray, optional

propagate provided variance (nrow, ncol)

normmapnumpy.ndarray, optional

The normalization map. Each pixel contains an integer of the number of peaks used to create an average for the output array

Returns:
numpy.ndarray, numpy.ndarray
  • The merged image i.e. frame with images of object at chop and nod positions merged. (nrow, ncol)

  • The propagated variance array (nrow, ncol)