Git repository for the PyFITS project; PyFITS is still actively maintained in SVN, but this repository exists to ease the migration into AstroPy (
C Python Other
Pull request Compare This branch is 221 commits behind spacetelescope:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


See the Users Guide and API documentation hosted at

Important notice regarding the future of PyFITS

All of the functionality of PyFITS is now available in `Astropy
<>`_ as the `
<>`_ package, which is now
publicly available. Although we will continue to release PyFITS separately in
the short term, including any critical bug fixes, we will eventually stop
releasing new versions of PyFITS as a stand-alone product. The exact timing of
when we will discontinue new PyFITS releases is not yet settled, but users
should not expect PyFITS releases to extend much past early 2014. Users of
PyFITS should plan to make suitable changes to support the transition to
Astropy on such a timescale. For the vast majority of users this transition is
mainly a matter of changing the import statements in their code--all APIs are
otherwise identical to PyFITS.  STScI will continue to provide support for
questions related to PyFITS and to the new `` package`` in

PyFITS is now on GitHub at:

To report an issue in PyFITS, please create an account on GitHub and submit
the issue there, or send an e-mail to  Before submitting an
issue please search the existing issues for similar problems.  Before asking
for help, please check the PyFITS FAQ for answers to your questions:

The latest source code can be checked out from git with::

  git clone

An SVN mirror is still maintained as well::

  svn checkout

For Packagers
As of version 3.2.0 PyFITS supports use of the standard CFITSIO library for
compression support.  A minimal copy of CFITSIO is included in the PyFITS
source under cextern/cfitsio.  Packagers wishing to link with an existing
system CFITSIO remove this directory and modify the setup.cfg as instructed
by the comments in that file.  CFITSIO support has been tested for versions
3.08 through 3.30.  The earliers known fully working version is 3.09.  Version
3.08 mostly works except for a bug in CFITSIO itself when decompressing some
images with BITPIX=-64.  Earlier versions *may* work but YMMV.  Please send in
any results of experimentation with other CFITSIO versions.