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

Thomas Boch thomas.boch at astro.unistra.fr
Fri May 4 18:30:17 EDT 2012


Dear Jerome,

the VOTable outputted by VizieR looks valid.
Moreover, if you remove one row from the XML file, the Python code 
returns 255 lines, as expected. Thus, I'd suspect a side-effect bug in 
the vo.table package.
Cheers,

Thomas

Le 05/05/12 00:04, Jerome Caron a écrit :
> Sorry I forgot something in the code.. But the problem is still there..
> 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
>
> ----- 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 <mailto:AstroPy at scipy.org>
> http://mail.scipy.org/mailman/listinfo/astropy
>
>
>
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20120505/7a7fbd77/attachment.html>


More information about the AstroPy mailing list