Hi Ali,
If you have a text file tdata.1D that matches the grid
of gridset.nii, and you want to put the tdata.1D data
onto that grid, it can be done pretty simply, though
it is not so pretty.
Convert the 1D dataset to a 3D dataset (which requires
an extra 'mv' command - probably something we should
fix), and then use 3dcalc to make a new 4D dataset.
3dcopy -DAFNI_WRITE_1D_AS_PREFIX=Y tdata.1D t3data.3D
mv t3data.3D.1D t3data.3D
3dcalc -a gridset.nii -b t3data.3D -expr b -prefix newset.nii
How does that seem?
- rick