Closed dan-adi closed 1 year ago
The way you wrote your query does work, but only if you know what is the source id of the object you are interested in. You can often look up source ids (and more) from e.g. Simbad. But M101 is a galaxy and the Gaia catalog contains only point sources, so the closest to what you might have in mind would be something like
>>> from astropy.coordinates import SkyCoord
>>> from astroquery.gaia import Gaia
>>> query_results = Gaia.cone_search_async(SkyCoord.from_name("M101"), radius="0.1 deg", columns=["ra", "dec"])
table = query.get_results()
I understand, thank you very much.
Hi, I am learning to use Gaia-astroquery. I've tried a simple query but it doesn't work. My attempt:
The error I'm getting:
How do I query for a single object?