Then you might want to use 3dcalc to "cheat" to some
degree. You can input a sequence of datasets to 3dcalc
(or any other AFNI program) by using quotes to contain
the list as a single item on the command line. Then
tell 3dcalc to try and not change the data, but to
recompute a global scalar and output the data as shorts.
e.g.
3dcalc -a "r1.nii r2.nii r3.nii" -expr a -prefix all.nii \
-gscale -datum short
Note that 3dinfo will still claim this data as float,
since it would be converted upon reading by AFNI. But
it is still stored as shorts, as show by nifti_tool:
nifti_tool -disp_hdr -infiles all.nii
For the 'datatype' field, look for a value of 4, which
corresponds to NIFTI_TYPE_INT16.
- rick