Go to file
Debian Astronomy Maintainers 65aec0a3ff hurd
Gbp-Pq: Name 08-hurd.diff
2022-05-14 03:24:03 +08:00
cfitsio.xcodeproj Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
debian Import Debian changes 3.470-ok1 2022-05-14 03:23:50 +08:00
docs Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
zlib system-zlib 2022-05-14 03:24:02 +08:00
CMakeLists.txt Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
FindPthreads.cmake Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
License.txt Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
Makefile.in system-zlib 2022-05-14 03:24:02 +08:00
README Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
README.MacOS Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
README.win Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
README_OLD.win Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
buffers.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
cfileio.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
cfitsio.pc.cmake Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
cfitsio.pc.in system-zlib 2022-05-14 03:24:02 +08:00
cfitsio_mac.sit.hqx Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
cfortran.h Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
checksum.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
config.guess Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
config.sub Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
configure Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
configure.in hurd 2022-05-14 03:24:03 +08:00
cookbook.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
cookbook.f Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
drvrfile.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
drvrgsiftp.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
drvrgsiftp.h Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
drvrmem.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
drvrnet.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
drvrsmem.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
drvrsmem.h Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
editcol.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
edithdu.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
eval.l Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
eval.y Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
eval_defs.h Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
eval_f.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
eval_l.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
eval_tab.h Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
eval_y.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
f77.inc Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
f77_wrap.h system-cfortran 2022-05-14 03:24:02 +08:00
f77_wrap1.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
f77_wrap2.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
f77_wrap3.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
f77_wrap4.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
fits_hcompress.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
fits_hdecompress.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
fitscopy.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
fitscore.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
fitsio.h off_t 2022-05-14 03:24:02 +08:00
fitsio2.h riscv64 2022-05-14 03:24:03 +08:00
fpack.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
fpack.h Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
fpackutil.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
funpack.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
getcol.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
getcolb.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
getcold.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
getcole.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
getcoli.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
getcolj.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
getcolk.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
getcoll.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
getcols.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
getcolsb.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
getcolui.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
getcoluj.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
getcoluk.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
getkey.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
group.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
group.h Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
grparser.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
grparser.h Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
histo.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
imcompress.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
imcopy.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
install-sh Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
iraffits.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
iter_a.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
iter_a.f Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
iter_a.fit Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
iter_b.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
iter_b.f Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
iter_b.fit Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
iter_c.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
iter_c.f Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
iter_c.fit Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
iter_image.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
iter_var.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
longnam.h Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
makefile.bc Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
makefile.vcc Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
makepc.bat Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
modkey.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
pliocomp.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
putcol.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
putcolb.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
putcold.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
putcole.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
putcoli.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
putcolj.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
putcolk.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
putcoll.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
putcols.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
putcolsb.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
putcolu.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
putcolui.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
putcoluj.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
putcoluk.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
putkey.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
quantize.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
region.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
region.h Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
ricecomp.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
sample.tpl Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
scalnull.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
simplerng.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
simplerng.h Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
smem.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
speed.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
swapproc.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
testf77.f Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
testf77.out Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
testf77.std Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
testprog.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
testprog.out Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
testprog.std Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
testprog.tpt Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
vmsieee.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
wcssub.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
wcsutil.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
winDumpExts.mak Import Upstream version 3.470 2022-05-14 03:23:49 +08:00
windumpexts.c Import Upstream version 3.470 2022-05-14 03:23:49 +08:00

README

                   CFITSIO Interface Library

CFITSIO is a library of ANSI C routines for reading and writing FITS
format data files.  A set of Fortran-callable wrapper routines are also
included for the convenience of Fortran programmers.  This README file
gives a brief summary of how to build and test CFITSIO, but the CFITSIO
User's Guide, found in the files cfitsio.doc (plain text), cfitsio.tex
(LaTeX source file), cfitsio.ps, or cfitsio.pdf should be
referenced for the latest and most complete information.

BUILDING CFITSIO
----------------

The CFITSIO code is contained in about 40 *.c source files and several *.h
header files.  CFITSIO should compile and run on most Unix platforms without
modification, except that Cray supercomputers computers are currently not
supported.  The CFITSIO library is built on Unix systems by typing:

 >  ./configure [--prefix=/target/installation/path]
 >  make          (or  'make shared')
 >  make install  (this step is optional)

at the operating system prompt.  The configure command customizes the
Makefile for the particular system, then the `make' command compiles the
source files and builds the library.  Type `./configure' and not simply
`configure' to ensure that the configure script in the current directory
is run and not some other system-wide configure script.  The optional
'prefix' argument to configure gives the path to the directory where
the CFITSIO library and include files should be installed via the later
'make install' command. For example,

   > ./configure --prefix=/usr1/local

will cause the 'make install' command to copy the CFITSIO libcfitsio file 
to /usr1/local/lib and the necessary include files to /usr1/local/include
(assuming of course that the  process has permission to write to these 
directories).

All the available configure options can be seen by entering the command

   > ./configure --help

On VAX/VMS and ALPHA/VMS systems the make.com command file may be used
to build the cfitsio.olb object library using the default G-floating
point option for double variables.  The make\_dfloat.com and make\_ieee.com
files may be used instead to build the library with the other floating
point options.

A precompiled DLL version of CFITSIO is available for IBM-PC users of
the Borland or Microsoft Visual C++ compilers in the files
cfitsiodll_xxxx_borland.zip and cfitsiodll_xxxx_vcc.zip, where 'xxxx'
represents the current release number.  These zip archives also
contains other files and instructions on how to use the CFITSIO DLL
library. The CFITSIO library may also be built from the source code
using the makefile.bc or makefile.vcc  files.  Finally, the makepc.bat
file gives an example of  building CFITSIO with the Borland C++ v4.5
compiler using simpler DOS commands.

Instructions for building CFITSIO on Mac OS can be found in
the README.MacOS file.

TESTING CFITSIO
---------------

The CFITSIO library should be tested by building and running
the testprog.c program that is included with the release. 
On Unix systems, type:
-
    % make testprog
    % testprog > testprog.lis
    % diff testprog.lis testprog.out
    % cmp testprog.fit testprog.std
-
 On VMS systems,
(assuming cc is the name of the C compiler command), type:
-
    $ cc testprog.c
    $ link testprog, cfitsio/lib
    $ run testprog
-
The testprog program should produce a FITS file called `testprog.fit'
that is identical to the testprog.std FITS file included in this
release.  The diagnostic messages (which were piped to the file
testprog.lis in the Unix example) should be identical to the listing
contained in the file testprog.out.  The 'diff' and 'cmp' commands
shown above should not report any differences in the files.

USING CFITSIO
-------------

The CFITSIO User's Guide, contained in the files cfitsio.doc (plain
text file) and cfitsio.ps (postscript file), provides detailed
documentation about how to build and use the CFITSIO library.
It contains a description of every user-callable routine in the
CFITSIO interface.

The cookbook.c file provides some sample routines for performing common
operations on various types of FITS files.  Programmers are urged to
examine these routines for recommended programming practices when using
CFITSIO.  Users are free to copy or modify these routines for their own
purposes.

Any problem reports or suggestions for
improvements are welcome and should be sent to the HEASARC
help desk.

-------------------------------------------------------------------------
William D. Pence
HEASARC, NASA/GSFC