#! /bin/csh -f # # functcvm # # Original Author: Doug Greve # CVS Revision Info: # $Author: nicks $ # $Date: 2007/01/09 22:41:17 $ # $Revision: 1.2 $ # # Copyright (C) 2002-2007, # The General Hospital Corporation (Boston, MA). # All rights reserved. # # Distribution, usage and copying of this software is covered under the # terms found in the License Agreement file named 'COPYING' found in the # FreeSurfer source code root directory, and duplicated here: # https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferOpenSourceLicense # # General inquiries: freesurfer@nmr.mgh.harvard.edu # Bug reports: analysis-bugs@nmr.mgh.harvard.edu # set inputargs = ($argv); set VERSION = '$Id: functcvm,v 1.2 2007/01/09 22:41:17 nicks Exp $'; set funcstem = (); set xmatfile = (); set fmatfile = (); set fmatname = "F"; set PolyFitOrder = (); set tcvmfile = (); set mask = (); set maskval = 1; set normalize = 1; set monly = 0; if($#argv == 0) goto usage_exit; set n = `echo $argv | grep version | wc -l` if($n != 0) then echo $VERSION exit 0; endif goto parse_args; parse_args_return: goto check_params; check_params_return: set StartTime = `date`; set LF = $tcvmdir/functcvm.log if(-e $LF) mv $LF $LF.bak if($monly) then set QuitOnError = 0; else set QuitOnError = 1; set MLF = functcvm_sess_$$.m endif rm -f $MLF echo "Matlab file is $MLF" #----------------------------------------------------------------# tee $MLF > /dev/null < : temporal filter (def anme is F)" echo " -pf polyfitorder " echo " -mask maskstem : mask" echo " -maskval val : choose mask based on value (def=1)" echo " -nonorm : do not spatially normalize variance" echo " -tcvm tcvmfile : output file (matlab4)" echo "" echo " -umask umask : set unix file permission mask" echo " -version : print version and exit" exit 1; ############--------------################## arg1err: echo "ERROR: flag $flag requires one argument" exit 1 ############--------------##################