3dNwarpApply getting "Killed"

Hello AFNI Gurus,

I was hoping to understand and remedy this break in afni_proc.py. The warp is being applied, but there are no error messages other than “Killed”. I appreciate any help on this issue,


3dNwarpApply -master XXXX-anat-stripped+tlrc -dxyz 2 -source pb01.XXXX.r01.tshift+orig -nwarp mat.r01.warp.aff12.1D blip_warp_For_WARP+orig -prefix rm.epi.nomask.r01
++ 3dNwarpApply: AFNI version=Debian-16.2.07~dfsg.1-5~nd16.04+1 (Jun 12 2017) [64-bit]
++ Authored by: Zhark the Warped
++ -master dataset is ‘XXXX-anat-stripped+tlrc’
++ output grid size = 2 mm
*+ WARNING: If you are performing spatial transformations on an oblique dset,
such as ./pb01.XXXX.r01.tshift+orig.BRIK,
or viewing/combining it with volumes of differing obliquity,
you should consider running:
3dWarp -deoblique
on this and other oblique datasets in the same session.
See 3dWarp -help for details.
++ Oblique dataset:./pb01.XXXX.tshift+orig.BRIK is 3.600000 degrees from plumb.
++ opened source dataset ‘pb01.XXXX.r01.tshift+orig’
++ Processing -nwarp
++ Warping: …Killed

I expect your command has run out of memory. 3dNwarpApply is particularly prone to this because of how it deals with large translations. I recommend moving the centers of the datasets over the center of the template as a separate step before starting the analysis with @Align_Centers

set base = ~/abin/HaskinsPeds_NL_template1.0+tlrc

copy all the original datasets to a new directory

mkdir dsetcopy
cd dsetcopy

cp T1w+orig.* .
cp allyourepidsets*+orig.* .

move the centers over

@Align_Centers -no_cp -base $base -dset T1w+orig -child allyourepi_dsets*+orig.*

Thank you Daniel, I will try this.