[AstroPy] Capturing pyfits warnings

jtaylor2 at stsci.edu jtaylor2 at stsci.edu
Tue Sep 14 17:29:58 EDT 2010


   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