[AstroPy] Tr : problem with vo.table library and VOtable file from Vizier

Jerome Caron jerome_caron_astro at ymail.com
Fri May 4 18:04:06 EDT 2012


Sorry I forgot something in the code.. But the problem is still there..
 

----- Mail transféré -----
De : Jerome Caron <jerome_caron_astro at ymail.com>
À : "astropy at scipy.org" <astropy at scipy.org> 
Envoyé le : Vendredi 4 mai 2012 23h58
Objet : [AstroPy] problem with vo.table library and VOtable file from Vizier


Dear list
I cannot correctly open a VOtable created by Vizier with the vo.table library.
The concerned xml file can be found here:
http://www.aspylib.com/bazar/vizier.xml

What happens is that, by chance, there are exactly 256 stars in the file (it's a field in Auriga, about 2deg*2deg with stars up to magnitude 11).
The following instructions in python return an array with 512 rows. The first 256 rows are occupied by the stars, and the next 256 rows contain only zeros. But the Python code should return a 256 rows array with only the stars ! I am not sure if something is wrong in the file or if that's a bug in the python module ?
Any help would be greatly appreciated... :-)
Many thanks
Jerome Caron

from vo.table import parse_single_table
cat = parse_single_table("vizier.xml")
data = cat.array
print data['RAJ2000']    #print alpha --> 512 lines
print data['DEJ2000']    #print delta --> 512 lines
 
 
_______________________________________________
AstroPy mailing list
AstroPy at scipy.org
http://mail.scipy.org/mailman/listinfo/astropy



from vo.table import parse_single_table
cat = parse_single_table("vizier.xml", pedantic=False)
data = cat.array
print data['RAJ2000']    #print alpha --> 512 lines
print data['DEJ2000']    #print delta --> 512 lines
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20120504/3dcbc87c/attachment.html>


More information about the AstroPy mailing list