Hi, Xiaodan-
Sounds like you might want to use 3dBrickstat:
[
afni.nimh.nih.gov]
with the following option:
-percentile p0 ps p1 write the percentile values starting
at p0% and ending at p1% at a step of ps%
Output is of the form p% value p% value ...
Percentile values are output first.
Only one sub-brick is accepted as input with this option.
Write the author if you REALLY need this option
to work with multiple sub-bricks.
and you can choose whether to use the non-zero specifier, as well, for example.
Note that you can search by description/category through all AFNI programs here:
[
afni.nimh.nih.gov]
--pt