I converted a BRIK and HEAD file to nifti using 3dAFNItoNIFTI. The resulting .nii file is more than 4 dimensions and can’t be read by some standard softwares, resulting in errors such as “Input data has incompatible dimensionality: Expected dimension is 4D and you provided a 5D image”. Is there a way to restrict the dimensions in the conversion or modify the header so it is 4D (x, y, z and time), perhaps with nifti_tool?
I tried “nifti_tool -mod_hdr -overwrite -infile 025_prob_trial_reg.nii -mod_field dim ‘4 64 64 1’” to overwrite the file with 4 dimensions, but that resulted in “** found 4 of 8 modify values”
With nifti_tool -disp_hdr -infiles 025_prob_trial_reg.niii I can see there are 8 dimensions.
If it is helpful, nifti_tool -check_hdr -infiles 025_prob_trial_reg.nii results in
'header IS GOOD for file 025_prob_trial_reg.nii"
and nifti_tool -check_nim -infiles 002_prob_trial_reg.nii results in
“nifti_image IS GOOD for file 025_prob_trial_reg.nii”