combine_frames

Contents

combine_frames#

excalibuhr.utils.combine_frames(dt, err, collapse='mean', clip=3, weights=None)[source]#

combine multiple images or spectra with error propogation

Parameters:
  • dt (list) – a list of images or spectra to be combined

  • err (list) – a list of associated errors to the input data

  • collapse (str) – the way of combining frames: mean, median, sum. weighted applies to spectal data, meaning a weighted average by the mean SNR squared.

Returns:

master, master_err – combined data and its error

Return type:

array