= Test F3E Procedure Block - Capture Scobj & Pointing = == Edited from Block-9 - CAPTURE SCOBJ - TEST made by Diane Lambert to suit the F3E-Limb test == {{{ ########################################################################## ## ## ## BLOCK 9 ## ## Capture SCOBJ & Pointing ## ## (Originally for F3G but edited for F3E) ## ## ## ########################################################################## ## This block records the current S/C position (SCOBJ) for every Detailed ## Survey PolyCam SUMFILE ## 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 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) ## stateID: Current state of model, for SCOBJ tracking purposes ## (for example, 0_truth) ## blockID: User-specified identifier for typescript textfile name ## (for example, Block-9-CaptureSCOBJ-0_truth) # User inputs: export testID=F3E-Limbs #export subTestID=F3E1 export subTestID=F3E2 #export subTestID=F3E3 #export subTestID=F3E4 #export subTestID=F3E5 #export subTestID=F3E6 #export subTestID=F3E7 #export subTestID=F3E8 #export subTestID=F3low #export subTestID=F3Ehigh export dirID=test #export stateID=0_truth #export stateID=1_nominal #export stateID=5_final export blockID=Block-9-CaptureSCOBJ-${subTestID}-${stateID} # Set-Up cd /SPC_Test/$testID/$dirID script # Display user inputs echo $testID echo $subTestID echo $dirID echo $stateID echo $blockID date pwd ls -l # Variance, Pick one # depending on Sub-Test # Make the list of images to Analyze (Low Stereo) ls -l SUMFILES/P1F3E05H0001* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0002* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0003* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0004* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt # Make the list of images to Analyze (Sub-Test 1) ls -l SUMFILES/P1F3E05H0001* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0002* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0003* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0004* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E1* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt # Make the list of images to Analyze (Sub-Test 2) ls -l SUMFILES/P1F3E05H0001* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0002* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0003* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0004* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E2* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt # Make the list of images to Analyze (Sub-Test 3) ls -l SUMFILES/P1F3E05H0001* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0002* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0003* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0004* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E3* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt # Make the list of images to Analyze (Sub-Test 4) ls -l SUMFILES/P1F3E05H0001* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0002* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0003* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0004* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E4* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt # Make the list of images to Analyze (High Stereo) ls -l SUMFILES/P1F3E05H0005* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0006* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0007* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0008* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt # Make the list of images to Analyze (Sub-Test5) ls -l SUMFILES/P1F3E05H0005* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0006* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0007* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0008* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E1* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt # Make the list of images to Analyze (Sub-Test6) ls -l SUMFILES/P1F3E05H0005* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0006* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0007* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0008* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E2* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt # Make the list of images to Analyze (Sub-Test7) ls -l SUMFILES/P1F3E05H0005* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0006* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0007* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0008* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E3* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt # Make the list of images to Analyze (Sub-Test8) ls -l SUMFILES/P1F3E05H0005* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0006* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0007* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E05H0008* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt ls -l SUMFILES/P1F3E4* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> imgname.txt # End of Variance # Capture SCOBJ echo "`date`: `pwd` SCOBJ_${subTestID}_${stateID}" > scobj_${subTestID}_${stateID} bash while read line; do echo -n $line >> scobj_${subTestID}_${stateID} grep SCOBJ SUMFILES/${line}.SUM >> scobj_${subTestID}_${stateID} done < imgname.txt exit cat scobj_${subTestID}_${stateID} # Capture CZ echo "`date`: `pwd` CZ_${subTestID}_${stateID}" > cz_${subTestID}_${stateID} bash while read line; do echo -n $line >> cz_${subTestID}_${stateID} grep CZ SUMFILES/${line}.SUM >> cz_${subTestID}_${stateID} done < imgname.txt exit cat cz_${subTestID}_${stateID} # Log SCOBJ and CZ if [ ! -d /SPC_Test/$testID/log ]; then mkdir /SPC_Test/$testID/log fi mv scobj_${subTestID}_${stateID} /SPC_Test/$testID/log/ mv cz_${subTestID}_${stateID} /SPC_Test/$testID/log/ # Block Complete date exit # Save block log # OPTION 1: OVERWRITE TYPESCRIPT LOG mv typescript /SPC_Test/$testID/log/log-typescript-${blockID} # END OF OPTION 1 # OPTION 2: APPEND TYPESCRIPT LOG cat typescript >> /SPC_Test/$testID/log/log-typescript-${blockID} # END OF OPTION 2 }}}