build_default_combine_function

astrocut.build_default_combine_function(template_hdu_arr, no_data_val=nan)[source]

Given an array of ImageHdu objects, initialize a function to combine an array of the same size/shape images where each pixel the mean of all images with available data at that pixel.

Parameters
template_hdu_arrlist

A list of ImageHdu objects that will be used to create the image combine function.

no_data_valscaler

Optional. The image value that indicates “no data” at a particular pixel. The deavault is nan.

Returns
responsefunc

The combiner function that can be applying to other arrays of images.