Whereami on MNI152_2009 template

AFNI version info (afni -ver): (Version AFNI_25.2.09 'Gordian I')

I would like to use the whereami function in the AFNI GUI on an MNI dataset (suma_MNI152_2009.tgz, downloaded from tgz)

However, the whereami function button appears greyed-out.

When I open AFNI GUI from another folder (another version of the same dataset), I am able to use the whereami. So it appears the issue is not related to my AFNI setup but instead related to the dataset.

I noticed AFNI opens the MNI152_2009_SurfVol.nii+tlrc in the folder that works. On the other hand, it opens MNI152_2009_SurfVol.nii+orig in the folder where whereami does not work.

So tried applying 3drefit to the dataset, but it doesn't seem to change the file. (See terminal output below)

Do you have any idea why the 3drefit isn't working?
And is this the solution to get the whereami function working?

3drefit -view tlrc MNI152_2009_SurfVol.nii
++ 3drefit: AFNI version=AFNI_24.0.01 (Jan 11 2024) [64-bit]
++ Authored by: RW Cox
++ Processing AFNI dataset MNI152_2009_SurfVol.nii
 + changing dataset view code
 + Didn't make any changes for dataset MNI152_2009_SurfVol.nii !
++ 3drefit processed 1 datasets

Howdy-

This was an oversight on our part. FreeSurfer doesn't appear to propagate the header codes that signify the input data are in template space. So, we have to reattach those afterwards, but hadn't done so.

We have now reattached that information, and whereami_afni on the command line and "Where Am I?" from right-clicking in an image panel in the GUI now work with this and all other suma_* reference space downloads.

Re. 3drefit: You are close with what needs to be done, but there are actually 2 pieces of header info that should be set simultaneously: the space and the AFNI view of the space. What I did was pluck both these pieces of information from the original dataset with 3dinfo:

set space    = `3dinfo -space ${refset}`
set av_space = `3dinfo -av_space ${refset}`

... and then reattach those to each volumetric dataset with 3drefit:

3drefit -space ${space} -view ${av_space} ${dset}

But you don't need to do that---I would just recommend downloading the updated+fixed versions of the download directory. In your case, this should be doable with:

curl -O https://afni.nimh.nih.gov/pub/dist/tgz/suma_MNI152_2009.tgz

... or by clicking on that package name through the webbrowser page you listed above.

Please let us know how that goes now, and thanks for pointing that out.

--pt

Now it is working for me. Thank you!