Converting 4d (3d+t) BOLD image to 3d (2d+t) flat map?

@ptaylor, Thank you for pointing out my typo with ADNI, sure AFNI.

Yes I’m trying to found out how to project fmri activations/signals on freesurfer ?h.sphere files onto Mercator rectangular 2d grid with particular size.

This won’t work as it delivers “ragged” map. The only related solution I’ve found is the opposite operation in cart2sph.m. It seems that spherical coordinates should be encoded in 2d grid as sin(theta). Something related to this: