[SciPy-User] table2.fits anybody?

Michael Aye kmichael.aye@googlemail....
Fri Oct 30 05:42:26 CDT 2009



On Oct 29, 7:41 pm, Perry Greenfield <pe...@stsci.edu> wrote:
> On Oct 29, 2009, at 2:20 PM, Michael Aye wrote:
>
>
>
>
>
> > Have received it! Many thanks!
>
> > Actually, while you are at it:
> > The text of the tutorial is a bit funny at the point when dealing with
> > 'table2.fits', it sounds actually a bit like a hidden joke, which is
> > why I almost was not expecting to find a table2.fits.
> > Here is the text of page 27 of pydatatut.pdf:
>
> >>>> print tab2
> > [('M51', 13.5, 2) ('NGC4151', 5.8, 5) ('Crab Nebula', 11.12, 3)]
> >>>> col3 = tab2.field('nobs')
>
> > But the key 'nobs' does not exist in table2.fits!
>
> > Honi soit qui mal y pense... ;)
>
> > Best regards,
> > Michael
>
> Hmmm, that's odd. I see it. What do you see if you type:
>
>  >>> tab2._coldefs
>
Ah, sorry, tried it with tab instead of tab2. Ok, then there is only
one thing left to correct in the pdf:
You replaced the 3 in col3 with 99 but pasted the same print-out line
of tab2 twice:
[('M51', 13.5, 2) ('NGC4151', 5.8, 5) ('Crab Nebula', 11.12, 3)]
So that was a bit confusing, because we should see the 99 at the end
now.
But going through the motions myself it works fine and I see the
change.
Thanks very much, this tutorial is really fun!

Best regards,
Michael


More information about the SciPy-User mailing list