[Neuroimaging] writing gifti files

Emma Robinson emma.robinson01 at gmail.com
Wed Apr 12 09:54:10 EDT 2017


Hi

I have a problem reading giftis that I write from nibabel. It works if I
replace the data with data taken straight out of another gifti data array,
but if I add a matrix of floats I am unable to read it into the HCP's
workbench viewer, not use the FSL gifti reader. I get the following error
messages:

from wb_view

Parse Error while reading /vol/medic01/users/ecr05/TESTINGRESULT2.func.gii:
Decoding of GZip Base64 Binary data failed.Decoded 0 bytes but should be 0
bytes. line number: 15 column number: 68831

from FSL

terminate called after throwing an instance of 'GiftiException'
 what():  Requested non-float data from float GIFTI field

I've attached some test code and the gifti file I tested it with. Any
suggestions of how to fix this would be appreciated, thanks

Emma
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20170412/22cebb6f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testgiftisave.py
Type: text/x-python
Size: 881 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20170412/22cebb6f/attachment-0001.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Q1-Q6_RelatedParcellation210.MyelinMap_BC_MSMAll_2_d41_WRN_DeDrift.32k_fs_LR.L.func.gii
Type: application/octet-stream
Size: 133495 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20170412/22cebb6f/attachment-0001.obj>


More information about the Neuroimaging mailing list