Size: 3808
Comment:
|
← Revision 9 as of 2016-03-08 17:47:56 ⇥
Size: 4619
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= Block-02-02 - INGEST IMAGES - SUB-TEST-SPECIFIC = | ## page was renamed from Block-2B - INGEST IMAGES - SUB-TEST-SPECIFIC ## page was renamed from Block-02-02 - INGEST IMAGES - SUB-TEST-SPECIFIC = Block-2B - INGEST IMAGES - SUB-TEST-SPECIFIC = |
Line 7: | Line 9: |
## BLOCK 02-02 ## | ## BLOCK 2B ## |
Line 31: | Line 33: |
## User has completed the processing steps comprising Block 01-01 - TEST DIRECTORY | ## User has completed the processing steps comprising Block 1A - TEST DIRECTORY |
Line 33: | Line 35: |
## User has set up the test sub-directory, as per Block 01-02 - TEST DIRECTORY | ## User has set up the test sub-directory, as per Block 1B - TEST DIRECTORY |
Line 38: | Line 40: |
## 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) |
|
Line 39: | Line 43: |
## (for example, Block-02-02-IngestImages-SubTestSpecific-F3G1) | ## (for example, Block-2B-IngestImages-SubTestSpecific-F3G1) |
Line 42: | Line 46: |
testID=F3G-Nav | export testID=F3G-Nav |
Line 44: | Line 48: |
#export subTestID=F3G2 | export subTestID=F3G2 |
Line 49: | Line 53: |
export subTestID=F3G7 blockID=Block-02-02-IngestImages-SubTestSpecific-${subTestID} |
#export subTestID=F3G7 export dirID=test export blockID=Block-2B-IngestImages-SubTestSpecific-${subTestID} |
Line 55: | Line 60: |
# Display user inputs echo $testID echo $subTestID echo $dirID echo $blockID |
|
Line 63: | Line 75: |
# Step completed during Block 02-01 | # Step completed in Block 2A - Ingest Images - Test-Specific ls -l base/IMAGEFILES/ |
Line 66: | Line 80: |
rsync --ignore-times -ha base/${subTestID}/NOMINALS/P60* test/NOMINALS/ ls -l test/NOMINALS/ |
ls /SPC_Test/$testID/base/$subTestID/NOMINALS/P60* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev > lsupport/listImagesG2andG3PolyCam cat lsupport/listImagesG2andG3PolyCam cat base/$subTestID/NOMINALS/README while read line; do ln -s ../../base/$subTestID/NOMINALS/${line}.NOM $dirID/NOMINALS/${line}.NOM done < lsupport/listImagesG2andG3PolyCam ls -l $dirID/NOMINALS |
Line 70: | Line 91: |
rsync --ignore-times -ha base/${subTestID}/SUMFILES/P60* test/SUMFILES/ ls -l test/SUMFILES |
cat base/$subTestID/SUMFILES/README while read line; do ln -s ../../base/$subTestID/SUMFILES/${line}.SUM $dirID/SUMFILES/${line}.SUM done < lsupport/listImagesG2andG3PolyCam ls -l $dirID/SUMFILES |
Line 75: | Line 100: |
# 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, PS, and DS MapCam and PolyCam images in the region-of-interest only awk '/M/ { print $1 }' lsupport/PICTLIST-TAG1-100mx100m.TXT > lsupport/PICTLIST.TXT awk '/P/ { 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 |
# Update test/PICTLIST.TXT sed '$d' test/PICTLIST.TXT > TEMP1.TXT ls base/IMAGEFILES/P60* | cut -d '/' -f 3 | cut -d '.' -f 1 > TEMP2.TXT sed -i -e 's/^/ /' TEMP2.TXT cat TEMP1.TXT > test/PICTLIST.TXT cat TEMP2.TXT >> test/PICTLIST.TXT echo END >> test/PICTLIST.TXT rm TEMP1.TXT TEMP2.TXT cat test/PICTLIST.TXT |
Line 90: | Line 111: |
Line 92: | Line 114: |
awk '/P60/ { 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 |
awk '/P60/ { print $1 }' lsupport/listG2PolyCamImagesIn100mRegionCenteredOnTAG1 > lsupport/listImagesForRegistering awk '/P60/ { print $1 }' lsupport/listG3PolyCamImagesIn100mRegionCenteredOnTAG1 >> lsupport/listImagesForRegistering sed -i -e 's/^/ /' lsupport/listImagesForRegistering echo END >> lsupport/listImagesForRegistering |
Line 96: | Line 119: |
cat lsupport/PICTLIST-forRegistering.TXT | cat lsupport/listImagesForRegistering |
Line 99: | Line 123: |
date | |
Line 100: | Line 125: |
Line 104: | Line 130: |
# OPTION 1: OVERWRITE TYPESCRIPT LOG |
|
Line 105: | Line 133: |
# END OF OPTION 1 # OPTION 2: APPEND TYPESCRIPT LOG cat typescript >> /SPC_Test/$testID/log/log-typescript-${blockID} # END OF OPTION 2 |
Block-2B - INGEST IMAGES - SUB-TEST-SPECIFIC
########################################################################## ## ## ## BLOCK 2B ## ## INGEST IMAGES - SUB-TEST-SPECIFIC ## ## ## ########################################################################## ## This block additionally populates the F3 test directory's IMAGEFILES/ ## NOMINALS/ and SUMFILES/ sub-directories with Detailed Survey image files ## which are specific to a sub-test in readiness for registering the images ## 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 1A - TEST DIRECTORY ## SET-UP - ORIG ## 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-2B-IngestImages-SubTestSpecific-F3G1) # User inputs: export testID=F3G-Nav #export subTestID=F3G1 export subTestID=F3G2 #export subTestID=F3G3 #export subTestID=F3G4 #export subTestID=F3G5 #export subTestID=F3G6 #export subTestID=F3G7 export dirID=test export blockID=Block-2B-IngestImages-SubTestSpecific-${subTestID} # Set-Up cd /SPC_Test/$testID script # Display user inputs echo $testID echo $subTestID echo $dirID echo $blockID date pwd ls -l ## VARIANCE-F3G: # Populate base/IMAGEFILES/ with sub-test Detailed Survey test image files # Step completed in Block 2A - Ingest Images - Test-Specific ls -l base/IMAGEFILES/ # Populate test/NOMINALS/ with sub-test Detailed Survey test image nominals ls /SPC_Test/$testID/base/$subTestID/NOMINALS/P60* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev > lsupport/listImagesG2andG3PolyCam cat lsupport/listImagesG2andG3PolyCam cat base/$subTestID/NOMINALS/README while read line; do ln -s ../../base/$subTestID/NOMINALS/${line}.NOM $dirID/NOMINALS/${line}.NOM done < lsupport/listImagesG2andG3PolyCam ls -l $dirID/NOMINALS # Populate orig/SUMFILES/ with Detailed Survey test image sumfiles cat base/$subTestID/SUMFILES/README while read line; do ln -s ../../base/$subTestID/SUMFILES/${line}.SUM $dirID/SUMFILES/${line}.SUM done < lsupport/listImagesG2andG3PolyCam ls -l $dirID/SUMFILES ## END OF VARIANCE # Update test/PICTLIST.TXT sed '$d' test/PICTLIST.TXT > TEMP1.TXT ls base/IMAGEFILES/P60* | cut -d '/' -f 3 | cut -d '.' -f 1 > TEMP2.TXT sed -i -e 's/^/ /' TEMP2.TXT cat TEMP1.TXT > test/PICTLIST.TXT cat TEMP2.TXT >> test/PICTLIST.TXT echo END >> test/PICTLIST.TXT rm TEMP1.TXT TEMP2.TXT cat test/PICTLIST.TXT # Generate list of images which require registering/autoregistering # VARIANCE-F3G: # DS PolyCam images within the region-of-interest only. awk '/P60/ { print $1 }' lsupport/listG2PolyCamImagesIn100mRegionCenteredOnTAG1 > lsupport/listImagesForRegistering awk '/P60/ { print $1 }' lsupport/listG3PolyCamImagesIn100mRegionCenteredOnTAG1 >> lsupport/listImagesForRegistering sed -i -e 's/^/ /' lsupport/listImagesForRegistering echo END >> lsupport/listImagesForRegistering ## END OF VARIANCE cat lsupport/listImagesForRegistering # Block Complete date exit # Save block log if [ ! -d /SPC_Test/$testID/log ]; then mkdir /SPC_Test/$testID/log fi # 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