Giter VIP home page Giter VIP logo

Comments (8)

andriineronov avatar andriineronov commented on September 27, 2024

It is convenient to have python interface to the LegacySurvey data, in a way similar to already existing SDSS astroquery interface. For the moment the data are publicly accessible, but through wget. Accessing them through astroquery provides better traceability of the data and supplements them with metadata useful for reproducibility / traceability of results obtained with the data.

from astroquery.

volodymyrss avatar volodymyrss commented on September 27, 2024

https://github.com/oda-hub/astroquery

from astroquery.

volodymyrss avatar volodymyrss commented on September 27, 2024

we could try to see if we can use TAP https://github.com/oda-hub/oda-sdss/issues/11

It's not guaranteed it will have the necessary data exposed.

from astroquery.

volodymyrss avatar volodymyrss commented on September 27, 2024

the request can be made as so:

# see details in https://datalab.noirlab.edu/query.php?name=ls_dr9.tractor_n

from astroquery.utils.tap.core import Tap

datalab = Tap(url="https://datalab.noirlab.edu/tap")

#tables = gaia.load_tables(only_names=True)
job = datalab.launch_job('''
                         select top 10 ra,dec from ls_dr8.tractor_n where 
                         ra > 100
                         
                            '''
)

I did not follow what exactly you request, but this seems somewhere around what is needed.

Note that TAP does not exclude an dedicated astroquery module.
In fact, a number of common astroquery modules use TAP.
I guess it is because TAP and ADQL are too detailed and powerful for many purposes.

So it is often useful to reduce complexity to "query_object" and "query_target".
Not coincidentially, it is also easier to build our ontology from these requests than from generic TAP.

So my suggestion now would be:

  • try to use TAP as shown above instead of simple GET. It's not guaranteed to be any easier, but it could be good to get familiar with TAP, and TAP interface is likely to persist/easily-relocate while files are less predictable.
    • if TAP works instead of GET, use legacysurvey module over TAP (like many modules do).
    • if TAP does NOT work instead of GET, continue using GET or TAP + GET
  • come up with suggestion taking into account TAP suggestion from LS and contact them again.

from astroquery.

burnout87 avatar burnout87 commented on September 27, 2024

I've just given a first try to TAP, and it looks really interesting and powerful indeed.

It could actually help us a lot

from astroquery.

burnout87 avatar burnout87 commented on September 27, 2024

query_region has now been fully implemented using TAP.

from astroquery.

volodymyrss avatar volodymyrss commented on September 27, 2024

this is needed before the PR to astroquery @andriineronov

from astroquery.

volodymyrss avatar volodymyrss commented on September 27, 2024

possibly should be renamed! Need to consult JP Kneib

from astroquery.

Related Issues (11)

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.