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  

|
March 12, 2019 04:12PM
To use to3d for reading in text files, consider this example where we dump some numbers as text into a file from a dataset and then read them back in with to3d.

# resample the dataset to a very coarse dataset just for an example here
3dresample -prefix TT_N27_junk_8.nii.gz -dxyz 8 8 8 -input TT_N27+tlrc
# dump the values of the dataset out to a text file
3dmaskdump -noijk TT_N27_junk_8.nii.gz > TT_N27_junk_8_ascii.txt
# get the number of rows, columns and slices to use for to3d
3dinfo TT_N27_junk_8.nii.gz
# read the data back in. The geomparent gives the orientation and origin of the data
to3d -prefix TT_N27_junk_copy.nii.gz -geomparent TT_N27_junk_8.nii.gz "3As:20:24:19:TT_N27_junk_8_ascii.txt"

Also consider using 3dUndump to do this (with data in the form of "x y z value" or "i j k value"). See this recent post for more information:
[afni.nimh.nih.gov]
Subject Author Posted

overlay functional volume data provided in text format but that is in MNI space

maitra March 12, 2019 01:44PM

Re: overlay functional volume data provided in text format but that is in MNI space

Daniel Glen March 12, 2019 04:12PM

Re: overlay functional volume data provided in text format but that is in MNI space

maitra March 15, 2019 02:59PM

Re: overlay functional volume data provided in text format but that is in MNI space

Daniel Glen March 15, 2019 04:17PM