stacked_seds.stacking.stack_images

stacked_seds.stacking.stack_images(stamps, trim_fraction=0.1)[source]

Stacks a set of image stamps using a trimmed mean and calculates the error.

Parameters:
  • stamps (np.ndarray) – A 3D array of stamps to stack.

  • trim_fraction (float) – The fractional part of data to trim from each end.

Returns:

A tuple containing:
  • np.ndarray: The final stacked 2D image.

  • np.ndarray: The 2D error map (standard error of the mean).

Return type:

tuple