gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-devel] [task #14191] Enable FITS input and output using Lzip


From: Antonio Diaz Diaz
Subject: [gnuastro-devel] [task #14191] Enable FITS input and output using Lzip
Date: Mon, 6 Feb 2017 16:18:32 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14

Follow-up Comment #5, task #14191 (project gnuastro):

There are (among others) two very different kinds of data to be considered
here. Lets call them "text" and "continuous functions". The main feature of
"text" compression algorithms like gzip is not that the size of its
compressing element is fixed at 8 bits, but the fact that they search for
exact matches in the data. For gzip a miss is as good as a kilometer; 'foo' is
as different from 'for' as it is from 'fox'.

OTOH, algorithms designed to compress data of the "continuous function" type,
usually take advantage of the fact that differences between consecutive data
elements tend to be smaller than the values of the elements, and therefore
easier to compress efficiently. This is the case of the rice algorithm.

IMO, the two kinds of algorithms are so fundamentally different that it does
not make sense to mix them.

Regarding the use of gzip/lzip to compress binary tables in fits files, the
first attempt does not seem promising. The table seems to compress much better
if it is in text (ASCII) format than in fits format:


-rw-r--r-- 1   8603322 2017-01-30 10:45 uvudf_rafelski_2015.dat
-rw-r--r-- 1   1877246 2017-01-30 10:45 uvudf_rafelski_2015.dat.gz
-rw-r--r-- 1   1164719 2017-01-30 10:45 uvudf_rafelski_2015.dat.lz
-rw-r--r-- 1   7450560 2017-01-09 08:23 uvudf_rafelski_2015.fits
-rw-r--r-- 1   4625937 2017-01-30 10:43 uvudf_rafelski_2015.fits.gz
-rw-r--r-- 1   3603977 2017-01-09 08:23 uvudf_rafelski_2015.fits.lz



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/task/?14191>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]