Test F3F Procedures Block 8A - GEOMETRY/RESIDUALS

############################################################################ #### BLOCK 8A #### RESIUALS AND GEOMETRY - GLOBAL ## ## ############################################################################## This block contains all the commands required to achieve a safe state## from which to run geometry, and the commands required to create a back-up## of the model and run geometry. This is NOT a linear set of commands, it## is intended only to provide the commands and guidance required for the ## user to progress the model through the required processing states, many## sets of commands may need to be iterated.## 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/## base/## IMAGEFILES/## SHAPEFILES/## lsupport/## PICTLIST.TXT## orig/## results/## test/## User has completed the processing steps comprising Block 1A - TEST DIRECTORY## SET-UP - ORIG## If working in the test/ sub-directory, user has set up the test sub-directory, as per## Block 1B - TEST DIRECTORY SET-UP - TEST## 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 test)## blockID: User-specified identifier for typescript textfile name ## (for example, Block-1A-TestDirSetUp-Orig)# User inputs:export testID=F3F-Photo#export subTestID=NONEexport subTestID=F3F1#export subTestID=F3F2#export subTestID=F3F3export dirID=test${subTestID}#export blockID=Block-8A-ResidualsGeometry-${subTestID}-post10cmTileexport blockID=Block-8A-ResidualsGeometry-${subTestID}-post5cmTile# Set-Upcd /SPC_Test/$testID/$dirIDscript# Display user inputsecho $testIDecho $subTestIDecho $dirIDecho $blockIDdatepwdls -l## Pre-geometry work# Check correlationcp USED_MAPS.TXT LIST.TXTduplicatesmv make_script.in listLMRKSnohup sh support/batchCheck.sh listLMRKS &# Inspect tmpResults looking for all minimum correlations > 0.5cat tmpResults.txt## PROCESSING STATE: CORRELATED# Run residualsecho 5 .005 .0002 | residuals# Inspect lmrksgrep ">>" RESIDUALS.TXT# Inspect and fix LMRKS via lithos# Inspect MAPINFO.TXT# Minimum of 5 images per lmrkcat MAPINFO.TXTsort -k7 MAPINFO.TXT | head# Add images as required via lithos## PROCESSING STATE: IMAGED# Inspect PICINFO.TXT# Minimum of 3 lmrks per DS image or any image with limbscat PICINFO.TXTawk '/\*/ { print $1,$8,$9 }' PICINFO.TXT | grep -v " 0 " | sort -k 3n# Fix pictures via autoregister## MODEL STABLE IN PREPARATION FOR RUNNING GEOMETRY# re-run resduals and check/fix as necessary# Back-up!!if [ ! -d /SPC_Test/$testID/back/back_${blockID} ]; then mkdir -p /SPC_Test/$testID/back/back_${blockID}firsync --exclude=*.DAT --exclude=*.pgm -ha /SPC_Test/$testID/$dirID/ /SPC_Test/$testID/back/back_${blockID}/# Run geometryecho "120" > geometry.inecho "15" >> geometry.inecho "y" >> geometry.inecho "n" >> geometry.ingeometry < geometry.in# Review resultsecho 5 .005 .0002 | residuals# Inspect lmrksgrep ">>" RESIDUALS.TXT# Inspect MAPINFO.TXTsort -k7 MAPINFO.TXT | head# Inspect PICINFO.TXTawk '/\*/ { print $1,$8,$9 }' PICINFO.TXT | grep -v " 0 " | sort -k3# Log output filesmkdir -p log/log-${blockID}cp tmpResults.txt log/log-${blockID}mkdir -p log/log-residuals-${blockID}cp RESIDUALS.TXT MAPINFO.TXT PICINFO.TXT RANGES_SOLVED.TXT LMKVECS.TXT log/log-residuals-${blockID}/# Block Completedateexit# Save block logif [ ! -d /SPC_Test/$testID/log ]; then mkdir /SPC_Test/$testID/logfi# OPTION 1: OVERWRITE TYPESCRIPT LOGmv typescript /SPC_Test/$testID/log/log-typescript-${blockID}# END OF OPTION 1# OPTION 2: APPEND TYPESCRIPT LOGcat typescript >> /SPC_Test/$testID/log/log-typescript-${blockID}# END OF OPTION 2