cabaret.Sources.to_pixel#
- Sources.to_pixel(wcs: WCS) ndarray[source]#
Convert the RA-DEC coordinates to pixel coordinates using the given WCS.
- Parameters:
wcs (astropy.wcs.WCS) – The WCS object used for the conversion.
- Returns:
An array of shape (n, 2) containing the pixel coordinates of the sources.
- Return type:
np.ndarray