Sounds like a very elegant way to do it.
Unfortunately the 3dWarp program runs for a while ends without any error messages and writes the file. When I open that in AFNI, all voxel values are zero.
I'll do some more tracking the issue to be able to say more, but if you have any suggestions at that point, I appreciate it!
Thank you,
Wolfgang