zoom_on_source#

radiosim.utils.zoom_on_source(img, comp=None, max_amp=0.01)[source]#

Zoom on source to cut out irrelevant area. Shape will stay equal.

Parameters:
img: 2D array

Image of the sky used to zoom on

comp: 3D array (n, (img))

Images of the components, same zooming as on img

max_amp: float

Maximal amplitude which will be at the edge of the image

Returns:
zoomed_img: ndarray

Image after zooming

zoom_factor: float

Zooming factor