[AstroPy] Trying to read Tycho-2 catalog

Aldcroft, Thomas aldcroft at head.cfa.harvard.edu
Thu Sep 3 13:05:53 EDT 2015


On Thu, Sep 3, 2015 at 12:39 PM, Erik Bray <embray at stsci.edu> wrote:

> On 09/03/2015 12:33 PM, Aldcroft, Thomas wrote:
> >  >>> t = ascii.read('tyc2.dat.00', readme='ReadMe', format='cds',
> guess=False)
> > ...
> > InconsistentTableError: Can't find table tyc2.dat.00 in ReadMe
> >
> >
> >     I then tried
> >
> >     reader = ascii.get_reader(ascii.Cds, readme='ReadMe')
> >     cat = reader.read('tyc2.dat.00')
> >
> >     which leads to an InconsistentTableError: Can't find table
> tyc2.dat.00
> >     in ReadMe. Is there a way to specify the actual name of the catalog
> so
> >     that I don't have to rename the file?
> >
> >
> > The CDS format requires that the data files be named exactly as
> specified in the
> > ReadMe.  You could always change the ReadMe.
>
> It's strange that they would distribute the catalog data in a manner that
> isn't
> actually compatible with the CDS format.  I can understand if tyc2.dat is
> large
> that they would want to break it into multiple files (but then how do you
> know
> which file you want?).
>
> Is this format some known extension to CDS?  How does other software read
> this
> catalog?
>

If anyone has some time and patience, there is a program tofits
<http://vizier.u-strasbg.fr/doc/tofits.htx> on the page
http://vizier.u-strasbg.fr/doc/catstd.htx which might shed light on whether
the data files can be split in accordance with the standard.

- Tom


>
> Erik
> _______________________________________________
> 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/20150903/b0795fc3/attachment.html>


More information about the AstroPy mailing list