AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
December 02, 2009 12:07PM
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

Subject Author Posted

concatenate NIFTI datasets

Yisheng Xu December 01, 2009 06:16PM

Re: concatenate NIFTI datasets

rick reynolds December 01, 2009 09:31PM

Re: concatenate NIFTI datasets

Yisheng Xu December 02, 2009 11:38AM

Re: concatenate NIFTI datasets

rick reynolds December 02, 2009 12:07PM