astroquery
astroquery copied to clipboard
NED: name not recognized and wrong coordinates
Hi. I have been using astroquery and noticed that some objects names are not recognized when using the NED.query_object()
function even though they do work on the NED website (e.g. WISEA J081750.69-054305.6).
I also tried to run the example from the documentation (query region), but got different results.
from astroquery.ipac.ned import Ned
import astropy.units as u
result_table = Ned.query_region("3c 273", radius=0.05 * u.deg)
print(result_table)
No. Object Name RA ... Redshift Points Diameter Points Associations
degrees ...
--- ------------------------- ---------- ... --------------- --------------- ------------
1 SDSS J133013.73+241535.8 202.55721 ... 0 3 0
2 SDSS J133014.03+241430.6 202.55847 ... 0 4 0
3 WISEA J133014.10+241426.7 202.55878 ... 0 0 0
4 SDSS J133014.15+241452.4 202.55897 ... 0 4 0
5 WISEA J133014.53+241445.8 202.56055 ... 0 0 0
6 WISEA J133014.55+241504.4 202.56063 ... 0 0 0
7 SDSS J133014.85+241423.7 202.56189 ... 0 4 0
... ... ... ... ... ... ...
260 WISEA J133036.89+241610.0 202.65372 ... 0 4 0
261 SDSS J133036.92+241505.0 202.65387 ... 0 4 0
262 WISEA J133037.06+241405.5 202.6544 ... 2 4 0
263 SDSS J133037.17+241358.5 202.65492 ... 0 4 0
264 SDSS J133037.57+241411.2 202.65657 ... 0 4 0
265 WISEA J133037.80+241418.6 202.65751 ... 0 0 0
266 WISEA J133038.71+241619.2 202.66105 ... 0 4 0
267 SDSS J133038.96+241450.1 202.66234 ... 0 4 0
Length = 267 rows
I am using astroquery v0.4.6
on a new anaconda environment with python 3.11. I guess this might be an issue with astroquery and not my environment. Thanks in advance.
I don't expect any recent changes that would cause this issue, but then I see the following error message for the query you're running above for 3c 273
:
RemoteServiceError: The remote service returned the following error message.
ERROR: The object name that you have submitted is not currently recognized by the NED name interpreter.
For some reason, astroquery.Ned doesn't seem to be retrieving the right coordinates for the objects. I also don't understand why some names would work on the NED website, but not with astroquery. Any ideas?
This seems to have been something temporary with NED's databases. Trying the query above works today.
In [1]: from astroquery.ipac.ned import Ned
In [2]: object_name = "WISEA J081750.69-054305.6"
In [3]: Ned.query_object(object_name)
Out[3]:
<Table length=1>
No. Object Name RA DEC Type ... Positions Redshift Points Diameter Points Associations
degrees degrees ...
int32 str30 float64 float64 object ... int32 int32 int32 int32
----- ------------------------- ---------- ---------- ------ ... --------- --------------- --------------- ------------
1 WISEA J081750.69-054305.6 124.46121 -5.71828 G ... 4 3 2 0
Using astroquery 0.4.7.