• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..07-Dec-2018-

zlib/H07-Dec-2018-11,4747,186

FindPthreads.cmakeH A D08-Nov-20163.1 KiB9988

Makefile.inH A D08-Nov-20165.3 KiB176108

READMEH A D08-Nov-20165.9 KiB145122

README.MacOSH A D08-Nov-20162.1 KiB7144

README.winH A D08-Nov-20166 KiB137100

README_OLD.winH A D08-Nov-20163.5 KiB8457

buffers.cH A D08-Nov-201652 KiB1,378941

cfileio.cH A D08-Nov-2016233.5 KiB7,2725,109

cfitsio.pc.inH A D08-Nov-2016257 1210

cfitsio_mac.sit.hqxH A D08-Nov-201622.8 KiB361360

cfortran.hH A D08-Nov-2016131.9 KiB2,5162,067

checksum.cH A D08-Nov-201617.2 KiB509317

config.guessH A D29-Aug-201644 KiB1,5061,295

config.subH A D29-Aug-201634.2 KiB1,7401,591

configureH A D29-Aug-2016192.4 KiB6,9165,668

configure.inH A D08-Nov-201616.4 KiB559503

cookbook.cH A D08-Nov-201621.3 KiB572343

cookbook.fH A D08-Nov-201629.5 KiB773338

drvrfile.cH A D08-Nov-201627.5 KiB992648

drvrgsiftp.cH A D08-Nov-201613.3 KiB523421

drvrgsiftp.hH A D08-Nov-2016787 2219

drvrmem.cH A D08-Nov-201636 KiB1,220831

drvrnet.cH A D08-Nov-201669.6 KiB2,7421,839

drvrsmem.cH A D08-Nov-201637.6 KiB974772

drvrsmem.hH A D08-Nov-20166.4 KiB180117

editcol.cH A D08-Nov-201682.7 KiB2,4781,802

edithdu.cH A D08-Nov-201630.5 KiB884611

eval.lH A D08-Nov-201615.8 KiB546432

eval.yH A D08-Nov-2016173.5 KiB5,8384,954

eval_defs.hH A D08-Nov-20164.2 KiB164142

eval_f.cH A D08-Nov-201696.4 KiB2,8402,213

eval_l.cH A D08-Nov-201659.2 KiB2,2531,610

eval_tab.hH A D08-Nov-2016871 4340

eval_y.cH A D08-Nov-2016237.6 KiB7,3346,222

f77.incH A D08-Nov-2016853 3226

f77_wrap.hH A D08-Nov-201610.2 KiB288204

f77_wrap1.cH A D08-Nov-201612.2 KiB347247

f77_wrap2.cH A D08-Nov-201631.6 KiB712525

f77_wrap3.cH A D08-Nov-201632.8 KiB854634

f77_wrap4.cH A D08-Nov-201619 KiB573373

fits_hcompress.cH A D08-Nov-201645.9 KiB1,859921

fits_hdecompress.cH A D08-Nov-201661.9 KiB2,6191,526

fitscopy.cH A D08-Nov-20162.6 KiB6151

fitscore.cH A D08-Nov-2016297.1 KiB9,3536,699

fitsio.hH A D08-Nov-2016110.8 KiB1,9681,610

fitsio2.hH A D08-Nov-201657.7 KiB1,212985

fpack.cH A D08-Nov-201614.3 KiB412307

fpack.hH A D08-Nov-20167 KiB190100

fpackutil.cH A D08-Nov-201671.9 KiB2,3271,585

funpack.cH A D08-Nov-20164.4 KiB169122

getcol.cH A D08-Nov-201638.8 KiB1,054862

getcolb.cH A D08-Nov-201674.8 KiB2,0091,545

getcold.cH A D08-Nov-201665.7 KiB1,6841,226

getcole.cH A D08-Nov-201665.8 KiB1,6871,226

getcoli.cH A D08-Nov-201671.2 KiB1,9091,475

getcolj.cH A D08-Nov-2016140.7 KiB3,7422,869

getcolk.cH A D08-Nov-201671.1 KiB1,9021,459

getcoll.cH A D08-Nov-201622.6 KiB622440

getcols.cH A D08-Nov-201628.4 KiB836615

getcolsb.cH A D08-Nov-201673.7 KiB1,9921,545

