find_too_close#

stellarphot.photometry.photometry.find_too_close(sourcelist, aperture_rad, pixel_scale=None)[source]#

Identify sources that are closer together than twice the aperture radius.

If ‘xcenter’ and ‘ycenter’ are available in the sourcelist (as determined by the value of sourcelist.has_x_y), they are used to determine separation of sources in units of pixels, otherwise if only ra/dec are available, the pixel_scale is necessary to determine the separation.

Parameters:
sourceliststellarphot.SourceListData

A list of sources with x/y and/or RA/Dec coordinates.

aperture_radint

Radius of the aperture, in pixels.

pixel_scalefloat, optional (Default: None)

Pixel scale of the image in arcsec/pixel. Only required if x/y coordinates are NOT provided.

Returns:
numpy array of bool

Array the same length as the RA/Dec that is True where the sources are closer than two aperture radii, False otherwise.