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  

|
June 15, 2006 10:27AM
Hi Sharon,

Sure, you can get a new time series like that in 2 steps.

1. Use 3dmaskave to get the mean and std. dev.

3dmaskave -mask mask+orig -sigma -quiet epi+orig > ave_sd.1D

2. Use 3dcalc to make your new timeseries.

3dcalc -a epi+orig -b ave_sd.1D'[0]' -c ave_sd.1D'[1]' \
-expr 'step(c)*(a-b)/c' -prefix epi_norm

So column 0 of ave_sd.1D is the mean, and that gets assigned
to the variable 'b' (and varies over time, only), and column 1 is
the stddev, and gets assigned to 'c' (and again, varies only over
time). The 'step(c)' is there just to make sure you don't divide
by zero.

Is this what you are looking for?

- rick

Subject Author Posted

how to calculate in another way

Sharon June 14, 2006 08:36PM

Re: how to calculate in another way

Fred Tam June 14, 2006 09:34PM

Re: how to calculate in another way

Sharon June 14, 2006 10:02PM

Re: how to calculate in another way

rick reynolds June 14, 2006 09:59PM

Re: how to calculate in another way

Sharon June 15, 2006 10:03AM

Re: how to calculate in another way

rick reynolds June 15, 2006 10:27AM

Re: how to calculate in another way

Sharon June 15, 2006 11:19AM

Re: how to calculate in another way

Sharon June 15, 2006 11:14AM