getcolui.cH A D08-Nov-201671.6 KiB1,9151,481

getcoluj.cH A D08-Nov-201671.4 KiB1,9091,470

getcoluk.cH A D08-Nov-201671.8 KiB1,9241,481

getkey.cH A D08-Nov-2016112 KiB3,2482,329

group.cH A D08-Nov-2016170.2 KiB6,4643,182

group.hH A D08-Nov-20161.9 KiB6639

grparser.cH A D08-Nov-201645.6 KiB1,3801,032

grparser.hH A D08-Nov-20165.7 KiB186116

histo.cH A D08-Nov-201672.9 KiB2,2221,640

imcompress.cH A D08-Nov-2016349.9 KiB9,3696,564

imcopy.cH A D08-Nov-20169.1 KiB234176

install-shH A D29-Aug-20165.5 KiB251152

iraffits.cH A D08-Nov-201656.1 KiB2,0941,427

iter_a.cH A D08-Nov-20165.1 KiB14886

iter_a.fH A D08-Nov-20166.7 KiB225131

iter_b.cH A D08-Nov-20163.6 KiB11564

iter_b.fH A D08-Nov-20165.5 KiB194114

iter_c.cH A D08-Nov-20165.9 KiB17296

iter_c.fH A D08-Nov-201610.3 KiB348200

iter_image.cH A D08-Nov-20163 KiB9447

iter_var.cH A D08-Nov-20163.2 KiB10147

longnam.hH A D08-Nov-201620.1 KiB594539

makefile.bcH A D08-Nov-201612.5 KiB589484

makefile.vccH A D08-Nov-201617.6 KiB794554

makepc.batH A D08-Nov-20162.3 KiB8886

modkey.cH A D08-Nov-201662.9 KiB1,7561,327

pliocomp.cH A D08-Nov-20166.9 KiB332272

putcol.cH A D08-Nov-201663.9 KiB1,9301,528

putcolb.cH A D08-Nov-201635.8 KiB1,018706

putcold.cH A D08-Nov-201637.1 KiB1,065749

putcole.cH A D08-Nov-201637.6 KiB1,079749

putcoli.cH A D08-Nov-201634 KiB991695

putcolj.cH A D08-Nov-201668.5 KiB2,0011,414

putcolk.cH A D08-Nov-201634.9 KiB1,018716

putcoll.cH A D08-Nov-201613.4 KiB370237

putcols.cH A D08-Nov-201610.6 KiB305215

putcolsb.cH A D08-Nov-201634 KiB975684

putcolu.cH A D08-Nov-201621 KiB630385

putcolui.cH A D08-Nov-201633.5 KiB970683

putcoluj.cH A D08-Nov-201633.6 KiB978691

putcoluk.cH A D08-Nov-201634.3 KiB994700

putkey.cH A D08-Nov-2016105 KiB3,0802,267

quantize.cH A D08-Nov-2016115.7 KiB3,9212,754

region.cH A D08-Nov-201654.3 KiB1,7651,312

region.hH A D08-Nov-20162.1 KiB8359

ricecomp.cH A D08-Nov-201634.4 KiB1,354712

sample.tplH A D08-Nov-20163.5 KiB12198

scalnull.cH A D08-Nov-20168.8 KiB230119

smem.cH A D08-Nov-20162.5 KiB7870

speed.cH A D08-Nov-201615.1 KiB512325

swapproc.cH A D08-Nov-20167.5 KiB248183

testf77.fH A D08-Nov-201678.3 KiB2,4891,830

testf77.outH A D08-Nov-201632.6 KiB747691

testprog.cH A D08-Nov-201683.9 KiB2,5901,867

testprog.outH A D08-Nov-201631.5 KiB798738

testprog.tptH A D08-Nov-2016396 1311

vmsieee.cH A D08-Nov-20163.7 KiB131102

wcssub.cH A D08-Nov-201634.4 KiB1,044710

wcsutil.cH A D08-Nov-201616.4 KiB503375

winDumpExts.makH A D08-Nov-20164.2 KiB192145

windumpexts.cH A D08-Nov-201612.6 KiB503337

README

