Coder Social home page Coder Social logo

Comments (3)

ManonMarchand avatar ManonMarchand commented on July 23, 2024

These correspond to the number of tables in the catalog. Here II/335 has 5 tables whereas II/312 has 2. It looks like you only get matches from the first table of the catalog each time.

[Edit]

I looked into these two catalogs:

  • II/355: the first table has way more sources, so it makes sense that it would match more.
  • II/312: the two tables have the same sources, so they should both match. There might be something strange here, I'm investigating. Also don't have the same sources, and you have matches only in the first table here too

from astroquery.

ManonMarchand avatar ManonMarchand commented on July 23, 2024

So, the results of the investigation (I got lots of explanations from @glandais). Actually, if the results matched in all tables, we'd expect [1,1,1,1,1,2,2,2,2,2...] for a catalog with 5 tables and [1,1,2,2,3,3...] for a catalog with 2 tables. So this is indeed a bug, likely a counter that does not increment in the right place) that @glandais will try to fix upstream.

Possible workarounds while waiting for the fix upstream

  • you can add the _1 column that contains the position you sent if needed, and this one has no bug
  • If you do the query_region search on single tables (II/335/galex_ais) rather than on catalogs (II/335) the _q counter works without issues
from astroquery.vizier import Vizier
t = Vizier(catalog="II/335", columns=['*', '_RAJ2000', '_DEJ2000']).query_constraints()[0][:10]
# query them in the catalog 'II/335'
result = Vizier(columns=["_1"]).query_region(t, width="5s", catalog=["II/335/galex_ais"])[0]
<Table length=10>
  _q            _1            RAJ2000    DEJ2000            Name            r.fov     b    FUVmag ... e_NUVmag  Fafl  Nafl  Fexf  Nexf     Fr        Nr   
                                deg        deg                               deg            mag   ...   mag                               deg       deg   
int32         str24           float64    float64           str22           float64  uint8 float64 ... float32  int16 int16 int16 int16  float64   float64 
----- ---------------------- ---------- ---------- ---------------------- --------- ----- ------- ... -------- ----- ----- ----- ----- --------- ---------
    1 45.39319700+0.83199900  45.393197   0.831999 GALEX J030134.3+004955  0.462940     1      -- ...   0.1268   256     0     0     0        --  0.002794
    2 45.37659800+0.83901900  45.376598   0.839019 GALEX J030130.3+005020  0.465953     1      -- ...   0.4780   256     1     0     0        --  0.002680
    3 45.38394100+0.84482200  45.383941   0.844822 GALEX J030132.1+005041  0.529154     1      -- ...   0.4722     0     0     0     0        --  0.001294
    4 45.40180000+0.84974100  45.401800   0.849741 GALEX J030136.4+005059  0.482279     3 22.1674 ...   0.3064     0     0     0     0  0.002074  0.004597
    5 45.31170800+0.79905800  45.311708   0.799058 GALEX J030114.8+004756  0.416818     3 20.2951 ...   0.0783     0     0     0     0  0.004551  0.002193
    6 45.30472100+0.80272300  45.304721   0.802723 GALEX J030113.1+004809  0.419970     1      -- ...   0.4482     0     0     0     0        --  0.002482
    7 45.32065300+0.81063500  45.320653   0.810635 GALEX J030116.9+004838  0.429153     1      -- ...   0.4141     0     1     0     0        --  0.002241
    8 45.32989800+0.81712200  45.329898   0.817122 GALEX J030119.1+004901  0.436609     3 21.5729 ...   0.4035     0     1     0     0  0.003513  0.004100
    9 45.33925000+0.81810400  45.339250   0.818104 GALEX J030121.4+004905  0.438789     1      -- ...   0.3703     0     0     0     0        --  0.004177
   10 45.32492500+0.83517700  45.324925   0.835177 GALEX J030117.9+005006  0.454001     1      -- ...   0.3431     0     1     0     0        --  0.002732

from astroquery.

Chisen-Lupus avatar Chisen-Lupus commented on July 23, 2024

Many thanks for explaining this!

from astroquery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.