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  

|
April 18, 2018 02:15PM
It might be easier to use an "if" condition in your code to avoid looking for the given/missing file...

But is something like this (in tcsh syntax):
if ( ! -e EXPECTED_FILE_NAME ) then
 3dcalc -a SOMEFILE_OF_CORRECT_DIMENSIONS -expr '0' -prefix EXPECTED_FILE_NAME
endif
what you would want?

It requires that you 1) know the name of the output file in question ahead of time (which you likely do, from scripting it), and 2) know a file of correct dimensionality to use as a grid for your output (again, which I assume you would).

--pt
Subject Author Posted

all zero mask

rolinskira April 18, 2018 12:47PM

Re: all zero mask

ptaylor April 18, 2018 02:15PM