1                   CFITSIO Interface Library
2
3CFITSIO is a library of ANSI C routines for reading and writing FITS
4format data files.  A set of Fortran-callable wrapper routines are also
5included for the convenience of Fortran programmers.  This README file
6gives a brief summary of how to build and test CFITSIO, but the CFITSIO
7User's Guide, found in the files cfitsio.doc (plain text), cfitsio.tex
8(LaTeX source file), cfitsio.ps, or cfitsio.pdf should be
9referenced for the latest and most complete information.
10
11BUILDING CFITSIO
12----------------
13
14The CFITSIO code is contained in about 40 *.c source files and several *.h
15header files.  The CFITSIO library is built on Unix systems by typing:
16
17 >  ./configure [--prefix=/target/installation/path]
18 >  make          (or  'make shared')
19 >  make install  (this step is optional)
20
21at the operating system prompt.  The configure command customizes the
22Makefile for the particular system, then the `make' command compiles the
23source files and builds the library.  Type `./configure' and not simply
24`configure' to ensure that the configure script in the current directory
25is run and not some other system-wide configure script.  The optional
26'prefix' argument to configure gives the path to the directory where
27the CFITSIO library and include files should be installed via the later
28'make install' command. For example,
29
30   > ./configure --prefix=/usr1/local
31
32will cause the 'make install' command to copy the CFITSIO libcfitsio file
33to /usr1/local/lib and the necessary include files to /usr1/local/include
34(assuming of course that the  process has permission to write to these
35directories).
36
37On VAX/VMS and ALPHA/VMS systems the make.com command file may be used
38to build the cfitsio.olb object library using the default G-floating
39point option for double variables.  The make\_dfloat.com and make\_ieee.com
40files may be used instead to build the library with the other floating
41point options.
42
43A precompiled DLL version of CFITSIO is available for IBM-PC users of
44the Borland or Microsoft Visual C++ compilers in the files
45cfitsiodll_xxxx_borland.zip and cfitsiodll_xxxx_vcc.zip, where 'xxxx'
46represents the current release number.  These zip archives also
47contains other files and instructions on how to use the CFITSIO DLL
48library. The CFITSIO library may also be built from the source code
49using the makefile.bc or makefile.vcc  files.  Finally, the makepc.bat
50file gives an example of  building CFITSIO with the Borland C++ v4.5
51compiler using simpler DOS commands.
52
53When building on Mac OS-X, users should follow the Unix instructions,
54above. Previous MacOS versions of the cfitsio library can be built by
55(1) un binhex and unstuff cfitsio_mac.sit.hqx, (2) put CFitsioPPC.mcp
56in the cfitsio directory, and (3) load CFitsioPPC.mcp into CodeWarrior
57Pro 5 and make.  This builds the cfitsio library for PPC.  There are
58also targets for both the test program and the speed test program.
59
60To use the MacOS port you can add Cfitsio PPC.lib to your Codewarrior
61Pro 5 project.  Note that this only has been tested for the PPC and
62probably won't work
63 on 68k macs.
64
65TESTING CFITSIO
66---------------
67
68The CFITSIO library should be tested by building and running
69the testprog.c program that is included with the release.
70On Unix systems, type:
71-
72    % make testprog
73    % testprog > testprog.lis
74    % diff testprog.lis testprog.out
75    % cmp testprog.fit testprog.std
76-
77 On VMS systems,
78(assuming cc is the name of the C compiler command), type:
79-
80    $ cc testprog.c
81    $ link testprog, cfitsio/lib
82    $ run testprog
83-
84The testprog program should produce a FITS file called `testprog.fit'
85that is identical to the testprog.std FITS file included in this
86release.  The diagnostic messages (which were piped to the file
87testprog.lis in the Unix example) should be identical to the listing
88contained in the file testprog.out.  The 'diff' and 'cmp' commands
89shown above should not report any differences in the files.
90
91USING CFITSIO
92-------------
93
94The CFITSIO User's Guide, contained in the files cfitsio.doc (plain
95text file) and cfitsio.ps (postscript file), provides detailed
96documentation about how to build and use the CFITSIO library.
97It contains a description of every user-callable routine in the
98CFITSIO interface.
99
100The cookbook.c file provides some sample routines for performing common
101operations on various types of FITS files.  Programmers are urged to
102examine these routines for recommended programming practices when using
103CFITSIO.  Users are free to copy or modify these routines for their own
104purposes.
105
106SUPPORTED PLATFORMS
107-------------------
108
109CFITSIO has currently been tested on the following platforms:
110
111   Operating System          Compiler
112   ----------------          --------
113  OPERATING SYSTEM           COMPILER
114   Sun OS                     gcc and cc (3.0.1)
115   Sun Solaris                gcc and cc
116   Silicon Graphics IRIX      gcc and cc
117   Silicon Graphics IRIX64    MIPS
118   Dec Alpha OSF/1            gcc and cc
119   DECstation  Ultrix         gcc
120   Dec Alpha OpenVMS          cc
121   DEC VAX/VMS                gcc and cc
122   HP-UX                      gcc
123   IBM AIX                    gcc
124   Linux                      gcc
125   MkLinux                    DR3
126   Windows 95/98/NT           Borland C++ V4.5
127   Windows 95/98/NT/ME/XP     Microsoft/Compaq Visual C++ v5.0, v6.0
128   Windows 95/98/NT           Cygwin gcc
129   OS/2                       gcc + EMX
130   Mac OS 7.1 or greater      Metrowerks 10.+
131   Mac OS-X 10.1 or greater   cc (gcc)
132
133CFITSIO will probably run on most other Unix platforms without
134modification.  Cray supercomputers and IBM mainframe computers are
135currently not supported.
136
137Reports of any success or failure to run CFITSIO on other platforms
138would be appreciated.  Any problem reports or suggestions for
139improvements are also welcome and should be sent to the primary author.
140
141-------------------------------------------------------------------------
142William D. Pence
143HEASARC, NASA/GSFC
144email: William.D.Pence@nasa.gov
145

