Skip to content

distance_result no longer in votable_fields in Simbad.query_region #3436

Description

@havok2063

Prior to 0.4.8 and #2954, distance_result was a valid votable field that returned the cone search separation distance in arcsec when doing a Simbad.query_region search. After 0.4.8, distance_result is no longer a valid field, and I cannot find what the equivalent field is. Is there a mapping available between the old votable fields and the new ones?

The PR mentions some column changes but the error message with distance_result isn't described in the PR. I also don't see anything in https://astroquery.readthedocs.io/en/latest/simbad/simbad_evolution.html. Now that Simbad.list_votable_fields() returns a mix of tables and columns, is there a way to list all the available columns from all tables?

0.4.7

import astropy.units as u
from astroquery.simbad import Simbad
from astropy.coordinates import SkyCoord

s = SkyCoord(*(230.50745896, 43.53232817), unit='deg')

Simbad.add_votable_fields('distance_result')
Simbad.add_votable_fields('ra(d)', 'dec(d)')

res = Simbad.query_region(s, radius=5*u.Unit('arcmin'))

res
<Table length=7>
          MAIN_ID                 RA           DEC      RA_PREC DEC_PREC ... DISTANCE_RESULT     RA_d        DEC_d     SCRIPT_NUMBER_ID
                               "h:m:s"       "d:m:s"                     ...      arcsec         deg          deg
           object               str13         str13      int16   int16   ...     float32       float64      float64         int32
--------------------------- ------------- ------------- ------- -------- ... --------------- ------------ ------------ ----------------
               LEDA 2223006 15 22 01.7901 +43 31 56.381      14       14 ...          0.0000 230.50745896  43.53232817                1
   SDSS J152148.52+433252.8  15 21 48.524  +43 32 52.89       7        7 ...        154.9247 230.45218200  43.54802500                1
    ZTF J152155.59+432835.3 15 21 55.6209 +43 28 35.186      14       14 ...        212.0959 230.48175387  43.47644056                1
             TYC 3058-345-1 15 22 25.5363 +43 30 46.098      14       14 ...        267.6688 230.60640150  43.51280513                1
[MBS2017] CMASS North 18716      15 21 36      +43 33.0       4        4 ...        282.4598 230.40200000  43.55000000                1
    2MASS J15215482+4336318 15 21 54.8183 +43 36 31.762      14       14 ...        285.6150 230.47840975  43.60882304                1
           UCAC4 669-059096 15 22 15.7626 +43 36 02.820      14       14 ...        289.4724 230.56567785  43.60078345                1

0.4.8+

from astroquery.simbad import Simbad

Simbad.add_votable_fields('distance_result')
ValueError: 'distance_result' is not one of the accepted options which can be listed with 'list_votable_fields'. Did you mean 'mesdistance'?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions