ioutils.wcs.infov2d

ioutils.wcs.infov2d(x, y, bezels=0.5, naxes=None)

Create a 2-D boolean array indicating if the points are within the image defined by naxes and bezels.

Parameters

x : array-like

The x and y coordinates of the points.

y : array-like

The x and y coordinates of the points.

bezels : int or 2-D array-like, default = 0.5

The number of pixels to drop from each edge of the image. If an int, it is applied to all edges. If 2-D, it should be like [[left, right], [bottom, top]]. Use negative values to accept objects slightly outside the image. Default is 0.5 because python assigns values -0.5 to 0.5 to be the 0-th pixel.

naxes : array-like of int, default = None

The number of pixels along each axis. If not provided, it defaults to the maximum values of x and y. Default is None.

Returns

infov : 1-D boolean array

A boolean array indicating if the points are within the image.