README.MacOS

1To build CFITSIO library on an Intel Mac as a Universal Binary
2
3Unzip the library:
4- tar xzf cfitsio3060.tar.gz (or whatever version this is)
5
6- cd cfitsio/
7
8- copy the cfitsio-xcodeproj.zip file here
9
10- unzip cfitsio-xcodeproj.zip
11
12- start Xcode and open cfitsio.xcodeproj
13
14- expand the "Targets" menu under "Groups & Files"
15
16- choose one of the following build options:
17
18  * right-click on Build PPC -> Build "Build PPC"
19
20  * right-click on Build i386 -> Build "Build i386"
21
22  * right-click on Build x86_64 -> Build "Build x86_64"
23
24  * right-click on Build Universal -> Build "Build Universal"
25    (Builds all three of the above options, i.e. a Universal Binary
26     usable on ppc, i386, and x86_64 architectures)
27
28  (For some reason clicking on the menu "Build" icon doesn't seem to
29   work correctly, but the right-click menus do).
30
31-------------------------------------------------------
32
33Another way to build the universal binary:
34
35- unpack the cfitsio source code tar file
36- cd cfitsio
37
38Set the CFLAGS environment variable for building a Universal Binary:
39
40  C-Shell variants:
41  setenv CFLAGS "-arch ppc -arch i386 -arch x86_64 -g -O2"
42
43  Bourne Shell variants:
44  export CFLAGS="-arch ppc -arch i386 -arch x86_64 -g -O2"
45
46Then proceed with the standard cfitsio build, i.e.:
47
48- ./configure
49- make
50- make install
51
52
53-------------------------------------------------------
54
55Below, are the old (and now obsolete) instructions for building CFITSIO
56on classic Mac OS-9 or earlier versions:
57
581. Un binhex and unstuff cfitsio_mac.sit.hqx
592. put CFitsioPPC.mcp in the cfitsio directory.
602. Load CFitsioPPC.mcp into CodeWarrior Pro 5 and make.
61   This builds the cfitsio library for PPC.  There are also targets for both
62   the test program and the speed test program.
63
64To use the MacOS port you can add Cfitsio PPC.lib to your Codewarrior Pro 5
65project.  Note that this only has been tested for the PPC. It probably
66won't work on 68k macs.  Also note that the fortran bindings aren't
67included.  I haven't worked with the codewarrior f2c plugin so I don't know
68how these would work.  If one is interested, please write and I can look
69into this.
70
71

README.win

