in_bounds

romanisim.image.in_bounds(xx, yy, imbd, margin)

Filter sources to those landing near an image.

Parameters:
xx, yy: ndarray[nobj] (float)

x & y positions of sources on image

imbdgalsim.Image.Bounds

bounds of image

marginint

keep sources within this number of pixels of the image edge

Returns:
keepnp.ndarray (bool)

whether each source’s center lands near the image (True) or not (False)