Module: utils

find_low_flux_sub_image(image, sub_block_frac_size=0.1, stack_average_max_id=1)[source]

This Functions splits an input image in a number of sub-blocks. Each sub-block has a size that is a fraction of the input image size, give by the parameter sub_block_frac_size. Sub-images are sorted according to their integrated flux. The lowest integrated flux sub-image is returned, or the averaged/stacked id_max sub-images.

Parameters:

image : array-like:

The image from which to extract the sub_image for background estimation

sub_block_frac_size : float

The size of the sub_images relative to the input image size

stack_average_max_id : Optional[int] :

Number of lowest integrated flux images to stack/average

Returns:

sub_im : array-like