> On Linux (and probably Mac) something like this would pull out the number of timepoints directly:
> $ fslinfo newfile2.nii | grep "^dim4" | awk '{print $2}’
Or simply: “fslval image.nii dim4”
Cheers
Saad
> 225
>
> -Mike
>
> --
> Mike Angstadt
> Research Computer Specialist / PANLab Lab Manager
> Department of Psychiatry / University of Michigan
> (734) 936-8229
>
>> -----Original Message-----
>> From: FSL - FMRIB's Software Library [mailto:[log in to unmask]] On
>> Behalf Of Jon Anderson
>> Sent: Thursday, March 03, 2016 4:37 PM
>> To: [log in to unmask]
>> Subject: [FSL] 3D vs 4D nifti file
>>
>> Dear experts,
>> How can I differentiate between 3D and 4D nifti files(3D+time). In other
>> words is there any command line that can show me if a nifti file is 3D or 4D
>>
>> Thanks for any advice.
>> Jon
> **********************************************************
> Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues
|