astroquery icon indicating copy to clipboard operation
astroquery copied to clipboard

The unit of `"_r"` suddenly disappeared from the Vizier result table.

Open hbahk opened this issue 3 years ago • 3 comments

Hi, I recently found that the Vizier query no longer gives the unit of angular separation _r in the result table, which makes error with previous codes I wrote. I'm just wondering if this is just a temporary thing or intentional update.

This is one of my result table which I got few days ago,

   _r       RAJ2000       DEJ2000    ...  yKmag  e_yKmag  yFlags 
  deg         deg           deg      ...   mag     mag           
-------- ------------- ------------- ... ------- ------- --------
0.013524 204.373110760  -9.504518530 ... 15.3153  0.0080   115000
0.016672 204.377877590  -9.502094490 ... 19.7155  0.0360   115000
...

and this is a result table now. The unit of _r is missing.

   _r    RAJ2000    DEJ2000        _2MASS        Jmag  ... Bflg Cflg  Xflg  Aflg
           deg        deg                        mag   ...                      
float64  float64    float64        str17       float32 ... str3 str3 uint8 uint8
------- ---------- ---------- ---------------- ------- ... ---- ---- ----- -----
  0.134 299.590280  35.201599 19582166+3512057   6.872 ...  111  000     0     0
 10.135 299.587491  35.203217 19582099+3512115  10.285 ...  111  c00     0     0
...

Thank you!

hbahk avatar Jun 10 '22 04:06 hbahk

I'm not aware of any changes that would have caused this; it could have been an upstream change (i.e., a change in what Vizier returns).

Could you post the queries (or minimal versions of the queries) that produced those results?

keflavich avatar Jun 10 '22 14:06 keflavich

The minimal examples will be like

from astroquery import vizier
v = vizier.core.Vizier(columns=["*", "+_r"], catalog="II/246")
result = v.query_region("HD 226868", radius="20s")
table = result['II/246/out']

or, with another catalog,

v = vizier.Vizier(columns=["*", "+_r"], catalog="II/349/ps1")
q = v.query_region('3C 273', radius=rad)
tables = q[0]

table["_r"].unit

hbahk avatar Jun 11 '22 05:06 hbahk

The issue is upstream. Thanks for reporting!

@gilleslandais : I can reproduce directly with the votable output on the webpages. None of the calculated columns have a unit. However, they are correctly included in the html output.

ManonMarchand avatar Jan 10 '24 14:01 ManonMarchand