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

..03-May-2022-

cfitsio.xcodeproj/H12-Aug-2020-121114

docs/H07-May-2022-30,02025,734

zlib/H03-May-2022-11,5017,197

FindPthreads.cmakeH A D12-Aug-20203.1 KiB9988

Makefile.inH A D03-May-20226.1 KiB200127

READMEH A D12-Aug-20204.4 KiB11090

README.MacOSH A D12-Aug-20202.4 KiB7652

README.winH A D12-Aug-20206 KiB137100

README_OLD.winH A D12-Aug-20203.5 KiB8457

buffers.cH A D03-May-202252 KiB1,378941

cfileio.cH A D03-May-2022257.4 KiB8,0115,688

cfitsio.pc.cmakeH A D12-Aug-2020342 1311

cfitsio.pc.inH A D12-Aug-2020300 1311

cfitsio_mac.sit.hqxH A D12-Aug-202022.8 KiB361360

cfortran.hH A D03-May-2022132.5 KiB2,5342,083

checksum.cH A D03-May-202217.2 KiB509317

config.guessH A D12-Aug-202043.2 KiB1,4811,288

config.subH A D12-Aug-202035.3 KiB1,8021,661

configureH A D03-May-2022214 KiB7,7166,302

configure.inH A D12-Aug-202020.2 KiB671610

cookbook.cH A D03-May-202221.3 KiB572343

cookbook.fH A D12-Aug-202029.5 KiB773338

drvrfile.cH A D03-May-202227.8 KiB1,005661

drvrgsiftp.cH A D03-May-202213.6 KiB536434

drvrgsiftp.hH A D03-May-2022787 2219

drvrmem.cH A D03-May-202238.6 KiB1,302906

drvrnet.cH A D03-May-2022122.8 KiB4,4463,133

drvrsmem.cH A D03-May-202237.6 KiB974772

drvrsmem.hH A D03-May-20226.4 KiB180117

editcol.cH A D03-May-202299.4 KiB2,9452,159

edithdu.cH A D03-May-202232 KiB925630

eval.lH A D03-May-202215.8 KiB540436

eval.yH A D12-Aug-2020173.4 KiB5,7704,916

eval_defs.hH A D03-May-20224.2 KiB164142

eval_f.cH A D03-May-202296.5 KiB2,8402,213

eval_l.cH A D03-May-202268 KiB2,5081,706

eval_tab.hH A D03-May-20223.5 KiB14598

eval_y.cH A D03-May-2022268.9 KiB8,1436,671

f77.incH A D12-Aug-2020853 3226

f77_wrap.hH A D03-May-202210.2 KiB288204

f77_wrap1.cH A D03-May-202212.5 KiB359256

f77_wrap2.cH A D03-May-202231.6 KiB712525

f77_wrap3.cH A D03-May-202233 KiB861638

f77_wrap4.cH A D03-May-202219 KiB573373

fits_hcompress.cH A D03-May-202246 KiB1,860917

fits_hdecompress.cH A D03-May-202261.8 KiB2,6151,524

fitscopy.cH A D03-May-20222.6 KiB6151

fitscore.cH A D03-May-2022311 KiB9,7767,005

fitsio.hH A D03-May-2022116.5 KiB2,0761,709

fitsio2.hH A D03-May-202261.7 KiB1,2991,058

fpack.cH A D03-May-202216.4 KiB454340

fpack.hH A D03-May-20227 KiB190100

fpackutil.cH A D03-May-202276.6 KiB2,4321,680

funpack.cH A D03-May-20224.6 KiB175128

getcol.cH A D03-May-202240.6 KiB1,105913

getcolb.cH A D03-May-202276.7 KiB2,0611,585

getcold.cH A D03-May-202267.2 KiB1,7221,254

getcole.cH A D03-May-202267.3 KiB1,7251,254

getcoli.cH A D03-May-202273.1 KiB1,9631,517

getcolj.cH A D03-May-2022144.8 KiB3,8562,965

getcolk.cH A D03-May-202273 KiB1,9561,501

getcoll.cH A D03-May-202222.8 KiB622440

getcols.cH A D03-May-202233.1 KiB993732

getcolsb.cH A D03-May-202275.5 KiB2,0461,587

getcolui.cH A D03-May-202273.5 KiB1,9681,521

getcoluj.cH A D03-May-2022144.8 KiB3,8963,014

getcoluk.cH A D03-May-202273.7 KiB1,9761,521

getkey.cH A D03-May-2022122.8 KiB3,5392,527

group.cH A D03-May-2022181.2 KiB6,7373,437

group.hH A D03-May-20222 KiB6941

grparser.cH A D03-May-202245.2 KiB1,3561,015

grparser.hH A D03-May-20225.6 KiB184114

histo.cH A D03-May-202284.8 KiB2,5401,884

imcompress.cH A D03-May-2022371.9 KiB9,9486,917

imcopy.cH A D03-May-20229.1 KiB234176

install-shH A D12-Aug-202014.5 KiB510335

iraffits.cH A D03-May-202256.4 KiB2,1021,435

iter_a.cH A D03-May-20225.1 KiB14886

iter_a.fH A D12-Aug-20206.7 KiB225131

iter_b.cH A D03-May-20223.6 KiB11564

iter_b.fH A D12-Aug-20205.5 KiB194114

iter_c.cH A D03-May-20225.9 KiB17296

iter_c.fH A D12-Aug-202010.3 KiB348200

iter_image.cH A D03-May-20223 KiB9447

iter_var.cH A D03-May-20223.2 KiB10147

longnam.hH A D03-May-202221.3 KiB626569

makefile.bcH A D12-Aug-202012.5 KiB589484

makefile.vccH A D12-Aug-202017.6 KiB794554

makepc.batH A D12-Aug-20202.3 KiB8886

modkey.cH A D03-May-202265.7 KiB1,8431,415

pliocomp.cH A D03-May-20226.9 KiB332272

putcol.cH A D03-May-202266.2 KiB1,9871,585

putcolb.cH A D03-May-202236.3 KiB1,031712

putcold.cH A D03-May-202237.8 KiB1,085765

putcole.cH A D03-May-202238.4 KiB1,099765

putcoli.cH A D03-May-202234.6 KiB1,004705

putcolj.cH A D03-May-202269.8 KiB2,0301,436

putcolk.cH A D03-May-202235.5 KiB1,034728

putcoll.cH A D03-May-202213.6 KiB373240

putcols.cH A D03-May-202210.7 KiB305215

putcolsb.cH A D03-May-202234.6 KiB990695

putcolu.cH A D03-May-202221 KiB630385

putcolui.cH A D03-May-202234 KiB983689

putcoluj.cH A D03-May-202267.8 KiB1,9671,385

putcoluk.cH A D03-May-202234.8 KiB1,008707

putkey.cH A D03-May-2022112.4 KiB3,2712,423

quantize.cH A D03-May-2022116.2 KiB3,9562,788

region.cH A D03-May-202254.5 KiB1,7651,312

region.hH A D03-May-20222.1 KiB8359

ricecomp.cH A D03-May-202234.8 KiB1,362712

sample.tplH A D12-Aug-20203.5 KiB12198

scalnull.cH A D03-May-20228.8 KiB230119

simplerng.cH A D03-May-202213.6 KiB462381

simplerng.hH A D03-May-20221.1 KiB287

smem.cH A D03-May-20222.5 KiB7870

speed.cH A D03-May-202215.1 KiB510323

swapproc.cH A D03-May-20227.5 KiB248183

testf77.fH A D12-Aug-202078.3 KiB2,4891,830

testf77.outH A D12-Aug-202032.6 KiB747691

testprog.cH A D03-May-202283.9 KiB2,5901,867

testprog.outH A D12-Aug-202031.5 KiB798738

testprog.tptH A D12-Aug-2020396 1311

vmsieee.cH A D03-May-20223.7 KiB131102

wcssub.cH A D03-May-202234.4 KiB1,044710

wcsutil.cH A D03-May-202216.4 KiB503375

winDumpExts.makH A D12-Aug-20204.2 KiB192145

windumpexts.cH A D03-May-202212.7 KiB505339

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.  CFITSIO should compile and run on most Unix platforms without
16modification, except that Cray supercomputers computers are currently not
17supported.  The CFITSIO library is built on Unix systems by typing:
18
19 >  ./configure [--prefix=/target/installation/path]
20 >  make          (or  'make shared')
21 >  make install  (this step is optional)
22
23at the operating system prompt.  The configure command customizes the
24Makefile for the particular system, then the `make' command compiles the
25source files and builds the library.  Type `./configure' and not simply
26`configure' to ensure that the configure script in the current directory
27is run and not some other system-wide configure script.  The optional
28'prefix' argument to configure gives the path to the directory where
29the CFITSIO library and include files should be installed via the later
30'make install' command. For example,
31
32   > ./configure --prefix=/usr1/local
33
34will cause the 'make install' command to copy the CFITSIO libcfitsio file
35to /usr1/local/lib and the necessary include files to /usr1/local/include
36(assuming of course that the  process has permission to write to these
37directories).
38
39All the available configure options can be seen by entering the command
40
41   > ./configure --help
42
43On VAX/VMS and ALPHA/VMS systems the make.com command file may be used
44to build the cfitsio.olb object library using the default G-floating
45point option for double variables.  The make\_dfloat.com and make\_ieee.com
46files may be used instead to build the library with the other floating
47point options.
48
49A precompiled DLL version of CFITSIO is available for IBM-PC users of
50the Borland or Microsoft Visual C++ compilers in the files
51cfitsiodll_xxxx_borland.zip and cfitsiodll_xxxx_vcc.zip, where 'xxxx'
52represents the current release number.  These zip archives also
53contains other files and instructions on how to use the CFITSIO DLL
54library. The CFITSIO library may also be built from the source code
55using the makefile.bc or makefile.vcc  files.  Finally, the makepc.bat
56file gives an example of  building CFITSIO with the Borland C++ v4.5
57compiler using simpler DOS commands.
58
59Instructions for building CFITSIO on Mac OS can be found in
60the README.MacOS file.
61
62TESTING CFITSIO
63---------------
64
65The CFITSIO library should be tested by building and running
66the testprog.c program that is included with the release.
67On Unix systems, type:
68-
69    % make testprog
70    % testprog > testprog.lis
71    % diff testprog.lis testprog.out
72    % cmp testprog.fit testprog.std
73-
74 On VMS systems,
75(assuming cc is the name of the C compiler command), type:
76-
77    $ cc testprog.c
78    $ link testprog, cfitsio/lib
79    $ run testprog
80-
81The testprog program should produce a FITS file called `testprog.fit'
82that is identical to the testprog.std FITS file included in this
83release.  The diagnostic messages (which were piped to the file
84testprog.lis in the Unix example) should be identical to the listing
85contained in the file testprog.out.  The 'diff' and 'cmp' commands
86shown above should not report any differences in the files.
87
88USING CFITSIO
89-------------
90
91The CFITSIO User's Guide, contained in the files cfitsio.doc (plain
92text file) and cfitsio.ps (postscript file), provides detailed
93documentation about how to build and use the CFITSIO library.
94It contains a description of every user-callable routine in the
95CFITSIO interface.
96
97The cookbook.c file provides some sample routines for performing common
98operations on various types of FITS files.  Programmers are urged to
99examine these routines for recommended programming practices when using
100CFITSIO.  Users are free to copy or modify these routines for their own
101purposes.
102
103Any problem reports or suggestions for
104improvements are welcome and should be sent to the HEASARC
105help desk.
106
107-------------------------------------------------------------------------
108William D. Pence
109HEASARC, NASA/GSFC
110

README.MacOS

1By default, the CFITSIO library will be a "Universal Binary" (i.e.
232- and 64-bit compatible) under Mac OS X when built in the standard
3way, i.e.
4
5- tar xzf cfitsio3370.tar.gz (or whatever version this is)
6- cd cfitsio/
7
8- ./configure
9- make
10- make install
11
12---------------------------------------------------------------------
13To install CFITSIO using MacPorts:
14---------------------------------------------------------------------
15
16If you have MacPorts installed, you may install CFITSIO simply with
17the command
18
19  $ sudo port install cfitsio +universal
20
21For more information, please visit:
22
23http://macports.org
24https://trac.macports.org/browser/trunk/dports/science/cfitsio/Portfile
25
26---------------------------------------------------------------------
27To install CFITSIO using Homebrew:
28---------------------------------------------------------------------
29
30If you have Homebrew installed, you may install CFITSIO simply with
31the command
32
33  $ brew install cfitsio
34
35For more information, please visit:
36
37http://brew.sh
38http://brewformulas.org/Cfitsio
39
40---------------------------------------------------------------------
41To build CFITSIO using the XCode GUI:
42---------------------------------------------------------------------
43
44- tar xzf cfitsio3370.tar.gz (or whatever version this is)
45- cd cfitsio/
46
47- Start Xcode and open cfitsio.xcodeproj/project.pbxproj,
48  or just "open" the file from a terminal command line,
49
50   $ open cfitsio.xcodeproj/project.pbxproj
51
52  and this will start up XCode for you.
53
54- Press the Build (or "Play") button in the upper left
55  corner of the GUI.
56
57---------------------------------------------------------------------
58---------------------------------------------------------------------
59
60Below, are the old (and now obsolete) instructions for building CFITSIO
61on classic Mac OS-9 or earlier versions:
62
631. Un binhex and unstuff cfitsio_mac.sit.hqx
642. put CFitsioPPC.mcp in the cfitsio directory.
652. Load CFitsioPPC.mcp into CodeWarrior Pro 5 and make.
66   This builds the cfitsio library for PPC.  There are also targets for both
67   the test program and the speed test program.
68
69To use the MacOS port you can add Cfitsio PPC.lib to your Codewarrior Pro 5
70project.  Note that this only has been tested for the PPC. It probably
71won't work on 68k macs.  Also note that the fortran bindings aren't
72included.  I haven't worked with the codewarrior f2c plugin so I don't know
73how these would work.  If one is interested, please write and I can look
74into this.
75
76

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