<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi Emma,</p>
    <p>The problem is that wb_view only supports float32 while python
      likes to convert everything to float64. The produced gifti file
      opens normally in wb_view, when I convert your data to float32
      just before creating the data arrays (see attached file).</p>
    <p>Michiel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 12/04/2017 09:54, Emma Robinson
      wrote:<br>
    </div>
    <blockquote
cite="mid:CACnRk58jwJiuJUHURfDUvXGYUgMaeX2zyV2=7Okc62pik=i4BA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div dir="ltr">Hi
        <div><br>
        </div>
        <div>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:</div>
        <div><br>
        </div>
        <div>from wb_view</div>
        <div><br>
        </div>
        <div>
          <p style="margin:0px">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</p>
        </div>
        <div><br>
        </div>
        <div>from FSL</div>
        <div><br>
        </div>
        <div><span style="font-family:monospace"><span
              style="color:rgb(0,0,0)">terminate called after throwing
              an instance of 'GiftiException'
            </span><br>
             what():  Requested non-float data from float GIFTI field<br>
            <br>
          </span></div>
        <div>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</div>
        <div><br>
        </div>
        <div>Emma</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Neuroimaging mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Neuroimaging@python.org">Neuroimaging@python.org</a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/neuroimaging">https://mail.python.org/mailman/listinfo/neuroimaging</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>