We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:
https://discuss.afni.nimh.nih.gov
Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.
The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.
The 3dmaskdump program can do most of what you ask for. It is probably most convenient if you create a mask (using 3dmerge -1thresh, or 3dcalc, for example), then apply that to the dataset. If you want the x,y,z coordinates, the simplest current solution would be to create datasets with these value (via 3dcalc) and include that in the 3dmaskdump run.