Hi, Chuck-
There is a program in AFNI called epi_b0_correct.py, mostly written by Vinai Roopchansingh:
[
afni.nimh.nih.gov]
That should help.
I forget if the way to use that directly with afni_proc.py is available yet. I will have to ping Rick.
--pt