On Thu, 16 Nov 2006 15:35:00 -0500, Tommy Grav wrote (in article <[EMAIL PROTECTED]>):
> I am trying to load in a fits-image and get this error > > wiyn05dec/n1 -> display -i obj062.fits > Traceback (most recent call last): > File "/Users/tgrav/Work/Astronomy/MyCode/Python/Redspit/ > display.py", line 48, in ? > main() > File "/Users/tgrav/Work/Astronomy/MyCode/Python/Redspit/ > display.py", line 30, in main > im = pyfits.getdata(options.infname) > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ > python2.4/site-packages/pyfits/NP_pyfits.py", line 4645, in getdata > _data = hdu.data > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ > python2.4/site-packages/pyfits/NP_pyfits.py", line 2058, in __getattr__ > self.data = np.array(raw_data, type=np.Float32) > AttributeError: 'module' object has no attribute 'Float32' > > I am using numpy 1.0rc3 and ActivePython 2.4.3 Build 11. > Anyone know what is going on? > > Cheers > Tommy Have you opened the file? Which version of pyFITS? Consider: fimg=pyfits.open(datafile) self.header=fimg[0].header self.image=fimg[0].data Tom -- Dealing with Creationism in Astronomy http://homepage.mac.com/cygnusx1 [EMAIL PROTECTED] "They're trained to believe, not to know. Belief can be manipulated. Only knowledge is dangerous." --Frank Herbert, "Dune Messiah" -- http://mail.python.org/mailman/listinfo/python-list