¥Calculate the mean value at each node from 3 subjects:
Ð1deval -a 'DataSurf_s1.1D.dset[6]' \
Ð -b 'DataSurf_s2.1D.dset[6]' \
Ð -c 'DataSurf_s3.1D.dset[6]' \
Ð -expr '(a + b + c) / 3' \
Ð -index 'DataSurf_s1.1D.dset[0]' \
Ð > DataSurf_mean.1D.dset
¥1deval works much like 3dcalc but with 1D files
Ð-index option allows the
addition of an index column (node indices) to the output.
ÐDataSurf_mean.1D.dset will
contain 2 columns: node index and mean value
¥Appreciate why we forced an output for all node indices
¥Things to be careful about:
Ð1D files do not explicitly encode domain information
¥Up to you to make sure that the i th entry in all 1D files corresponds to the
same node.
¥You must have the same number of values in all files