corgidrp.find_source#
Functions#
|
Generates a signal-to-noise (S/N) map by convolving the image with the PSF. |
|
Scales and subtracts the PSF at a given location in the image. |
Module Contents#
- corgidrp.find_source.make_snmap(image, psf_binarymask, image_without_planet=None, coronagraph=True)[source]#
Generates a signal-to-noise (S/N) map by convolving the image with the PSF.
- Parameters:
image (ndarray) – The input image.
psf_binarymask (ndarray) – A binary mask for PSF convolution.
image_without_planet (ndarray, optional) – An image without any sources (~noise map) to make snmap more accurate.
coronagraph (bool, optional) – If True, an IWA is applied to derive the snmap. Defaults to True.
- Returns:
The computed S/N map.
- Return type:
ndarray
- corgidrp.find_source.psf_scalesub(image, xy, psf, fwhm)[source]#
Scales and subtracts the PSF at a given location in the image.
- Parameters:
image (ndarray) – The input image.
xy (tuple) – The (y, x) coordinates where the PSF should be subtracted.
psf (ndarray) – The point spread function.
fwhm (float) – Full width at half maximum of the PSF.
- Returns:
The image after PSF subtraction.
- Return type:
ndarray