[fitsbits] question about imcopy.c
William Pence
William.Pence at nasa.gov
Wed Aug 27 09:45:45 EDT 2008
I think the problem is that you are using an old version of CFITSIO.
The 'q' syntax was added fairly recently, so get the new 3.100 version
of CFITSIO and try again. If you still have problems send me a private
email.
In addition, the old imcopy program is obsolete and has been replaced by
a new pair of FITS image compression/uncompression programs called fpack
and funpack. These utility programs are analogous to gzip and gunzip,
but are optimized for astronomical images so they are faster and produce
smaller compressed files. These utilities were developed in
collaboration with Rob Seaman (NOAO) and Rick White (STScI). They are
available at http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fpack/
and are also bundled in with the CFITSIO 3.100 distribution.
Bill Pence
shntn05 at gmail.com wrote:
> Hi all,
> I am a brand new user of CFITSIO and still in the learning stage.
> I got confused when I tried to use the imcopy.c
>
> According to Page 46 of CFITSIO reference guide from
> http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio.ps
>
> imcopy infile.fit ’outfile.fit[compress R 100,100; q 10.0]’
>
> should use tile compression and quantization scale of 10.
> However when I try the above on the imcopy provided in
>
> http://heasarc.gsfc.nasa.gov/docs/software/fitsio/cexamples/imcopy.c
> the above does not work.
> I get the error
> "FITSIO status = 125: parse error in input file URL"
> It works when get rid of "q" , but this assumes noise bits = 10 rather
> than the quantization scale.
> This means that I am looking at either outdated reference manual or
> the using the outdated
> version of imcopy.c? Could someone let me know where is the latest
> version of imcopy.c
> and the CFITSIO reference manual?
> Thanks
> Shantanu
More information about the fitsbits
mailing list