Hi Leonard,
If you do not specify an output dataset type (via the
'-datum' option), then 3dcalc uses the type from the
first dataset on the command line.
In your case, your first dataset is the mask, which is
of type 'byte' which is
unsigned. So your output
dataset is unsigned.
An easy fix would be to switch the order of your
datasets in the 3dcalc command, putting Expt_...
first.
A alternate fix would be to explicitly specify the
output data type (such as '-datum short').
- rick