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  

|
January 26, 2018 11:47AM
Hi, Kirk-

That kind of syntax is the way to go, yes. But please note that if you have integers in your data set, then having:
3dcalc -a FILENAME -expr 'step(a-40)' -prefix NEWMASK
will actually only make a mask where the original values were *greater than* 40, and not include 40 itself. If you really want 40 and above for integers, I would write:
3dcalc -a FILENAME -expr 'step(a-39)' -prefix NEWMASK
For floating point numbers, the difference might not matter of including *exactly* 40.0000000 vs 40.0000001.

--pt
Subject Author Posted

Creating a mask filled only with 1/0

ssyong715 September 02, 2015 03:25AM

Adding a question

ssyong715 September 02, 2015 03:53AM

Re: Creating a mask filled only with 1/0

ptaylor September 02, 2015 04:28AM

Re: Creating a mask filled only with 1/0

ssyong715 September 02, 2015 01:56PM

Re: Creating a mask filled only with 1/0

Kirk January 26, 2018 10:55AM

Re: Creating a mask filled only with 1/0

Kirk January 26, 2018 11:01AM

Re: Creating a mask filled only with 1/0

ptaylor January 26, 2018 11:47AM