In [56]: ned.query_ned_by_objname('crab')
ERROR: E21: /var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmpVu4BSs:690:27: E21: Data has fewer columns (88) than are defined in the header (91) [astropy.io.votable.exceptions]
---------------------------------------------------------------------------
E21 Traceback (most recent call last)
<ipython-input-56-89e83481cd10> in <module>()
----> 1 ned.query_ned_by_objname('crab')
/Users/deil/Library/Python/2.7/lib/python/site-packages/astroquery/ned/nedpy.pyc in query_ned_by_objname(objname, root_url, tid)
76 print >>tf,R
77 tf.file.flush()
---> 78 t = atpy.Table(tf.name,type='vo',tid=tid,verbose=False)
79
80 # Return atpy table
/Users/deil/Library/Python/2.7/lib/python/site-packages/atpy/basetable.pyc in __init__(self, *args, **kwargs)
166
167 if len(args) + len(kwargs) > 0:
--> 168 self.read(*args, **kwargs)
169
170 return
/Users/deil/Library/Python/2.7/lib/python/site-packages/atpy/basetable.pyc in read(self, *args, **kwargs)
212
213 if table_type in registry._readers:
--> 214 registry._readers[table_type](self, *args, **kwargs)
215 else:
216 raise Exception("Unknown table type: " + table_type)
<string> in read(self, filename, pedantic, tid, verbose)
/Users/deil/Library/Python/2.7/lib/python/site-packages/atpy/decorators.pyc in _auto_download_to_file(read, table, filename, *args, **kwargs)
36
37 # Otherwise just proceed as usual
---> 38 return read(table, filename, *args, **kwargs)
39
40
<string> in read(self, filename, pedantic, tid, verbose)
/Users/deil/Library/Python/2.7/lib/python/site-packages/atpy/decorators.pyc in _auto_decompress_to_fileobj(read, table, filename, *args, **kwargs)
55 return read(table, bz2.BZ2File(filename), *args, **kwargs)
56 else:
---> 57 return read(table, filename, *args, **kwargs)
58
59 return read(table, filename, *args, **kwargs)
<string> in read(self, filename, pedantic, tid, verbose)
/Users/deil/Library/Python/2.7/lib/python/site-packages/atpy/decorators.pyc in _auto_fileobj_to_file(read, table, filename, *args, **kwargs)
76 filename = output.name
77
---> 78 return read(table, filename, *args, **kwargs)
/Users/deil/Library/Python/2.7/lib/python/site-packages/atpy/votable.pyc in read(self, filename, pedantic, tid, verbose)
76 raise TableException(tables, 'tid')
77
---> 78 votable = parse(filename, pedantic=pedantic)
79 for id, table in enumerate(votable.iter_tables()):
80 if id==tid:
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy/io/votable/table.pyc in parse(source, columns, invalid, pedantic, chunk_size, table_number, table_id, filename, _debug_python_based_parser)
113 _debug_python_based_parser=_debug_python_based_parser) as iterator:
114 return tree.VOTableFile(
--> 115 config=config, pos=(1, 1)).parse(iterator, config)
116
117
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy/io/votable/tree.pyc in parse(self, iterator, config)
3083 if start:
3084 tag_mapping.get(tag, self._add_unknown_tag)(
-> 3085 iterator, tag, data, config, pos)
3086 elif tag == 'DESCRIPTION':
3087 if self.description is not None:
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy/io/votable/tree.pyc in _add_resource(self, iterator, tag, data, config, pos)
3014 resource = Resource(config=config, pos=pos, **data)
3015 self.resources.append(resource)
-> 3016 resource.parse(self, iterator, config)
3017
3018 def _add_coosys(self, iterator, tag, data, config, pos):
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy/io/votable/tree.pyc in parse(self, votable, iterator, config)
2870 if start:
2871 tag_mapping.get(tag, self._add_unknown_tag)(
-> 2872 iterator, tag, data, config, pos)
2873 elif tag == 'DESCRIPTION':
2874 if self.description is not None:
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy/io/votable/tree.pyc in _add_table(self, iterator, tag, data, config, pos)
2827 table = Table(self._votable, config=config, pos=pos, **data)
2828 self.tables.append(table)
-> 2829 table.parse(iterator, config)
2830
2831 def _add_info(self, iterator, tag, data, config, pos):
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy/io/votable/tree.pyc in parse(self, iterator, config)
2211 'TABLEDATA', data.iterkeys(), config, pos)
2212 self.array = self._parse_tabledata(
-> 2213 iterator, colnumbers, fields, config)
2214 break
2215 elif tag == 'BINARY':
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy/io/votable/tree.pyc in _parse_tabledata(self, iterator, colnumbers, fields, config)
2332
2333 if i < len(fields):
-> 2334 vo_raise(E21, (i, len(fields)), config, pos)
2335
2336 array_chunk.append(tuple(row))
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy/io/votable/exceptions.pyc in vo_raise(exception_class, args, config, pos)
88 Raise an exception, with proper position information if available.
89 """
---> 90 raise exception_class(args, config, pos)
91
92
E21: /var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmpVu4BSs:690:27: E21: Data has fewer columns (88) than are defined in the header (91)