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  

|
Peggy Christidis
May 17, 2004 12:10PM
Hi Lucy,

The AFNI program "3dTcat" can be used to split up and/or concatenate a time series dataset.

For instance, suppose you have a dataset called joe+orig, which contains 5000 time points (or sub-bricks). You can divide this big dataset into two smaller ones using 3dTcat. To do this, you would specify on the command line the sub-bricks you want included in your two smaller datasets. In this example, the first dataset could contain time points 0-2499 (AFNI begins its numbering of timepoints with "0") and the second one would contain timepoints 2500-4999:

3dTcat -prefix joe_firsthalf 'joe+orig[0-2499]'
3dTcat -prefix joe_secondhalf 'joe+orig[2500-4999]'

(Don't forget to include the single quotes on the command line)

Your output files would be:
joe_firsthalf+orig -- this would consist of the first 2500 time points
joe_secondhalf+orig -- this would consist of the last 2500 time points

------------------------------------

To concatenate them together, you would use 3dTcat like this:

3dTcat -prefix joe_all joe_firsthalf+orig joe_secondhalf+orig

The output would be joe_all+orig, which contains all 5000 time points.

For more information on this program, type "3dTcat -help"

Peggy

Subject Author Posted

Split data and concatenate data in time domain

Lucy Qiu May 17, 2004 11:26AM

Re: Split data and concatenate data in time domain

Gang Chen May 17, 2004 11:51AM

Re: Split data and concatenate data in time domain

Peggy Christidis May 17, 2004 12:10PM