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  

|
Daniel Glen
June 15, 2011 06:29PM
I think you want something like this script. Save the script and run it as suggested below. The key to this is the sub-brick list can be used to specify the order to load the various sub-bricks. By alternating the sub-bricks between the lower and upper ranges, 3dTcat will make a new alternated dataset.

#!/bin/tcsh

# mkalt.csh
# tcsh mkalt.csh dset split_sb
#
# tcsh mkalt.csh spiral_in_out 165
set dset = $1
set split_sb = $2
set outprefix = `@GetAfniPrefix $dset`

# generate an alternating sub-brick list
set sbl = "0,$split_sb"
foreach sbi (`count -digits 1 1 $split_sb`)
set sba = `ccalc -int "$sbi+$split_sb"`
set sbl = `echo $sbl,$sbi,$sba`
end

# now spit out the jumbled list
3dTcat -prefix ${outprefix}_alt ${dset}"[$sbl]"
Subject Author Posted

Spiral in Spiral out data issue

Mehereen & Jon June 15, 2011 04:39PM

Re: Spiral in Spiral out data issue

Daniel Glen June 15, 2011 06:29PM

Re: Spiral in Spiral out data issue

rick reynolds June 15, 2011 06:51PM

Re: Spiral in Spiral out data issue

SarahChang April 27, 2018 03:55PM

Re: Spiral in Spiral out data issue

RWCox April 30, 2018 12:00PM

Re: Spiral in Spiral out data issue

Jonathan June 16, 2011 02:07AM