4.34. map_to_sky

Retrieves source information from Simbad and returns their coordinates on the image.


Fits.map_to_sky() pd.DataFrame

Retrieves source information from Simbad and returns their coordinates on the image.

Returns

pd.DataFrame

A DataFrame containing names, pixel coordinates, and corresponding sky coordinates of the sources.

Raises

  • Unsolvable

    When the header does not contain a valid WCS solution.


4.34.1. Example:

from myraflib import Fits
from astropy.coordinates import SkyCoord

fits = Fits.sample()
sources = fits.map_to_sky()