split multi-brick bucket file

Hello ,

I was wondering if there was a way to split multi-brick bucket file into single sub-brick file? I have some output files from 3ddegreecentrality. Each of them has 2 sub-bricks. I have try fslsplit, but the output file still have 2 sub-bricks and cannot be recognized by spm and mricron.



You can use 3dTsplit4D (really designed for large files with lots of sub-bricks) or creative use of 3dTcat:

3dTcat -prefix newVol1.nii.gz oldVol+tlrc.HEAD[1]
3dTcat -prefix newVol2.nii.gz oldVol+tlrc.HEAD[2]

Hi Peter,

Thank you so much! It works!