Hi,

Sorry, another question on make_average_surface.

after averaging the curvatures and the surfaces, the script moves to the surf directory:
    cd ${SUBJECTS_DIR}/${average_subject}/surf
However, it does not return to the top directory before the second iteration of the foreach hemi (lh rh) loop. This gives me the following output when processing the rh:
MRISwriteCurvature: could not open ../average/surf/rh.avg_sulc

This suggests that MRISwriteCurvature expects to be one directory below the subjects directory.

Finally, my question:
Would it be better to modifiy the script so that the first command in the foreach hemi (lh rh) loop is
    cd ${SUBJECTS_DIR}/${average_subject}
?

+glenn
-- 

I want to go farther, farther!

          A. E. L.

>  Glenn Lawyer                   <
>  +352 061 967 244               <
>  Instituttgruppe for psykiatri  <
>  Postboks 1130 Blindern         < 
>  0318 Oslo                      <
<  http://folk.uio.no/davidgl     >
<><><><><><><><><><><><><><><><><:)