gunzip *.nii.gz should also do the trick
Best
Torben
P.S. As it can be seen on the page: http://nifti.nimh.nih.gov/nifti-1/
not all programs that support NIFTI supports gzipped nii files :-)
Den 15/12/2009 kl. 16.43 skrev Gwenaëlle DOUAUD:
> Hi,
>
> fslchfiletype -h should help...
> A bit of shell scripting as well: http://fsl.fmrib.ox.ac.uk/fslcourse/lectures/scripting/
>
> Anyhoo:
>
> for g in *.nii.gz; do
> fslchfiletype NIFTI $g
> done
>
> But I'm really not sure why you would need to change the file type
> to uncompressed nifti...
>
> Cheers,
> Gwenaelle
>
>
> --- En date de : Mar 15.12.09, Daniel Campbell-Meiklejohn <[log in to unmask]
> > a écrit :
>
>> De: Daniel Campbell-Meiklejohn <[log in to unmask]>
>> Objet: [FSL] very simple fslchfiletype question
>> À: [log in to unmask]
>> Date: Mardi 15 Décembre 2009, 15h31
>> Heya
>>
>> Very simple question. I would like to convert all the
>> nii.gz files in a directory to .nii.
>>
>> fslchfiletype NIFTI * only
>> changes the first file in the directory and leaves the
>> others in
>> their original format.
>>
>> Is there a way to make it convert ALL the files in the
>> directory?
>>
>> Cheers,
>> Dan
>>
>
>
>
|