1Instructions on building and using CFITSIO on Windows platforms
2for C programmers using Microsoft Visual Studio or Borland C++.
3
4These instructions for building the CFITSIO library under Windows use the
5CMake build system that is available from http://www.cmake.org.
6
7===============================================================================
8
91.  Build the CFITSIO dll library
10
11This step will create the cfitsio.dll, and cfitsio.lib files.  If you have
12downloaded the CFITSIO DLL .zip file that already contains the pre-built
13versions of these files, then SKIP THIS STEP.
14
15  a. If CMAKE is not already installed on your machine, download it from
16     http://www.cmake.org.  It is recommended that you choose the
17     "Add CMake to the system PATH for current user" option during the
18     installation setup process for convenience when running CMake later on.
19
20  b. Unzip the CFITSIO .zip file (e.g. cfit3360.zip) that was obtained from
21     the CFITSIO Web site (http://heasarc.gsfc.nasa.gov/fitsio/). This will
22     create a new \cfitsio subdirectory that contains the source code and
23     documentation files.  It should also contain a CMakeLists.txt file that
24     will be used during the CMake build process.
25
26  c. Open the Visual Studio Command Prompt window, likely using a
27     desktop icon with this same name, (or the equivalent Borland command window)
28     and CD (change directory) into the parent directory that is one level
29     above the directory containing the CFITSIO source files that was created
30     in the previous step.
31
32  d. Create a new "cfitsio.build" subdirectory, and CD into it with the
33     following commands:
34
35     mkdir cfitsio.build
36     cd cfitsio.build
37
38     When using Visual Studio, all the files that are generated during the
39     CMake process will be created in or under this subdirectory.
40
41  e. Decide which CMake Generator you will want to use in the following step.
42     This depends on which C/C++ compiler you are using and will likely have
43     a name such as:
44
45     "Visual Studio 10"
46     "Visual Studio 10 Win64" (for 64-bit builds)
47     "Visual Studio 11"
48     "Visual Studio 11 Win64" (for 64-bit builds)
49     "Visual Studio 12"
50     "Visual Studio 12 Win64" (for 64-bit builds)
51     "Borland Makefiles"
52     "NMake Makefiles"
53
54      You can see a list of all the available CMake Generators by executing
55      the command
56
57         cmake.exe /?
58
59      Note that these names are case-sensitive and must be entered in the
60      following step exactly as displayed.
61
62  f.  Execute the following commands to build the CFITSIO library:
63
64      cmake.exe -G "<cmake generator>" ..\cfitsio
65      cmake.exe --build . --config Release
66
67      Where the string <cmake generator> is the string that was selected
68      in step e.  Note that the "..\cfitsio" argument in the first command
69      gives the path to the directory that contains the CFITSIO source files
70      and the CMakeLists.txt file.  The "." argument in the second command
71      (following --build) tells CMake to build the files in the current
72      directory (i.e., the cfitsio.build directory).
73
74      If this process completes successfully, you should find the CFITSIO
75      library files that were created in the "cfitsio.build\Release"
76      subdirectory. To verify that CFITSIO is working correctly, execute the
77      testprog.exe file (in that Release directory).  This should generate
78      a long stream of diagnostic messages ending with the line "Status = 0:
79      OK - no error".
80
81   g. Other CMake options.
82
83      CMake has many other build options that may be useful in some
84      situations. Refer to the CMake documentation for more
85      information.
86
87      For example, one can build a 'debug' version of the CFITSIO library
88      by executing the command "cmake.exe --build ." instead of the 2nd
89      command listed above in section f.
90
91      One can also make a thread safe version of CFITSIO using the
92      pthread library with the following procedure:
93
94      a. Download the precompiled files from the pthread-win32 project
95      (http://sourceware.org/pthreads-win32/). Put the files for your
96      specific  platform (.h, .lib, .dll) into a folder 'pthread',
97      parallel to the  cfitsio source folder.
98
99      b. For the compilation of cfitsio follow the cmake steps, but use
100      this  change as a replacement for the commands in step f:
101
102      cmake.exe -G "<cmake generator>" ..\cfitsio -DUSE_PTHREADS=1
103       -DCMAKE_INCLUDE_PATH=..\pthread -DCMAKE_LIBRARY_PATH=..\pthread
104
105      cmake.exe --build . --config Release
106
107      You may need to adapt the paths for the source directory and
108      the pthread library.
109
110============================================================================
111
1122.  Using CFITSIO when compiling and linking application programs
113
114First, depending on your particular programming environment, it may be
115necessary to copy the cfitsio.lib and cfitsio.dll files into another
116directory where your compiler expects to find them.  Or equivalently, you
117may need to specify the directory path to the location of the CFITSIO
118library files when creating a project that uses them.  You may also need to
119copy the fitsio.h and longnam.h include files from the \cfitsio source file
120directory to a standard 'include' directory on your system.
121
122When using the Visual Studio command line window, application programs can
123be compiled and linked with CFITSIO using the following command:
124
125		cl /MD your_program.c cfitsio.lib
126
127The /MD command line switch must be specified to force the compiler/linker
128to use the appropriate runtime library.   If this switch is omitted, then
129the fits_report_error function in CFITSIO will likely crash.
130
131When building programs in the Visual Studio graphical environment, one can
132force the equivalent of the /MD switch by selecting 'Settings...' under the
133'Project' menu, then click on the C/C++ tab and select the 'Code Generator'
134category.  Then under 'User Run-time Library' select 'Multithreaded DLL'.
135
136===============================================================================
137

README_OLD.win

1===============================================================================
2===============================================================================
3= NOTE:  This is the old version of the README.win32 file that was distributed
4= with CFITSIO up until version 3.35 in 2013.  These instruction may still work
5= with more recent versions of CFITSIO, however, users are strongly urged to
6= use the CMake procedures that are now documented in the new README.win32 file.
7===============================================================================
8===============================================================================
9
10     Instructions on using CFITSIO on Windows platforms for C programmers
11
12These instructions use a simple DOS-style command window. It is also possible
13to build and use CFITSIO within a GUI programming environment such as Visual
14Studio, but this is not supported here.
15
16===============================================================================
171.  Build the CFITSIO dll library
18
19This step will create the cfitsio.def, cfitsio.dll, and cfitsio.lib files.
20(If you downloaded the CFITSIO .zip file that contains the pre-built binary
21.dll file, then SKIP THIS STEP).
22
23  A. With Microsoft Visual C++:
24
25      1. Open a DOS command window and execute the vcvars32.bat file that
26         is distributed with older versions of Visual C++, or simply open
27         the Visual C++ command window (e.g., when using Visual Studio 2010).
28
29      2. Unpack the CFITSIO source files (cfitxxxx.zip) into a new empty directory
30
31      3. In the DOS command window, cd to that directory and enter the
32         following commands:
33
34		nmake winDumpExts.mak
35		nmake makefile.vcc
36			(ignore the compiler warning messages)
37
38  B: With  Borland C++:
39
40     First, follow the instructions provided by Borland to set up
41     the proper environment variables and configure files for the compiler.
42
43     Unpack the cfitsio.zip source file distribution into a suitable directory.
44
45     In a DOS command window, cd to that directory and then execute the
46     makepc.bat batch file on the command line to build the CFITSIO library,
47     and the testprog and cookbook sample programs.
48
49===============================================================================
502.  Test the CFITSIO library with Visual C++
51
52     Compile and link the testprog.c test program.  When using Visual Studio,
53     the command is:
54
55		cl /MD testprog.c cfitsio.lib
56
57
58     This will create the testprog.exe executable program.  Running this
59     program should print out a long series of diagnostic messages
60     that should end with "Status = 0; OK - no error"
61
62===============================================================================
633.  Compile and link an application program that calls CFITSIO routines
64    with Visual C++
65
66	Include the fitsio.h and longnam.h header files in the C source code.
67
68	Link the program with the cfitsio.lib file:
69
70		cl /MD your_program.c cfitsio.lib
71
72
73	NOTE: The /MD command line switch must be specified on the cl
74	command line to force the compiler/linker to use the
75	appropriete runtime library.   If this switch is omitted, then
76	the fits_report_error function in CFITSIO will likely crash.
77
78	When building programs in the Visual Studio environment, one
79	can force the equivalent of the /MD switch by selecting
80	'Settings...' under the 'Project' menu, then click on the C/C++
81	tab and select the 'Code Generator' category.  Then under 'User
82	Run-time Library' select 'Multithreaded DLL'.
83
84