Thanks very much! I have a related question: sorry if this question is not well-formed. I am happy to clarify further.
Is it possible to replace an array in the NIFTI image with another array? For instance, say that I would like to replace the dataset in rall_func_REML+orig[4] (i.e. the fourth index of the seven indices in 80x80x33x1x7) with another array.
This question is coming up because I am doing calculations elsewhere (in R) and was previously using oro.nifti to change the slots. However, it turns out, based on your response here that that package does not correctly follow the standard completely, and this is creating problems in reading it back using AFNI/SUMA which I use for display.
Thanks again!
Best wishes,
Ranjan