[pymvpa] writing a NIfTI file from PyMVPA

Jo Etzel j.a.etzel at med.umcg.nl
Thu Mar 12 14:55:20 UTC 2009


I would like to write a NifTI (or even better, Analyze img/hdr format; 
but I can convert a NifTI file of course) from within PyMVPA. Is there 
an easy way to do this?

Specifically, I've been trying some variations of the searchlight_2d.py 
example with my own (3D) images, and would like to view the output 
(sl_map in the example) as a 3D image. I think that the

orig_sl_map = dataset.mapReverse(N.array(sl_map))
masked_orig_sl_map = N.ma.masked_array(orig_sl_map, mask=orig_sl_map == 0)

lines from the example put the sl_map into the right space, but I'm not 
sure what to do next.

Thanks in advance for your help,
Jo



More information about the Pkg-ExpPsy-PyMVPA mailing list