Comments (3)
I can't reproduce the first error that you reported above. Using the module hosted in this repo, I get the following:
In [21]: import nedpy
In [32]: nedpy.query_ned_basic_posn('M32').names[:5]
Out[32]:
('pos_ref',
'pos_ra_equ_B1950_d',
'pos_dec_equ_B1950_d',
'pos_ra_equ_B1950_s',
'pos_dec_equ_B1950_s')
As to the second, I've added some basic error-catching routines to each of the routines in this module; this looks to see if the data returned from the NED server is a formatted XML file and if any results were found for the query. There are still queries which return ill-formatted Tables that result in errors (which cdeil mentioned in another issue). Either we take these examples to NED and ask them about the output format or we have to find a way to read in the string and fix it within the module. I'm open to either, but would like more data on which queries are still making this break.
from astroquery.
Can you try with astroquery
?
I still only get default, not the actual, column names:
In [1]: from astroquery import ned
WARNING: ConfigurationDefaultMissingWarning: Requested default configuration file /Users/deil/Library/Python/2.7/lib/python/site-packages/astroquery-0.0.dev270-py2.7.egg/astroquery/astroquery.cfg is not a file. Cannot install default profile. If you are importing from source, this is expected. [astroquery]
In [2]: ned.query_ned_basic_posn('M32').colnames[:5]
WARNING: W42: /var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmphqq6fC:2:0: W42: No XML namespace specified [astropy.io.votable.exceptions]
WARNING: W22: /var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmphqq6fC:3:0: W22: The DEFINITIONS element is deprecated in VOTable 1.1. Ignoring [astropy.io.votable.exceptions]
WARNING: W04: /var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmphqq6fC:18:0: W04: content-type 'char' must be a valid MIME content type [astropy.io.votable.exceptions]
WARNING: W50: /var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmphqq6fC:26:0: W50: Invalid unit string 'degrees' [astropy.io.votable.exceptions]
WARNING: W50: /var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmphqq6fC:29:0: W50: Invalid unit string 'degrees' [astropy.io.votable.exceptions]
WARNING: W50: /var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmphqq6fC:38:0: W50: Invalid unit string 'arcseconds' [astropy.io.votable.exceptions]
WARNING: W50: /var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmphqq6fC:41:0: W50: Invalid unit string 'arcseconds' [astropy.io.votable.exceptions]
WARNING: W50: /var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmphqq6fC:44:0: W50: Invalid unit string 'arcseconds' [astropy.io.votable.exceptions]
WARNING: W50: /var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmphqq6fC:47:0: W50: Invalid unit string 'degrees' [astropy.io.votable.exceptions]
WARNING: W50: /var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmphqq6fC:50:0: W50: Invalid unit string 'degrees' [astropy.io.votable.exceptions]
WARNING: W50: /var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmphqq6fC:59:0: W50: Invalid unit string 'arcseconds' [astropy.io.votable.exceptions]
WARNING: W50: /var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmphqq6fC:62:0: W50: Invalid unit string 'arcseconds' [astropy.io.votable.exceptions]
WARNING: W50: /var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmphqq6fC:65:0: W50: Invalid unit string 'arcseconds' (suppressing further warnings of this type...) [astropy.io.votable.exceptions]
Out[2]: ['posn_col1', 'posn_col2', 'posn_col3', 'posn_col4', 'posn_col5']
from astroquery.
refactor has corrected this, I hope
from astroquery.
Related Issues (20)
- Problem with astroquery in docker container HOT 3
- BUG: JPLSpec failures with dev versions of dependencies HOT 12
- Enable doctesting for all narrative documentations
- Alma().retrieve_data_from_uid producing " Invalid URL '' " error HOT 2
- BUG: 404 statuses from OAC HOT 3
- ENH: have a way to list collections for query_sia HOT 1
- ENH: add support to UPLOAD parameter for IRSA's TAP
- MPC.get_observations() missing some MPC observations
- mast.Observations.query_criteria radius is a factor of ~10 bigger than supplied value HOT 2
- Quantity error in SkyView.get_images() with width and height HOT 3
- Bug in units for NASA Exoplanet Archive results HOT 4
- MAST: Move drizzlepac astroquery_utils upstream to astroquery.mast HOT 4
- BUG: lots of astropy.io.ascii.core.InconsistentTableError in remote tests
- NIST: Fetch statistical weight (g) from NIST ASD HOT 1
- New Splatalogue breaks astroquery interface HOT 4
- Update `PyVO` dependency HOT 3
- DALQueryError when trying to query ObsCore table HOT 3
- AttributeError: 'VizierClass' object has no attribute 'get_catalog_metadata' HOT 3
- Cparser Error When Utilizing astroquery.sdss query_region HOT 10
- Gaia: get votable column names as lowercase names HOT 5
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.