Block 2 - Ingest V0
Copied over from working--needs to be more general.
Edited by Kristofer Drozd to suit F3E-Limbs
Description
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.
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 and if they should be links. I only linked this one as a sample to see!
You have completed the processing steps in Block 1 - Setup Directory V0
User inputs
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')
Procedure
1. Initial inputs
# User inputs: testID=F3E-Limbs blockID=Block-02-01-IngestImages-TestSpecific
2. Set-up
# Set-Up cd /SPC_Test/$testID script date pwd ls -l
3. Populate sub-directories
# Populate base/IMAGEFILES/ with Detailed Survey test image files rsync -ha img_gen/IMAGEFILES/* base/IMAGEFILES/ ls -l base/IMAGEFILES/ # Populate orig/NOMINALS/ with Detailed Survey MapCam image nominals rsync -ha img_gen/F3Ev1perturbed/DirtyNominalsF3E0v1/* orig/NOMINALS/ rsync -ha img_gen/F3Ev1perturbed/DirtyNominalsF3E1v1/* orig/NOMINALS/ rsync -ha img_gen/F3Ev1perturbed/DirtyNominalsF3E2v1/* orig/NOMINALS/ rsync -ha img_gen/F3Ev1perturbed/DirtyNominalsF3E3v1/* orig/NOMINALS/ rsync -ha img_gen/F3Ev1perturbed/DirtyNominalsF3E4v1/* orig/NOMINALS/ ls -l orig/NOMINALS # Populate orig/SUMFILES/ with Detailed Survey MapCam image sumfiles rsync -ha img_gen/F3Ev1perturbed/DirtySumfilesF3E0v1/* orig/SUMFILES/ rsync -ha img_gen/F3Ev1perturbed/DirtySumfilesF3E1v1/* orig/SUMFILES/ rsync -ha img_gen/F3Ev1perturbed/DirtySumfilesF3E2v1/* orig/SUMFILES/ rsync -ha img_gen/F3Ev1perturbed/DirtySumfilesF3E3v1/* orig/SUMFILES/ rsync -ha img_gen/F3Ev1perturbed/DirtySumfilesF3E4v1/* orig/SUMFILES/ ls -l orig/SUMFILES
4. Generate PICTLIST.TXT file
# Generate lsupport/PICTLISTF3Elow.txt which the PICTLIST.TXT for the low stereo prep directory ls base/IMAGEFILES/M* | cut -d '/' -f 3 | cut -d '.' -f 1 > lsupport/PICTLISTF3Elow.txt ls base/IMAGEFILES/P59* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow.txt ls img_gen/IMAGEFILES/P1F3E05H0001 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow.txt ls img_gen/IMAGEFILES/P1F3E05H0002 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow.txt ls img_gen/IMAGEFILES/P1F3E05H0003 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow.txt ls img_gen/IMAGEFILES/P1F3E05H0004 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow.txt sed -i -e 's/^/ /' lsupport/PICTLISTF3Elow.txt echo END >> lsupport/PICTLISTF3Elow.txt # Generate lsupport/PICTLISTF3Elow_1.txt which the PICTLIST.TXT for the low stereo sub test 1 prep directory cp lsupport/PICTLISTF3Elow.txt support/PICTLISTF3Elow_1.txt ls img_gen/IMAGEFILES/P1F3E1* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow_1.txt sed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Elow_1.txt echo END >> lsupport/PICTLISTF3Elow_1.txt # Generate lsupport/PICTLISTF3Elow_2.txt which the PICTLIST.TXT for the low stereo sub test 2 prep directory cp lsupport/PICTLISTF3Elow.txt support/PICTLISTF3Elow_2.txt ls img_gen/IMAGEFILES/P1F3E2* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow_2.txt sed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Elow_2.txt echo END >> lsupport/PICTLISTF3Elow_2.txt # Generate lsupport/PICTLISTF3Elow_3.txt which the PICTLIST.TXT for the low stereo sub test 3 prep directory cp lsupport/PICTLISTF3Elow.txt support/PICTLISTF3Elow_3.txt ls img_gen/IMAGEFILES/P1F3E3* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow_3.txt sed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Elow_3.txt echo END >> lsupport/PICTLISTF3Elow_3.txt # Generate lsupport/PICTLISTF3Elow_4.txt which the PICTLIST.TXT for the low stereo sub test 3 prep directory cp lsupport/PICTLISTF3Elow.txt support/PICTLISTF3Elow_4.txt ls img_gen/IMAGEFILES/P1F3E4* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow_4.txt sed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Elow_4.txt echo END >> lsupport/PICTLISTF3Elow_4.txt # Generate lsupport/PICTLISTF3Ehigh.txt which the PICTLIST.TXT for the high stereo prep directory ls base/IMAGEFILES/M* | cut -d '/' -f 3 | cut -d '.' -f 1 > lsupport/PICTLISTF3Ehigh.txt ls base/IMAGEFILES/P59* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh.txt ls img_gen/IMAGEFILES/P1F3E05H0005 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh.txt ls img_gen/IMAGEFILES/P1F3E05H0006 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh.txt ls img_gen/IMAGEFILES/P1F3E05H0007 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh.txt ls img_gen/IMAGEFILES/P1F3E05H0008 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh.txt sed -i -e 's/^/ /' lsupport/PICTLISTF3Ehigh.txt echo END >> lsupport/PICTLISTF3Ehigh.txt # Generate lsupport/PICTLISTF3Ehigh_1.txt which the PICTLIST.TXT for the high stereo sub test 1 prep directory cp lsupport/PICTLISTF3Ehigh.txt support/PICTLISTF3Ehigh_1.txt ls img_gen/IMAGEFILES/P1F3E1* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh_1.txt sed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Ehigh_1.txt echo END >> lsupport/PICTLISTF3Ehigh_1.txt # Generate lsupport/PICTLISTF3Ehigh_2.txt which the PICTLIST.TXT for the high stereo sub test 2 prep directory cp lsupport/PICTLISTF3Ehigh.txt support/PICTLISTF3Ehigh_2.txt ls img_gen/IMAGEFILES/P1F3E2* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh_2.txt sed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Ehigh_2.txt echo END >> lsupport/PICTLISTF3Ehigh_2.txt # Generate lsupport/PICTLISTF3Ehigh_3.txt which the PICTLIST.TXT for the high stereo sub test 3 prep directory cp lsupport/PICTLISTF3Ehigh.txt support/PICTLISTF3Ehigh_3.txt ls img_gen/IMAGEFILES/P1F3E3* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh_3.txt sed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Ehigh_3.txt echo END >> lsupport/PICTLISTF3Ehigh_3.txt # Generate lsupport/PICTLISTF3Ehigh_4.txt which the PICTLIST.TXT for the high stereo sub test 4 prep directory cp lsupport/PICTLISTF3Ehigh.txt support/PICTLISTF3Ehigh_4.txt ls img_gen/IMAGEFILES/P1F3E4* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh_4.txt sed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Ehigh_4.txt echo END >> lsupport/PICTLISTF3Ehigh_4.txt
5. Generate list of images needing registering/autoregistering
Simply make these text files any way that is desired and have them in the support directory.
High stereo image registering text file (highRegistering.txt):
P1F3E05H0005 P1F3E05H0006 P1F3E05H0007 P1F3E05H0008 END
Low stereo image registering text file (lowRegistering.txt):
P1F3E05H0001 P1F3E05H0002 P1F3E05H0003 P1F3E05H0004 END
100cm limb image registering text file (F3E1Registering.txt):
P1F3E15H0001 P1F3E25H0002 P1F3E35H0003 P1F3E45H0004 END
50cm limb image registering text file (F3E2Registering.txt):
P1F3E25H0001 P1F3E25H0002 P1F3E25H0003 P1F3E25H0004 END
15cm limb image registering text file (F3E3Registering.txt):
P1F3E35H0001 P1F3E35H0002 P1F3E35H0003 P1F3E35H0004 END
5cm limb image registering text file (F3E4Registering.txt):
P1F3E45H0001 P1F3E45H0002 P1F3E45H0003 P1F3E45H0004 END
6. Complete procedure
# 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)