Bug 461103 - Compressed FITS files do not have file extension fits.fz
Summary: Compressed FITS files do not have file extension fits.fz
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-28 09:22 UTC by han.k
Modified: 2022-10-31 06:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description han.k 2022-10-28 09:22:51 UTC
KSTAR can produces RICE compressed files with the extension .fits.  This doesn't match with utilities Fpack and Funpack. These utilities change the extension to .fits.fz and when unpacking return it to .fits.  If you unpack a KSTAR compressed fits files with  Funpack you and up with no extension unless you use an extra option.

Suggest to follow this tradition and give compressed files the extension .fits.fz


See Fpack and Funpack User's Guide, FITS Image Compression Utilities
https://arxiv.org/ftp/arxiv/papers/1112/1112.2671.pdf
>>>    The compressed output file name is usually constructed by appending “.fz” to the input file name
Comment 1 Jasem Mutlaq 2022-10-30 06:06:48 UTC
IIRC, only sample focus images are compressed. What else is compressed in KStars?
Comment 2 han.k 2022-10-30 07:43:06 UTC
The files I received where from the focus routine. The problem is that for focus analysing routine ASTAP cannot unpack them using the Funpack utility unless using special parameters. But there is no easy way to detect these files are compressed files. That's why .fits.fz extension was introduced by  CFITSIO library.

If the compression is only used for focusing why are they then compressed and normal lights not? 

Han
Comment 3 Jasem Mutlaq 2022-10-30 08:06:27 UTC
You mean the focus logging images? in ~/.local/share/kstars/autofocus ?
Comment 4 han.k 2022-10-30 08:13:04 UTC
(In reply to Jasem Mutlaq from comment #3)
> You mean the focus logging images? in ~/.local/share/kstars/autofocus ?

Yes autofocus images. You can download one image from this forum in the first post:
https://sourceforge.net/p/astap-program/discussion/general/thread/4363768443/
Comment 5 Jasem Mutlaq 2022-10-30 08:16:03 UTC
Git commit 80ea2a68d2539ffee252cafffa349d6f92dc5673 by Jasem Mutlaq.
Committed on 30/10/2022 at 08:15.
Pushed by mutlaqja into branch 'master'.

Add .fz to compressed focus images.

M  +1    -1    kstars/ekos/focus/focus.cpp

https://invent.kde.org/education/kstars/commit/80ea2a68d2539ffee252cafffa349d6f92dc5673
Comment 6 Jasem Mutlaq 2022-10-31 06:52:48 UTC
Git commit 8f0fa5b767f168f3e641933fe6d7bb6a1007b9d3 by Jasem Mutlaq.
Committed on 31/10/2022 at 06:51.
Pushed by mutlaqja into branch 'stable-3.6.1'.

Add .fz to compressed focus images.

M  +1    -1    kstars/ekos/focus/focus.cpp

https://invent.kde.org/education/kstars/commit/8f0fa5b767f168f3e641933fe6d7bb6a1007b9d3