Author Topic: Some FIT files not opening after latest version update  (Read 495 times)

Offline RATTLER

  • Newcomer
  • Posts: 5
    • View Profile
Some FIT files not opening after latest version update
« on: 2019 January 27 06:54:08 »
Hi guys. I installed the latest version yesterday. I am having issues opening some but not all FITS files. It seems that files I have previously used will open but new ones wont..odd. I have sent the file to someone who hadn't updated yet. It opened in the previous version but not in the latest. I have also moved the file to another location to ensure that it wasnt saved in corrupt storage. Anyone else have this issue or any ideas? Cheers

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 6644
    • View Profile
    • http://pixinsight.com/
Re: Some FIT files not opening after latest version update
« Reply #1 on: 2019 January 27 10:28:54 »
Hi. This looks like a bug in CFITSIO (the software library we use to support FITS in PixInsight). Can you please upload one of these FITS images that is causing this problem, for example to Dropbox or something similar? Thank you!
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline RATTLER

  • Newcomer
  • Posts: 5
    • View Profile
Re: Some FIT files not opening after latest version update
« Reply #2 on: 2019 January 27 15:15:46 »
Thanks Juan. Here's the link to the fits file.

https://app.box.com/s/z24v0cqao4t2jfa66py9drf7t99azmdm

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 6644
    • View Profile
    • http://pixinsight.com/
Re: Some FIT files not opening after latest version update
« Reply #3 on: 2019 January 28 02:01:27 »
Thank you for uploading this file. The checksums declared in the FITS header (CHECKSUM and DATASUM keywords) are not valid, that is, they don't correspond to the actual data stored in the file. Assuming that the original checksums were computed correctly in the first place, this means that the file has been tampered with since it was created. See the FITS verifier report:

Code: [Select]
File name:  1.fits
                                           Run Number 23945
 
              fitsverify 4.18 (CFITSIO V3.440)             
              --------------------------------             
 

1 Header-Data Units in this file.
 
=================== HDU 1: Primary Array ===================
 
*** Warning: Data checksum is not consistent with  the DATASUM keyword
*** Warning: HDU checksum is not in agreement with CHECKSUM.

The problem is that this FITS file has been compressed (using the dithered pixel quantization method, which means that the data have been 'scientifically' destroyed, but that's a different story :) ). The changes made to the compressed data seem to render them unmanageable for the latest version 3.450 of CFITSIO, which is used in PixInsight 1.8.6. I'll see if reverting it back to 3.440 fixes this problem. Sorry for the inconvenience.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline RATTLER

  • Newcomer
  • Posts: 5
    • View Profile
Re: Some FIT files not opening after latest version update
« Reply #4 on: 2019 January 31 12:56:18 »
Hi Juan. Any update? Cheers.

Offline RATTLER

  • Newcomer
  • Posts: 5
    • View Profile
Re: Some FIT files not opening after latest version update
« Reply #5 on: 2019 February 03 13:08:23 »
These files stack fine in other software.

Offline RATTLER

  • Newcomer
  • Posts: 5
    • View Profile
Re: Some FIT files not opening after latest version update
« Reply #6 on: 2019 February 09 04:51:01 »
Hi Juan. Is there any update on this yet? Not heard anything for a while.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 6644
    • View Profile
    • http://pixinsight.com/
Re: Some FIT files not opening after latest version update
« Reply #7 on: 2019 April 09 10:09:22 »
This bug is now fixed in the next version of the FITS support module, which will be released very soon, along with a new version of PixInsight. To be fair, the bug was in my code, not in CFITSIO. It has been difficult to find but this problem is now solved.

Sorry for the inconvenience, and thank you for your patience.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/