Coder Social home page Coder Social logo

Comments (2)

keflavich avatar keflavich commented on July 19, 2024

Thanks. I suspect this has to do with the catalog specification; I've seen
something like it before
On Dec 12, 2012 6:31 AM, "Thomas Robitaille" [email protected]
wrote:

The following query returns no results:

In [3]: from astroquery import ukidss

In [4]: Q = ukidss.UKIDSSQuery()

In [5]: Q.get_catalog_gal(10.2,-0.44,radius=0.43)
Loading page...
Downloaded 7.7e-05 Mb
Out[5]: []

but using the web interface returns many records:

http://surveys.roe.ac.uk:8080/wsa/WSASQL?database=UKIDSSDR7PLUS&programmeID=102&from=source&formaction=region&ra=10.2&dec=-0.44&sys=G&name=&radius=0.43&xSize=&ySize=&boxAlignment=RADec&emailAddress=&format=HTML&compress=GZIP&rows=30&select=default&where=

This was originally discovered by @eztean https://github.com/eztean.

@keflavich https://github.com/keflavich - feel free to look into it if
you have time. I'll try looking into it too.


Reply to this email directly or view it on GitHubhttps://github.com//issues/24.

from astroquery.

keflavich avatar keflavich commented on July 19, 2024

The problem is that I changed the default programmID to be 'all', which makes sense for images, but is not allowed for catalogs. I've now added a verify_programme_id function, so instead of returning nothing, the above query will raise a sensible error. The solution, though, is to change the programmeID:

Q.programmeID = 102

or

Q.programmeID = 'GPS'

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.