prose.Image.cutout#
- Image.cutout(coords: Union[list, tuple, ndarray], shape: Union[int, tuple], wcs: bool = True, sources: bool = True, reset_index: bool = True)[source]#
Return a cutout Image instance.
- Parameters:
coords (list, tuple, np.ndarray) – cutout center coordinates
shape (tuple or int) – The shape of the cutouts to extract. If int, shape is (shape, shape)
wcs (bool, optional) – whether to compute and include cutouts WCS (takes more time), by default True
sources (bool, optional) – whether to compute and include cutouts sources, by default True
reset_index (bool,) – whether to reset the sources indexes, by default True
- Returns:
Image instance with data and catalogs containing cutout data and sources
- Return type: