Changes between Initial Version and Version 1 of FITS


Ignore:
Timestamp:
Jul 13, 2018, 1:52:50 AM (6 years ago)
Author:
cmarmo
Comment:

Create a FITS buildHints page

Legend:

Unmodified
Added
Removed
Modified
  • FITS

    v1 v1  
     1= FITS =
     2
     3[https://fits.gsfc.nasa.gov/fits_home.html FITS] is the standard data format used in Astronomy.
     4It is endorsed by NASA and the International Astronomical Union.
     5
     6GDAL provides basic support of FITS via the [https://heasarc.gsfc.nasa.gov/fitsio/fitsio.html CFITSIO] library (see the [http://gdal.org/frmt_various.html#FITS FITS driver documentation]).
     7
     8= Building with CFITSIO =
     9
     10== Linux ==
     11
     12=== From source ===
     13
     14* Install CFITSIO headers from your distro (eg,  cfitsio-devel on Fedora; libcfitsio-dev on Debian/Ubuntu)
     15* Download the GDAL source in a gdal directory
     16
     17{{{
     18    $ cd gdal/gdal
     19
     20    $ ./autogen.sh
     21
     22    $ ./configure
     23
     24    $ make -j8 -s
     25
     26    $ sudo make install
     27}}}
     28
     29Your config.log will contain the following (depending on your distribution and install):
     30
     31{{{
     32EXTRA_INCLUDES='-I/usr/include/cfitsio '
     33
     34LIBS='-lcrypto -lexpat -ljasper -ljpeg -lgeotiff -ltiff -lpng -lcfitsio -lz -lpthread -lm -lrt -ldl  -lpcre'
     35}}}
     36
     37=== From distro (tested on Fedora and Debian/Ubuntu) ===
     38
     39* Install CFITSIO headers from your distro (eg,  cfitsio-devel on Fedora; libcfitsio-dev on Debian/Ubuntu)
     40* Install GDAL from your distro (eg gdal-libs on Fedora; libgdal on Debian/Ubuntu)
     41
     42CFITSIO is automatically detected and linked (sometimes a reboot is needed).
     43
     44==== NOTA BENE ====
     45
     46If you are interested in using GDAL in python be aware that some users report conflicts between the conda gdal installation and the compilation from source on linux.
     47
     48== Mac OS X ==
     49
     50GDAL installation on Mac OS X is described [https://trac.osgeo.org/gdal/wiki/BuildingOnMac here].
     51The [http://www.kyngchaos.com/software/frameworks#gdal_complete last version of the .dmg] is not linked against CFITSIO.
     52
     53=== From source ===
     54
     55(''thanks to Susan Borda'')
     56
     57* Install CFITSIO as described in the [https://legacy.gsfc.nasa.gov/docs/software/fitsio/fitsio_macosx.html official documentation]
     58* Download the GDAL source in a gdal directory
     59
     60{{{
     61    $ cd gdal/gdal
     62
     63    $ ./autogen.sh
     64
     65    $ ./configure
     66
     67    $ make -j8 -s
     68
     69    $ sudo make install
     70}}}