[AstroPy] Capturing pyfits warnings

jtaylor2@stsc... jtaylor2@stsc...
Tue Sep 14 16:29:58 CDT 2010


Tom,

   Based on the warning message you are getting, your file is indeed corrupt.  The file size 2102784 is not a multiple of 2880 so their must be a problem with the file.  Your problem may be the same as Anne has indicated or it may not.  At any rate, the file you have is not fits complient.  Although PyFITS may be able to handle the extensions in the file that are.

    Jim T.


More information about the AstroPy mailing list