Compressed FITS files

I am working with Narrowband data from Telescope Live.  It requires me to download raw FITS and do my own calibration.  That is fine.  The raw FITS is compressed and PixInsight is unable to read it.  The Telescope Live forum suggests using Siril.  Bottom line, I did not see a way to batch convert the compressed FITS without renaming the files.  I can preserve the names only if I open and save each file individually.  This is not reasonable when working with over 100 files.

So I am trying to find an effective solution without reinventing one.  Any ideas?  

Comments

  • CCDStack can do it I think.
    But...I am surprised it is compressed. 
    -the Blockhead
  • Adam, 

    Thank you for your suggestion.  I have CCDStack2 v2.95 installed.  I had no problem loading Telescope Live raw FITS that I decompressed using Siril.  I tried loading compressed FITS and got the following error:

    error reading FITS file
    0-dimensional FITS files are not supported


    At this time I downloaded "FitsPy.py"  it has a batch decompress feature.  I successfully loaded and ran it using Python (PyCharm).  The problem is that I cannot specify a path to the files that I want to decompress.  So tomorrow I will add a path capability, debug it and verify it against the results I got from Siril.  I will use PixInsight to verify the FITS headers and images.

    Thank you for your suggestion.  It was a good suggestion.

    Clear Skies
  • This is a follow-up comment.  

    Problem resolved.  I downloaded a FitsPy.py utility through the Telescope Live forum from Jarmo Ruuth, https://ruuth.xyz/FitsPyInfo.html.

    Using PyCharm 2023.1.5 (Professional Edition) I created a new project.  I loaded FitsPy.py into the project.   I installed the numby and astropy packages. I configured PyCharm under "Edit Configurations" to use 

        Python 3.9
        Parameters: decompress *.fits
        The Working Directory for my compressed FITS files.  

    Executed the program from PyCharm and loaded the decompressed images into PixInsight.  Using PixInsight I verified that files decompressed with FitsPy.py were consistent with the same files decompressed using Siril.  They were.

    It worked like a charm.
Sign In or Register to comment.