Hi Tim,
Thank you for taking a look at my script, I really appreciate it. I am now running into another problem. After re-sampling into fs_average space I am attempting to visualize that file as an overlay in tksurfer or freeview (freesurfer visualization tools) however I receive the following error:
mriseadGIFTIfile: mris is NULL! found when parsing file rh.43242.32k_TJH_fsavg.func.gii. I know that freesurfer can handle GIFTI file so that is not the problem. I wonder if the GIFTI file was created incorrectly...