get_center_pixel

astrocut.get_center_pixel(gwcsobj: WCS, ra: float, dec: float) Tuple[Tuple[int, int], WCS][source]

Get the closest pixel location on an input image for a given set of coordinates.

Parameters:
gwcsobjgwcs.wcs.WCS

The GWCS object.

rafloat

The right ascension of the input coordinates.

decfloat

The declination of the input coordinates.

Returns:
pixel_position

The pixel position of the input coordinates.

wcs_updatedWCS

The approximated FITS WCS object.