PyNIfTI - Pythonic access to NIfTI and ANALYZE files

### Navigation

- index
- NIfTI Libraries |
- PyNIfTI Home |
- Documentation »

The PyNIfTI module is a Python interface to the NIfTI I/O libraries. Using PyNIfTI, one can easily read and write NIfTI and ANALYZE images from within Python. The `NiftiImage` class provides pythonic access to the full header information and for a maximum of interoperability the image data is made available via NumPy arrays.

# Documentation

- User Documentation (the documentation)
- Installation Instructions
- Development Changelog (see what has changed)
- Module Reference (user-oriented reference, less complex than full API docs)
- Index (access by keywords)
- Search Page (online and offline full-text search)

# Author and License

PyNIfTI is written and maintained by Michael Hanke. The author is grateful to the following people who have contributed to PyNIfTI (in order of appearance):

- Yaroslav O. Halchenko
- Chris Burns
- Gaël Varoquaux

PyNIfTI is free-software (beer and speech) and covered by the MIT License. This applies to all source code, documentation, examples and snippets inside the source distribution (including this website). Please see the appendix of the manual for the copyright statement and the full text of the license.

# Download

## Binary packages

Binary packages are available for:

- Debian and Ubuntu (installation instructions)

    PyMVPA is an official Debian package (python-nifti). Additionally, backports for some Debian and Ubuntu releases are also available. Please read the package repository instructions to learn about how to obtain them.

- RPM-based GNU/Linux distributions (installation instructions)

    RPM packages are provided through the OpenSUSE Build Service. The currently supported distributions include: CentOS 5, Fedora 9-10, Mandriva 2007-2008, RedHat Enterprise Linux 5, SUSE Linux Enterprise 10, OpenSUSE 10.2 up to 11.0. The build service supports RPM-package repositories (Suse and Mandriva-related and Fedora, Redhat and CentOS-related) and 1-click-installations.

- MacOS X (installation instructions)

    PyNIfTI is available from the MacPorts framework.

- Windows (installation instructions)

    An installer for Python 2.5 is available from the download area.

If there are no binary packages for your particular operating system or platform, you need to compile your own. The manual contains instructions to build PyNIfTI in various environments.

## Source code

Source code tarballs of PyNIfTI releases are available from the download area. Alternatively, one can also download a tarball of the latest development snapshot (i.e. the current state of the master branch of the PyNIfTI source code repository).

To get access to both the full PyNIfTI history and the latest development code, the PyNIfTI Git repository is publicly available. To view the repository, please point your webbrowser to gitweb: http://git.debian.org/?p=pkg-exppsy/pynifti.git

To clone (aka checkout) the PyNIfTI repository simply do:

    git clone git://git.debian.org/git/pkg-exppsy/pynifti.git

After a short while you will have a pynifti directory below your current working directory, that contains the PyNIfTI repository.

More detailed instructions on installation requirements and on how to build PyNIfTI from source are provided in the manual.

# Support

If you have problems installing the software or questions about usage, documentation or something else related to PyNIfTI, you can post to the PyNIfTI mailing list.

Mailing list: | pkg-exppsy-pynifti@lists.alioth.debian.org [subscription, archive]

It is recommended that all users subscribe to the mailing list. The mailing list is the preferred way to announce changes and additions to the project. The mailing list archive can also be searched using the mailing list archive search located in the sidebar of the PyNIfTI home page.

### Navigation

- index
- NIfTI Libraries |
- PyNIfTI Home |
- Documentation »