Comments (2)
Thanks @keflavich for the speedy response.
I am using astroquery 0.4.3 and Python 3.8.16 | packaged by conda-forge | (default, Feb 1 2023, 16:05:36)
[Clang 14.0.6 ]
For info table = eso.query_instrument('vircam') works as expected.
I do not have a preference on case. I suggest making the query code case insensitive i.e. query_main and query_instrument.
OR make the instrument list upper case to follow ESO.
ESO list all their instruments here: http://archive.eso.org/cms/eso-data/instrument-specific-query-forms.html
All are all uppercase except for "X-Shooter" which is mixed case and has a hyphen. I note that eso.list_instruments() returns "xshooter" i.e the hypen is removed. eso.list_instruments() returns xshooter.
table = eso.query_main(column_filters={'instrument': 'XSHOOTER'}) works OK
table = eso.query_main(column_filters={'instrument': 'xshooter'}) fails
table = eso.query_instrument('XSHOOTER') works OK
table = eso.query_instrument('xshooter') works OK
So it looks like query_instrument is case insensitive. e.g. table = eso.query_instrument('XsHoOtEr') works
So, I am not sure what to suggest or to call this a "documented feature"
from astroquery.
Thanks for the report @richardgmcmahon , I confirm this is at least incorrect documentation, and possibly a bug.
To investigate: Should we always pass instrument names as uppercase? Or do we just need to make list_instruments
return the correct case?
from astroquery.
Related Issues (20)
- Add support for upload tables for queries in ALMA
- BUG: CI -- no space left on device HOT 2
- ESA Herschel download_data connection error HOT 2
- MAINT: retire/rename exceptions.TimeoutError in favour of requests
- TST: esasky tests take too long time and donwload too much data HOT 8
- BUG: alma test downloads 850+Mb of data HOT 8
- How to download Level 1 ancillary (*cbcd.fits and *cbunc.fits) from IRSA?
- Vizier.query_region() returns incorrect index for some catalog HOT 3
- CI: rerun failing tests at the end
- Bug in rows limitation in module vizier HOT 2
- Unexpected behavior when passing `obj_names` to `SDSS.query_region()`
- Handling No astronomical object found response HOT 5
- IRSA: adding SSA method HOT 1
- Astroquery.gaia API Error: RA cannot be converted to hour or hourangle. HOT 2
- MAST cloud dataset doesn't show level 3 data products
- SimbadClass got an unexpected keyword argument HOT 5
- API cleanup to make it more self consistent
- API discussion for `list_collections` HOT 4
- Astrometry.net: can query for job id once, rather than each time HOT 2
- BUG: vo_conesearch server SSL cert needs fixing HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astroquery.