set num="1004"
#set runtype="nice +19"
set runtype="nice +19 mosrun -j9-16" 
set whichstart="spatfinalTP2S-${num}p"
set whichrun="TP2S-${num}q"
set whichout="TP2S-${num}q"
set outdir="/home/REMORSE/paciorek/output/spat/"
set whichmod="modTP2S"
#set whichmod="mod1"
set whichdata="P"
$runtype $whichmod ~/research/dat/logtempvar${whichdata}.dat ~/research/dat/lat${whichdata}.dat ~/research/dat/lon${whichdata}.dat  0 0  ~/research/dat/baseperm.dat ~/research/dat/baseinvp.dat ~/research/dat/yrs44b.dat ~/research/parmfiles/${whichstart}.dat ~/research/parmfiles/spatfinal${whichout}.dat ~/research/parmfiles/spatparm${whichrun}.dat ${outdir}spatout${whichout}.dat 3.14 stat 12 24 0 10 10 50 5 >& /home/REMORSE/paciorek/logfiles/log${whichout}&


foreach num ("1005" "1006" "1007")
#set runtype="nice +19"
set runtype="nice +19 mosrun -j12" 
set whichstart="spatfinalTP2S-${num}b"
set whichrun="TP2S-${num}c"
set whichout="TP2S-${num}c"
set outdir="/home/REMORSE/paciorek/output/spat/"
set whichmod="modnew"
#set whichmod="mod1"
set whichdata="P"
$runtype $whichmod ~/research/dat/logtempvar${whichdata}.dat ~/research/dat/lat${whichdata}.dat ~/research/dat/lon${whichdata}.dat  0 0  ~/research/dat/baseperm.dat ~/research/dat/baseinvp.dat ~/research/dat/yrs44b.dat ~/research/parmfiles/${whichstart}.dat ~/research/parmfiles/spatfinal${whichout}.dat ~/research/parmfiles/spatparm${whichrun}.dat ${outdir}spatout${whichout}.dat 3.14 stat 12 24 0 5000 1 100 1 >& /home/REMORSE/paciorek/logfiles/log${whichout}&
end
