It looks like it's not reading that dataset at all. That might mean the OS can't find it because it hasn't finished being written yet. Consider adding a small delay before this 3dcopy command. Another approach is to make the reading and writing faster. pigz is the parallelized version of gzip that might help. AFNI format and NIFTI format work differently, so an AFNI format solution with .BRIK.gz might not show this problem. Chris Rorden came up with this improvement to the znzlib library used by NIFTI writing.
[
github.com]
Edited 1 time(s). Last edit at 09/06/2022 01:41PM by Daniel Glen.