Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2016-02-17 10:54:28
Size: 3573
Editor: BMittan
Comment:
Revision 3 as of 2016-02-17 11:43:19
Size: 2996
Editor: BMittan
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
This block additionally populates the F3 orig directory's IMAGEFILES/NOMINALS/ and SUMFILES/ sub-directories with Detailed Survey image files which are consistent across sub-tests in readiness for registering Detailed Survey images.
This block batch registers images contained in lsupport/PICTLIST.TXT.
Line 24: Line 23:
 * You have completed the processing steps in [[How to Test Directory Set-Up - ORIG]]
 (./) If we include version number in title, we have to include it in here, too, for link to work. Is there a workaround?
 (./) Need to figure out how we will refer to these (block number? name?) and if they should be links.
 * You have completed the processing steps in Block 01-01 [[How to Test Directory Set-Up - ORIG]]
 * You have populated the orig/ dircteory with test-specific images following the steps in:
  * Block 02-01 How to
  * Block 02-02 How to
 * You have populated lsupport/PICTLIST-forRegistering.TXT with the correct subset of images to register
Line 28: Line 32:
 * '''testID''' - Name of the F3 test directory (for example, ''F3E-Limbs'')
 * '''blockID''' - User-specified identifier for typescript textfile name (for example, ''Block-02-01-IngestImages-TestSpecific'')
 * '''testID''' - Name of the F3 test directory (for example, 'F3E-Limbs')
 * '''subTestID (if required)''' - Identifier for sub-test work (for example, 'F3G1')
 * '''dir
ID''' - Name of sub-directory in which to work (e.g. 'orig', or 'tes'')
 * '''blockID''' -
User-specified identifier for typescript textfile name (for example, 'Block-03-01-Register-Images-F3G-GenericImages')
Line 38: Line 44:
blockID=Block-02-01-IngestImages-TestSpecific #subTestID=F3G1
#subTestID=F3G2
#subTestID=F3G3
#subTestID=F3G4
#subTestID=F3G5
#subTestID=F3G6
subTestID=F3G7
dirID=test
#blockID=Block-03-01-Register-Images-F3G-GenericImages
blockID=Block-03-01-Register-Images-${subTestID}-Images
Line 41: Line 56:
cd /SPC_Test/$testID cd /SPC_Test/$testID/$dirID/
Line 47: Line 62:
## VARIANCE-F3G: # set-up batch register files
cp lsupport/PICTLIST-forRegistering.TXT make_script.in
cat make_script.in
cp scripts/make_scriptR.SEED make_scriptR.seed
cat make_scriptR.seed
make_scriptR
ls -l
Line 49: Line 70:
# Populate base/IMAGEFILES/ with Detailed Survey test image files
rsync -ha base/F3G-IMAGEFILES/M60* base/IMAGEFILES/
rsync -ha base/F3G-IMAGEFILES/P60* base/IMAGEFILES/
ls -l base/IMAGEFILES/
# Batch register images
register -v
nohup sh run_script.b &
Line 54: Line 74:
# Populate orig/NOMINALS/ with Detailed Survey MapCam image nominals
rsync -ha base/F3G-DSM-NOMINALS/M60* orig/NOMINALS/
ls -l orig/NOMINALS
# Monitor progress
ls -l *.INN *.OOT
Line 58: Line 77:
# Populate orig/SUMFILES/ with Detailed Survey MapCam image sumfiles
rsync -ha base/F3G-DSM-SUMFILES/M60* orig/SUMFILES/
ls -l orig/SUMFILES
# Check results
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
Line 64: Line 89:
# Generate lsupport/PICTLIST.TXT
ls base/IMAGEFILES/M* | cut -d '/' -f 3 | cut -d '.' -f 1 > lsupport/PICTLIST.TXT
ls base/IMAGEFILES/P* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLIST.TXT
sed -i -e 's/^/ /' lsupport/PICTLIST.TXT
echo END >> lsupport/PICTLIST.TXT
## VARIANCE-F3G:
# App and PS MapCam and PolyCam images and DS MapCam images
# in the region-of-interest only
awk '/M/ { print $1 }' lsupport/PICTLIST-TAG1-100mx100m.TXT > lsupport/PICTLIST.TXT
awk '/P59/ { print $1 }' lsupport/PICTLIST-TAG1-100mx100m.TXT >> lsupport/PICTLIST.TXT
sed -i -e 's/^/ /' lsupport/PICTLIST.TXT
echo END >> lsupport/PICTLIST.TXT
## END OF VARIANCE
cat lsupport/PICTLIST.TXT
# Fix unregistered images
.......
Line 79: Line 92:
# Generate list of images which require registering/autoregistering
## VARIANCE-F3G:
# DS MapCam images within the region-of-interest only.
# (PolyCam imgaes not included since the perturbations differ from sub-test to sub-test.)
awk '/M60/ { print $1 }' lsupport/PICTLIST-TAG1-100mx100m.TXT > lsupport/PICTLIST-forRegistering.TXT
sed -i -e 's/^/ /' lsupport/PICTLIST-forRegistering.TXT
echo END >> lsupport/PICTLIST-forRegistering.TXT
## END OF VARIANCE
cat lsupport/PICTLIST-forRegistering.TXT
# Clean directory
sh rem_script.b
rm TESTFILES/*
rm nohup.out
Line 97: Line 105:

How to Register Images - Batch V0

Description

This block batch registers images contained in lsupport/PICTLIST.TXT.

Assumptions

  • You have invoked a Bourne-Again Shell (bash) on ormacsrv1.lpl.arizona.edu
  • You are a member of the group OREX\spc
  • You have set up a skeleton directory in the following format:

 /SPC_Test/F3G-Nav/
                   ORex/
                            DATA/
                   base/
                            IMAGEFILES/
                            SHAPEFILES/
                   lsupport/
                   orig/
                   results/
                   test/
  • (./) Need to figure out how we will refer to these (block number? name?) and if they should be links.

  • You have completed the processing steps in Block 01-01 How to Test Directory Set-Up - ORIG

  • You have populated the orig/ dircteory with test-specific images following the steps in:
    • Block 02-01 How to
    • Block 02-02 How to
  • You have populated lsupport/PICTLIST-forRegistering.TXT with the correct subset of images to register

User inputs

  • testID - Name of the F3 test directory (for example, 'F3E-Limbs')

  • subTestID (if required) - Identifier for sub-test work (for example, 'F3G1')

  • dirID - Name of sub-directory in which to work (e.g. 'orig', or 'tes)

  • blockID - User-specified identifier for typescript textfile name (for example, 'Block-03-01-Register-Images-F3G-GenericImages')

Procedure

Copy and paste the following lines in the Unix terminal, only changing for your inputs and variances. Comment lines (# or ##) will appear in the typescript output.

# User inputs:
testID=F3G-Nav
#subTestID=F3G1
#subTestID=F3G2
#subTestID=F3G3
#subTestID=F3G4
#subTestID=F3G5
#subTestID=F3G6
subTestID=F3G7
dirID=test
#blockID=Block-03-01-Register-Images-F3G-GenericImages
blockID=Block-03-01-Register-Images-${subTestID}-Images

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

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

# Batch register images
register -v
nohup sh run_script.b &

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

# Check results
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 unregistered 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}


(Compiled by DL)

CategoryHowTos

How to Register Images - Batch V0 (last edited 2016-02-17 13:58:24 by BMittan)