Or even:
fslnvols image.nii
if you you’re interested in even less typing to get the same info :)
--
Michael Harms, Ph.D.
-----------------------------------------------------------
Conte Center for the Neuroscience of Mental Disorders
Washington University School of Medicine
Department of Psychiatry, Box 8134
660 South Euclid Ave.Tel: 314-747-6173
St. Louis, MO 63110Email: [log in to unmask]
On 3/3/16, 4:06 PM, "FSL - FMRIB's Software Library on behalf of Saad
Jbabdi" <[log in to unmask] on behalf of [log in to unmask]> wrote:
> 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
________________________________
The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
|