Block-03-02 - AUTOREGISTER IMAGES - BATCH

##########################################################################
##                                                                      ##
##                             BLOCK 03-02                              ##
##                         AUTOREGISTER - BATCH                         ##
##                                                                      ##
##########################################################################

## This block batch autoregisters images contained in lsupport/PICTLIST.TXT

## Assumptions:
## User has invoked a Bourne-Again Shell (bash) on ormacsrv1.lpl.arizona.edu
## User is a member of the group OREX\spc
## User has set up a skeleton directory in the following format:
## /SPC_Test/F3G-Nav/
##                   ORex/
##                            DATA/
##                   base/
##                            IMAGEFILES/
##                            SHAPEFILES/
##                   lsupport/
##                   orig/
##                   results/
##                   test/
## User has completed the processing steps comprising Block 01-01 - TEST DIRECTORY
## SET-UP - ORIG
## User has additionally populated the orig/ dircteory with test-specific images as per 
## Block 02-01 / 02-02
## User has populated lsupport/PICTLIST-forRegistering.TXT with the correct subset of 
## images to register 
## User has registered images listed in lsupport/PICTLIST.TXT-forRegistering.TXT as per 
## Block 03-01 

## User inputs:
## testID: Name of the F3 test directory (for example, F3E-Limbs)
## dirID: Name of sub-directory in which to work (e.g. orig, or test)
## blockID: User-specified identifier for typescript textfile name 
##          (for example, Block-03-02-Autoregister-Images-01stInvocation-F3G-GenericImages)

# User inputs:
testID=F3G-Nav
dirID=orig
blockID=Block-03-02-Autoregister-Images-01stInvocation-F3G-GenericImages

# Set-Up
cd /SPC_Test/$testID/$dirID/
script
date
pwd
ls -l

# set-up batch autoregister files
cp lsupport/PICTLIST-forRegistering.TXT make_script.in
cat make_script.in
cp scripts/make_scriptA.seed .
cat make_scriptA.seed
make_scriptA
ls -l

# Batch autoregister images
ls -l /usr/local/bin/autoregister
nohup sh run_script.b &

# Monitor progress
ls -l *.INN *.OOT

# Check results
# Since early iterations are not masked - logEval picks up NO CORRS which are later eliminated
sh support/logEvalP.sh
cat logResults.txt 
cat lowImg.txt
cat redo.txt
convert TESTFILES/*.pgm TESTFILES/*.jpg
open TESTFILES/*.jpg
## [email protected]:
cp TESTFILES/*.jpg ~/send
# images inspected on home-machine
## END OF VARIANCE

# Fix uncorrelated images
.......

# Clean directory
sh rem_script.b
rm TESTFILES/*
rm nohup.out

# Block Complete
exit
# Save block log
if [ ! -d /SPC_Test/$testID/log ]; then
  mkdir /SPC_Test/$testID/log
fi
mv typescript /SPC_Test/$testID/log/log-typescript-${blockID}