AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
February 19, 2009 04:07PM
Daniel,

I am having some issues with getting this script to work based on header attributes from 3dWarp. I'm using Version ID = AFNI_2008_07_18_1710. Do I need a newer version of afni for 3dWarp to use the same attributes as 3dWarpDrive?


@rotatevectorsallx1 F0001-0708.DTI.1.warp+orig bvecs_afni.1D
if ( F0001-0708.DTI.1.warp+orig == || F0001-0708.DTI.1.warp+orig == -help || F0001-0708.DTI.1.warp+orig == -h ) then
if ( 2 < 2 ) then
set dset = F0001-0708.DTI.1.warp+orig
set tensor1D = bvecs_afni.1D
1dcat bvecs_afni.1D
set ngrads = `cat rotatedgrads.1D|wc -l`
cat rotatedgrads.1D
wc -l
echo Number of gradients is 20
Number of gradients is 20
@ ngrads--
echo Dataset: F0001-0708.DTI.1.warp+orig
Dataset: F0001-0708.DTI.1.warp+orig
echo Gradient vectors: bvecs_afni.1D
Gradient vectors: bvecs_afni.1D
echo Rotating vectors...
Rotating vectors...
rm -f rotatedgrads.1D
set check = `wc tempmatvec.1D`
wc tempmatvec.1D
if ( 0 == 0 ) then
echo Looking for WARPDRIVE attribute instead
Looking for WARPDRIVE attribute instead
set check = `wc tempmatvec0.1D`
wc tempmatvec0.1D
if ( 0 == 0 ) then
echo No rotation matrix in header
No rotation matrix in header
goto END
Subject Author Posted

DTI deoblique

Megan February 17, 2009 11:57AM

Re: DTI deoblique

Daniel Glen February 17, 2009 01:57PM

Re: DTI deoblique

Megan February 19, 2009 02:47PM

Re: DTI deoblique

Daniel Glen February 19, 2009 03:28PM

Re: DTI deoblique

Megan February 19, 2009 04:07PM

Re: DTI deoblique

Daniel Glen February 19, 2009 04:52PM

Re: DTI deoblique

Megan February 19, 2009 06:34PM