Thanks very much for suggesting the matlab option - this appears to be working for me. FWIW, it would be great if at some point there was an AFNI tool that could do this... I'm one of those users who prefers to constrain my analysis path to shell scripts running stand-alone programs, and one of the great things about AFNI is how amenable it is to this.