osa logo
OSA Home
Start Here
Data Overview
Known Issues
the Surveys
Coverage Maps
Schema browser
Data access
Login
Archive Listing
GetImage
MultiGetImage
Region
Freeform SQL
CrossID
SQL Cookbook
Q&A
Glossary
Release History
Gallery
Publications
Monitor
Downtime
Links
osa logo bottom
IFA     ROE
Home | Overview | Browser | Access | Login | Cookbook 
  OSA logo

Getting/compiling/using imcopy

The cfitsio program imcopy can be used to uncompress RICE compressed FITS images.
  • 1) Download imcopy from

    http://heasarc.gsfc.nasa.gov/docs/software/fitsio/cexamples/imcopy.c

    Ensure that the file has saved correctly i.e. in plain text as some browsers will insert HTML tags. It might be easier to just cut/paste the page into a file.

  • 2) If you have starlink try to compile imcopy against your local copy of cfitsio:
    gcc -I/star/include -L/star/lib -lm imcopy.c -lcfitsio -o imcopy
  • 3) If that works move the imcopy executable to wherever you'd like it to be.

  • 4) If you don't have starlink or step 2 didn't work. Download the latest stable version of CFITSIO for your computer here: http://heasarc.gsfc.nasa.gov/fitsio/
    The tar file should include imcopy.c

  • 5) Extract
    tar xvfz cfitsioXXXX.tar.gz (XXXX = version of cfitsio)

  • 6) Compile and install into your chosen directory, replace $INSTALLDIR with the name of your preferred directory.
    cd cfitsio
    ./configure --prefix=$INSTALLDIR
    make
    make install
    
  • 7) Compile
    gcc -I$INSTALLDIR/include -L$INSTALLDIR/lib -lm imcopy.c -lcfitsio -o imcopy
  • 8) Move the imcopy executable to wherever you want it to be.

  • 9) Usage is
    imcopy inFileName outFileName
    e.g. to uncompress the RICE compressed file wsa_st.fit
    imcopy wsa_st.fit wsa_out.fit



Home | Overview | Browser | Access | Login | Cookbook
Listing | FreeSQL
Links | Credits

WFAU, Institute for Astronomy,
Royal Observatory, Blackford Hill
Edinburgh, EH9 3HJ, UK

osa-support@roe.ac.uk
23/4/2015