Print

Print


Dear Nele,
Besides what Volkmar has said, you can also write 'Inf' in the frame textbox and it will pick up all images in the file.

Dani

El dt., 20 nov. 2018 , 06:07, Flandin, Guillaume <[log in to unmask]> va escriure:

Dear Nele,


There are two things going on here. The first one is about selecting all of the frames of the 4D file in the Normalise:write batch. One way to fix this is to do as Volkmar described, see also:

  https://en.wikibooks.org/wiki/SPM/Working_with_4D_data

or to change your script to remove the ",1" at the end of the NIfTI filename:

  matlabbatch{1}.spm.spatial.normalise.write.subj.resample = {'C:\......\rfunctional4D.nii'};

The second issue is that there is a bug in SPM given that, even if you didn't select your data the way it should have been, a NIfTI file with an invalid header was created. I hope to fix it shortly.


Best regards,

Guillaume.


From: SPM (Statistical Parametric Mapping) <[log in to unmask]> on behalf of Volkmar Glauche <[log in to unmask]>
Sent: 20 November 2018 12:02:05

To: [log in to unmask]
Subject: Re: [SPM] error:image file is smaller than described in header
 
Dear Nele,
in SPM the file selector will by default only list the 1st frame of
each dataset. To view/select all 250 frames, enter 1:250 into the
frames textbox below the file list.
Hope this helps,
Volkmar

Am Montag, den 19.11.2018, 14:56 +0000 schrieb Nele De Bruyn:
> Dear Volkmar,
>
> Thank you for your suggestion;
> I have never received an error concerning out of disk space.
> Now I have a new problem where I can open the normalized file, but it
> consists of 1 volume instead of 250 volumes.
> I don't know what I have done differently compared to before but
> that's probably because I'm new to the program
> Any suggestions for that?
>
> Thank you very much!
> Best,
> Nele
>
> -----Original Message-----
> From: SPM (Statistical Parametric Mapping) <[log in to unmask]> On
> Behalf Of Volkmar Glauche
> Sent: maandag 19 november 2018 15:46
> To: [log in to unmask]
> Subject: Re: [SPM] error:image file is smaller than described in
> header
>
> Dear Nele,
> did you notice any error while writing the normalised data to disk? A
> simple explanation of "file too small" errors would be that there was
> a problem writing data to disk (out of disk space/quota, disk
> unavailable, concurrent access to a 4D NIFTI file).
> Best,
> Volkmar