[Neuroimaging] Should we prefer nii.gz or nii?

Alexandre ABRAHAM abraham.alexandre at gmail.com
Mon Aug 31 09:38:43 CEST 2015


Hi Michael,

Do others have thoughts about the relative merits of compressed vs.
> uncompressed files?
>

This is a choice that depends heavily on the usage and the underlying
hardware. As an example, nii is faster on my laptop, since I have a SSD. On
my desktop, niigz tends to be faster but, for some tasks, I use nii because
I want the data to be memmapped. On our cluster, I made some benchs and nii
is the winner. That also depends if your processing is IO-bound or
CPU-bound.

What would be very useful though is to be able to read niigz files by
chuncks. With nii, it's easy: the data is memapped so I don't need special
processing. But if an uncompressed niigz file does not fit in memory, it
would be good to still be able to process it online. I have code for that
but it is very specific to my usage.

Alex.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20150831/42e343b5/attachment.html>


More information about the Neuroimaging mailing list