Hi Rick,
I just found this page from google when I tried to downsample my data.
Here is the script I'm writing:
3dcalc -a pb03.$subj.vol.r0$#indexrun.blur+orig"[0..$(2)]" \
-b pb03.$subj.vol.r0$#indexrun.blur+orig"[1..$(2)]" \
-expr '(a+b)/2' \
-prefix pb03b.$subj.vol.r0$#indexrun.downs+orig
However, it always gave my an error information "Illegal variable name" ....I used the same variable name for scaling. It worked, so I have no idea about what happened.
Could you plz help with that issue?
Many thanks,
sarah