I'm trying to refer to the maximum value from a brik in a 3dcalc expression. However, when I try to use the max function with one parameter -- the dataset -- it says I am missing a parameters. I've tried to supply a variety of numerical second parameters, but it always writes all 0s to the resulting brik.
Am I correct in thinking that this max() function that the 3dcalc man file refers to is the same max in 3dbrickstat -max?
If so, where is this second parameter documented and what does it refer to?
If that fails how can I supply numerical variables in a bash script that the 3dcalc command won't object to? I've tried a few ways that echo a well formed string but 3dcalc yells at me.
Thanks,
Andrew