astropy / astroquery

Functions and classes to access online data resources. Maintainers: @keflavich and @bsipocz and @ceb8
http://astroquery.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
705 stars 397 forks source link

Are astroquery.eso positional queries supported? #2080

Open mattia-vaccari opened 3 years ago

mattia-vaccari commented 3 years ago

The astroquery.eso docs (e.g. for query_instrument) seems to suggest positional queries via the coord1 / coord2 / box arguments should be supported


Target Information

target:
resolver: simbad (SIMBAD name), ned (NED name), none (OBJECT as specified by the observer)
coord_sys: eq (Equatorial (FK5)), gal (Galactic)
coord1:
coord2:
box:
format: sexagesimal (Sexagesimal), decimal (Decimal)

but the lack of detailed documentation seems to suggest this might still be in the works?

While the arguments are accepted, it doesn't seem to work (i.e. no selection is enforced according to the input arguments) in version 4.2

Is this still in the process of being implemented, and if so, would it be worth updating the docs?

If it is working, could someone perhps post an example call here (and add it to the docs?)

Thanks!

keflavich commented 3 years ago

Positional queries are indeed accepted. There is no work in progress to make them conform to the general astroquery user interface, though that would be super useful.

As it currently stands, you need to figure out how to construct the query yourself. The help example given in the docs makes reasonably clear how this is to be done, though more complete examples are always helpful (and welcome).

This is how you do a simple coordinate-based instrument query - it replicates the web form interface exactly

Eso.query_instrument('sinfoni', coord1=0, coord2=0, coord_sys='gal', box='00 02 00')
mattia-vaccari commented 3 years ago

Thanks, brilliant. I think adding a note that coord1/coord2/box should confirm to the query format at a given URL and adding the example query you mentioned in your reply to the docs would be useful.