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: Mohammad Akhlaghi
Subject: [gnuastro-devel] [task #14191] Enable FITS input and output using Lzip
Date: Thu, 17 Nov 2016 17:29:10 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0

Update of task #14191 (project gnuastro):

        Percent Complete:                      0% => 40%                    

    _______________________________________________________

Follow-up Comment #1:

Antonio Diaz Diaz (creator of the Lzip program and library) has kindly offered
to help in this task. 

He has prepared a patch for CFITSIO 3.39 that will allow it to read `.fits.lz'
files the same way that CFITSIO reads `.fits.bz2' files. The patch is attached
with this comment. Currently it only uncompresses an `.fits.lz' file, it
doesn't compress/create one.

To apply the patch to CFITSIO take the following steps:


tar -xf cfitsio3390.tar.gz
cd cfitsio
lzip -cd PATH/cfitsio3390_lzip.diff.lz | patch -p1 


Make sure you have liblz <http://www.nongnu.org/lzip/lzlib.html> and libbz2
<http://www.bzip.org/> already installed. You can then configure and build
CFITSIO as described in the manual
<https://www.gnu.org/software/gnuastro/manual/html_node/CFITSIO.html>, with
some minor differences as shown below. If you don't want to confirm/check with
bz2 images, ignore the bz2 options.


$ ./configure --prefix=/usr/local --enable-sse2 --enable-reentrant
--with-bzip2 --with-lzip 
$ make LIBS='-lbz2 -llz'
$ make utils
$ rm cookbook fitscopy imcopy smem speed testprog
$ sudo make install


I am also attaching `sample.fits.lz', which is one random real galaxy image to
test on.

After installing CFITSIO, Gnuastro also needs some modifications, I have made
a `cfitsio-lzip' branch
<https://gitlab.com/makhlaghi/gnuastro/tree/cfitsio-lzip> in my development
fork for the Gnuastro modifications (mainly to do with recognizing the file
names and checking the libraries). 

(file #39006, file #39007)
    _______________________________________________________

Additional Item Attachment:

File name: cfitsio3390_lzip.diff.lz       Size:3 KB
File name: sample.fits.lz                 Size:25 KB


    _______________________________________________________

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]