History of AFNI updates  

|
October 21, 2021 07:25AM
You do not need the -b variable:

for bash: 3dcalc -a betaCoefficients.nii.gz -b -expr 'a/$( cat referneceValue.1D)' >normalized betas.nii.gz
for tcsh or bash: 3dcalc -a betaCoefficients.nii.gz -b -expr 'a/`cat referneceValue.1D`' >normalized betas.nii.gz

This assumes that there is one and only one properly formatted number in referneceValue.1D
Subject Author Posted

how to divide each voxel in a 3d dataset by one number which is written to a file

carolin31 October 20, 2021 08:48PM

Re: how to divide each voxel in a 3d dataset by one number which is written to a file

Colm Connolly October 21, 2021 07:25AM

Re: how to divide each voxel in a 3d dataset by one number which is written to a file

rick reynolds October 21, 2021 09:03AM

Re: how to divide each voxel in a 3d dataset by one number which is written to a file

carolin31 October 22, 2021 01:10AM