#! /bin/tcsh -f

#
# morph_tables-lh
#
# REPLACE_WITH_ONE_LINE_SHORT_DESCRIPTION
#
# Original Author: REPLACE_WITH_FULL_NAME_OF_CREATING_AUTHOR
# CVS Revision Info:
#    $Author: nicks $
#    $Date: 2011/03/02 20:16:39 $
#    $Revision: 1.4 $
#
# Copyright © 2011 The General Hospital Corporation (Boston, MA) "MGH"
#
# Terms and conditions for use, reproduction, distribution and contribution
# are found in the 'FreeSurfer Software License Agreement' contained
# in the file 'LICENSE' found in the FreeSurfer distribution, and here:
#
# https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferSoftwareLicense
#
# Reporting: freesurfer@nmr.mgh.harvard.edu
#
#


pushd $SUBJECTS_DIR/$1/
touch NOTES
echo " " >> NOTES
echo $0 $* >> NOTES
whoami >> NOTES
date >> NOTES
hostname >> NOTES
popd


set hemi = lh

set SVIT_DIR    = $SUBJECTS_DIR/$1/svit
if (-e $SVIT_DIR == 0) \
    mkdir $SVIT_DIR ;\
endif

set SLF = $SVIT_DIR/$hemi.sphere.reg.svit.log
mri-structvits -subject $1 -umask 0 \
		-hemi $hemi -outdir $SVIT_DIR -can sphere.reg | tee -a $SLF
#mris_register -w 0 ../surf/$hemi.sphere $FREESURFER_HOME/average/$hemi.average.tif ../surf/$hemi.sphere.dist_new

popd

