When you say "location", you mean (x, y, z) coordinate?
3dAutobox (which you may or may not want to use with the "-noclust" option) will tell you this information.
If you use the -extent option, you will see text output in terms of xyz coords for each of the FOV bounding box walls. The formatting of that isn't very clean for scripting, unfortunately (at the moment, there is only the "clean" list of 6 numbers dumped to a file for IJK values), so you might want to do the following:
1) make a new dset that has been autoboxed, and
2) use 3dinfo to report the specific P extent of the new, autoboxed dset:
#!/bin/tcsh
3dAutobox -prefix AAA.nii -input DSET
set ext = `3dinfo -Pextent AAA.nii`
echo "++ The furthest extent in the posterior direction is: $ext"
--pt
Edited 1 time(s). Last edit at 12/09/2019 05:29AM by ptaylor.