[Numpy-discussion] Loading large NIfTI file -> MemoryError

Amira Chekir chekir.amira at gmail.com
Tue Dec 31 08:13:57 EST 2013


Hello together,

I try to load a (large)  NIfTI file (DMRI from Human Connectome Project,
about 1 GB) with NiBabel.

import nibabel as nib
img = nib.load("dmri.nii.gz")
data = img.get_data()

The program crashes during "img.get_data()" with an "MemoryError" (having 4
GB of RAM in my machine).

Any suggestions?

Best regards,
AMIRA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20131231/b13969b3/attachment.html>


More information about the NumPy-Discussion mailing list