in_bounds

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

Filter sources to those landing on an image.

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

x & y positions of sources on image

imbdgalsim.Image.Bounds

bounds of image

marginint

keep sources up to margin outside of bounds

Returns:
keepnp.ndarray (bool)

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