get_center_pixel
- astrocut.get_center_pixel(gwcsobj: WCS, ra: float, dec: float) tuple[source]
Get the center pixel from a Roman 2D science image.
For an input RA, Dec sky coordinate, get the closest pixel location on the input Roman image.
- Parameters
- gwcsobjgwcs.wcs.WCS
The Roman GWCS object.
- rafloat
The input right ascension.
- decfloat
The input declination.
- Returns
- tuple
The pixel position, FITS wcs object