Python package to access a cacophony of neuro-imaging file formats
Python Other
Switch branches/tags
Clone or download
effigies Merge pull request #655 from MichielCottaar/opt_genfromtxt
Speed up reading of CIFTI's: replace genfromtxt with loadtxt
Latest commit 897eb31 Aug 7, 2018
Failed to load latest commit information.
bin Merge branch 'master' into nf-nib-diff Jun 3, 2018
doc Fix in coordinate_systems tutorial Jul 9, 2018
nibabel-data Added test data as submodule Aug 15, 2016
nibabel Merge pull request #655 from MichielCottaar/opt_genfromtxt Aug 7, 2018
nisext RF: refactor to use info variable reader Jan 25, 2017
tools FIX: Use SSH address to use key-based auth Nov 23, 2017
.coveragerc COV: Omit tests, drop obsolete omissions Mar 9, 2018
.gitattributes BF - refactor / bugfix versioning system, add test script Aug 15, 2010
.gitignore moving more cmdline things to the cmdline folder Mar 29, 2018
.gitmodules Added submodule for CIFTI2 testing Aug 15, 2016
.mailmap MAINT: Update changelog, authors Nov 23, 2017
.travis.yml changed travis appveyor utils per test errors Apr 25, 2018
AUTHOR MAINT: update authors preparing for release Aug 9, 2016
COPYING RF+NF: Use OrderedDict and OrderedSet in Recoder Jul 18, 2018
Changelog DOC: Update changelog with release date Jun 12, 2018 BF: add requirements.txt to Nov 9, 2015
Makefile Add more PHONY target to Makefile Jun 28, 2017 MISC - deleting clib build from windows Makefile Jul 25, 2010
README.rst DOC: add advice for citing nibabel Aug 25, 2016
TODO DOC: remove refactoring old ideas, add to TODO Jul 31, 2014
appveyor.yml combined into one line Jun 28, 2018
dev-requirements.txt noted hypothesis need for tests, refactored diff_dicts name Dec 16, 2017
doc-requirements.txt MAINT: correct build requires sphinx 1.5 Jul 19, 2017
requirements.txt Update numpy minimum version Jun 13, 2017 Merge branch 'master' into nf-nib-diff Jun 3, 2018 STY: autoflake on source code. Feb 5, 2016
tox.ini STY: fix up pep8 failures. Feb 12, 2016



Read / write access to some common neuroimaging file formats

This package provides read +/- write access to some common medical and neuroimaging file formats, including: ANALYZE (plain, SPM99, SPM2 and later), GIFTI, NIfTI1, NIfTI2, MINC1, MINC2, MGH and ECAT as well as Philips PAR/REC. We can read and write FreeSurfer geometry, annotation and morphometry files. There is some very limited support for DICOM. NiBabel is the successor of PyNIfTI.

The various image format classes give full or selective access to header (meta) information and access to the image data is made available via NumPy arrays.


Current documentation on nibabel can always be found at the NIPY nibabel website.

Mailing Lists

Please send any questions or suggestions to the neuroimaging mailing list.


Install nibabel with:

pip install nibabel

You may also be interested in:


Nibabel is licensed under the terms of the MIT license. Some code included with nibabel is licensed under the BSD license. Please see the COPYING file in the nibabel distribution.

Citing nibabel

Please see the available releases for the release of nibabel that you are using. Recent releases have a Zenodo Digital Object Identifier badge at the top of the release notes. Click on the badge for more information.