<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Sorry I'm just getting to this message now... (This strangely ended
up being classified as spam...)<br>
<br>
I'd be curious to see what the arraysize declaration looks like.
It's possible that TOPCAT and KXML aren't really parsing the PARAM
elements, but just storing them to spit them out verbatim again, so
they aren't really "deeply" parsing the value.<br>
<br>
Cheers,<br>
Mike<br>
<br>
On 07/05/2011 03:47 AM, Jean-Baptiste Marquette wrote:
<blockquote cite="mid:C64AFFE7-77FB-4E30-A0D5-84A1F74112D8@iap.fr"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hi Micheal,
<div><br>
</div>
<div>I got the point: a wrong arraysize declaration of a PARAM in
SExtractor while creating the VOTables. I just informed Emmanuel
Bertin, and have to sed these 201,000 catalogues to correct
them.<br>
But it is strange that both TOPCAT and KXML Editor load the
tables without complaining...<br>
<div><br>
<div>Début du message réexpédié :</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="margin: 0px;"><span style="font-family:
'Helvetica'; font-size: medium; color: rgb(0, 0, 0);"><b>De
: </b></span><span style="font-family: 'Helvetica';
font-size: medium;">Jean-Baptiste Marquette <<a
moz-do-not-send="true" href="mailto:marquett@iap.fr">marquett@iap.fr</a>><br>
</span></div>
<div style="margin: 0px;"><span style="font-family:
'Helvetica'; font-size: medium; color: rgb(0, 0, 0);"><b>Date
: </b></span><span style="font-family: 'Helvetica';
font-size: medium;">4 juillet 2011 10:46:01 HAEC<br>
</span></div>
<div style="margin: 0px;"><span style="font-family:
'Helvetica'; font-size: medium; color: rgb(0, 0, 0);"><b>À
: </b></span><span style="font-family: 'Helvetica';
font-size: medium;">Michael Droettboom <<a
moz-do-not-send="true" href="mailto:mdroe@stsci.edu">mdroe@stsci.edu</a>><br>
</span></div>
<div style="margin: 0px;"><span style="font-family:
'Helvetica'; font-size: medium; color: rgb(0, 0, 0);"><b>Objet
: </b></span><span style="font-family: 'Helvetica';
font-size: medium;"><b>Réexp : [AstroPy] Error in vo on
Mac OS 10.6.8, Python 2.7</b><br>
</span></div>
<br>
<div style="word-wrap: break-word;">Hi Michael,
<div><br>
</div>
<div>I investigated a bit further on the issue below. I
installed KXML Editor on my Mac Pro, which reads my
table seamlessly, as TOPCAT did. So I think this is an
actual bug in vo. Should I open a ticket ?</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Jean-Baptiste<br>
<div><br>
<div>Début du message réexpédié :</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="margin: 0px;"><span style="font-family:
'Helvetica'; font-size: medium; color: rgb(0, 0,
0);"><b>De : </b></span><span
style="font-family: 'Helvetica'; font-size:
medium;">Jean-Baptiste Marquette <<a
moz-do-not-send="true"
href="mailto:MARQUETT@IAP.FR">MARQUETT@IAP.FR</a>><br>
</span></div>
<div style="margin: 0px;"><span style="font-family:
'Helvetica'; font-size: medium; color: rgb(0, 0,
0);"><b>Date : </b></span><span
style="font-family: 'Helvetica'; font-size:
medium;">30 juin 2011 19:46:10 HAEC<br>
</span></div>
<div style="margin: 0px;"><span style="font-family:
'Helvetica'; font-size: medium; color: rgb(0, 0,
0);"><b>À : </b></span><span
style="font-family: 'Helvetica'; font-size:
medium;"><a moz-do-not-send="true"
href="mailto:astropy@scipy.org">astropy@scipy.org</a><br>
</span></div>
<div style="margin: 0px;"><span style="font-family:
'Helvetica'; font-size: medium; color: rgb(0, 0,
0);"><b>Objet : </b></span><span
style="font-family: 'Helvetica'; font-size:
medium;"><b>[AstroPy] Error in vo on Mac OS
10.6.8, Python 2.7</b><br>
</span></div>
<br>
<div>Dear vo gurus,<br>
<br>
I use vo through ATpy on VOTables which are well
read by TOPCAT. Thus I didn't find any violation
of VO specifications.<br>
<br>
The traceback is:<br>
<br>
bs300.date processing ...<br>
/Volumes/pepperland/erosdata/sexcatcalib/bs/bs300/bs3001/bs3001_6f2079.cat:3:0:
W20: No version number specified in file. Assuming
1.0<br>
Traceback (most recent call last):<br>
File
"/Users/marquett/workspace/EpochsCat/src/PutEpochs.py",
line 28, in <module><br>
Table = atpy.Table(Cat, type='vo',
pedantic=False, tid=2)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/atpy/basetable.py",
line 167, in __init__<br>
self.read(*args, **kwargs)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/atpy/basetable.py",
line 213, in read<br>
atpy._readers[table_type](self, *args,
**kwargs)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/atpy/votable.py",
line 86, in read<br>
votable = parse(filename, pedantic=pedantic)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/table.py",
line 103, in parse<br>
return tree.VOTableFile(config=config, pos=(1,
1)).parse(iterator, config)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py",
line 2963, in parse<br>
iterator, tag, data, config, pos)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py",
line 2897, in _add_resource<br>
resource.parse(self, iterator, config)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py",
line 2732, in parse<br>
tag_mapping.get(tag,
self._add_unknown_tag)(iterator, tag, data,
config, pos)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py",
line 2710, in _add_resource<br>
resource.parse(self._votable, iterator, config)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py",
line 2732, in parse<br>
tag_mapping.get(tag,
self._add_unknown_tag)(iterator, tag, data,
config, pos)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py",
line 2710, in _add_resource<br>
resource.parse(self._votable, iterator, config)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py",
line 2732, in parse<br>
tag_mapping.get(tag,
self._add_unknown_tag)(iterator, tag, data,
config, pos)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py",
line 2698, in _add_param<br>
param = Param(self._votable, config=config,
pos=pos, **data)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py",
line 1232, in __init__<br>
id=id, config=config, pos=pos)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py",
line 915, in __init__<br>
self._setup(config)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py",
line 1251, in _setup<br>
self.value = self._value<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/tree.py",
line 1239, in _set_value<br>
self._value = self.converter.parse(value,
self._config, self._pos)[0]<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/converters.py",
line 433, in parse<br>
config, pos)<br>
File
"/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/vo/voexceptions.py",
line 109, in vo_raise<br>
raise exc(message)<br>
vo.voexceptions.VOTableSpecError:
/Volumes/pepperland/erosdata/sexcatcalib/bs/bs300/bs3001/bs3001_6f2079.cat:87041:3:
E02: Incorrect number of elements in array,
expected 0, got 1<br>
<br>
As I said this table is well loaded by TOPCAT, and
was created by Emmanuel Bertin's SExtractor. It is
20 Mb large.<br>
87041 (if it is a rank) is far beyond the index
bound.<br>
If necessary, I can provide the table in my ftp,
together with my python script.<br>
I checked that the issue remains the same on other
tables of the same type.<br>
<br>
Thanks for your help,<br>
<br>
Jean-Baptiste Marquette<br>
_______________________________________________<br>
AstroPy mailing list<br>
<a moz-do-not-send="true"
href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a><br>
<a moz-do-not-send="true"
href="http://mail.scipy.org/mailman/listinfo/astropy">http://mail.scipy.org/mailman/listinfo/astropy</a><br>
</div>
</blockquote>
</div>
<br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
<div>
<span class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family: Helvetica;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
font-size: medium;"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0);
font-family: Helvetica; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; font-size: medium;">
<div style="word-wrap: break-word;">====================================================================<br>
Bien cordialement / Very truly yours / Mit freundlichen
Gruessen,<br>
Jean-Baptiste Marquette<br>
Institut d'Astrophysique de Paris<br>
CNRS - UMR 7095<br>
Université Pierre & Marie Curie<br>
98bis Bd Arago<br>
75014 Paris - France<br>
Tel +33 (0)1 4432 8196<br>
Fax +33 (0)1 4432 8001
<div>Web : <a moz-do-not-send="true"
href="http://www2.iap.fr/users/marquett">http://www2.iap.fr/users/marquett</a><br>
====================================================================<br>
</div>
</div>
</span></span>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>