ioutils.wcs.all_world2pix_infov

ioutils.wcs.all_world2pix_infov(wcs, *args, naxes=None, bezels=0.5, **kwargs)

Parameters

wcs : ~astropy.wcs.WCS or FastTanSipWCS

The WCS object.

naxes : array-like of int, default = None

The number of pixels along each axis. If not provided, it defaults first to wcs._naxis, and if it does not exist, the maximum values of x and y.

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.

Returns

pixels : ndarray

The pixel coordinates (N, 2).

infov : 1-D boolean array

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