I am getting this error trying to read data from a FITS file. I can see that the file contains the correct data because DS9 viewer shows the image I would expect. The error I'm getting is below. Can anyone help me? Thanks so much. Error
I tried several different methods of accessing hdu[1].data, but all of them end up with this error. hdu[1].compressed_data shows the array I would expect without an error. If I try and run the plot I'm creating with compressed_data, it does not work correctly.