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-LimbsblockID=Block-02-01-IngestImages-TestSpecific

2. Set-up

# Set-Upcd /SPC_Test/$testIDscriptdatepwdls -l

3. Populate sub-directories

# Populate base/IMAGEFILES/ with Detailed Survey test image filesrsync -ha img_gen/IMAGEFILES/* base/IMAGEFILES/ls -l base/IMAGEFILES/# Populate orig/NOMINALS/ with Detailed Survey MapCam image nominalsrsync -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 sumfilesrsync -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 directoryls base/IMAGEFILES/M* | cut -d '/' -f 3 | cut -d '.' -f 1 > lsupport/PICTLISTF3Elow.txtls base/IMAGEFILES/P59* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow.txtls img_gen/IMAGEFILES/P1F3E05H0001 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow.txtls img_gen/IMAGEFILES/P1F3E05H0002 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow.txtls img_gen/IMAGEFILES/P1F3E05H0003 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow.txtls img_gen/IMAGEFILES/P1F3E05H0004 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow.txtsed -i -e 's/^/ /' lsupport/PICTLISTF3Elow.txtecho END >> lsupport/PICTLISTF3Elow.txt# Generate lsupport/PICTLISTF3Elow_1.txt which the PICTLIST.TXT for the low stereo sub test 1 prep directorycp lsupport/PICTLISTF3Elow.txt support/PICTLISTF3Elow_1.txtls img_gen/IMAGEFILES/P1F3E1* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow_1.txtsed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Elow_1.txtecho END >> lsupport/PICTLISTF3Elow_1.txt# Generate lsupport/PICTLISTF3Elow_2.txt which the PICTLIST.TXT for the low stereo sub test 2 prep directorycp lsupport/PICTLISTF3Elow.txt support/PICTLISTF3Elow_2.txtls img_gen/IMAGEFILES/P1F3E2* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow_2.txtsed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Elow_2.txtecho END >> lsupport/PICTLISTF3Elow_2.txt# Generate lsupport/PICTLISTF3Elow_3.txt which the PICTLIST.TXT for the low stereo sub test 3 prep directorycp lsupport/PICTLISTF3Elow.txt support/PICTLISTF3Elow_3.txtls img_gen/IMAGEFILES/P1F3E3* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow_3.txtsed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Elow_3.txtecho END >> lsupport/PICTLISTF3Elow_3.txt# Generate lsupport/PICTLISTF3Elow_4.txt which the PICTLIST.TXT for the low stereo sub test 3 prep directorycp lsupport/PICTLISTF3Elow.txt support/PICTLISTF3Elow_4.txtls img_gen/IMAGEFILES/P1F3E4* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Elow_4.txtsed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Elow_4.txtecho END >> lsupport/PICTLISTF3Elow_4.txt# Generate lsupport/PICTLISTF3Ehigh.txt which the PICTLIST.TXT for the high stereo prep directoryls base/IMAGEFILES/M* | cut -d '/' -f 3 | cut -d '.' -f 1 > lsupport/PICTLISTF3Ehigh.txtls base/IMAGEFILES/P59* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh.txtls img_gen/IMAGEFILES/P1F3E05H0005 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh.txtls img_gen/IMAGEFILES/P1F3E05H0006 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh.txtls img_gen/IMAGEFILES/P1F3E05H0007 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh.txtls img_gen/IMAGEFILES/P1F3E05H0008 | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh.txtsed -i -e 's/^/ /' lsupport/PICTLISTF3Ehigh.txtecho END >> lsupport/PICTLISTF3Ehigh.txt# Generate lsupport/PICTLISTF3Ehigh_1.txt which the PICTLIST.TXT for the high stereo sub test 1 prep directorycp lsupport/PICTLISTF3Ehigh.txt support/PICTLISTF3Ehigh_1.txtls img_gen/IMAGEFILES/P1F3E1* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh_1.txtsed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Ehigh_1.txtecho END >> lsupport/PICTLISTF3Ehigh_1.txt# Generate lsupport/PICTLISTF3Ehigh_2.txt which the PICTLIST.TXT for the high stereo sub test 2 prep directorycp lsupport/PICTLISTF3Ehigh.txt support/PICTLISTF3Ehigh_2.txtls img_gen/IMAGEFILES/P1F3E2* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh_2.txtsed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Ehigh_2.txtecho END >> lsupport/PICTLISTF3Ehigh_2.txt# Generate lsupport/PICTLISTF3Ehigh_3.txt which the PICTLIST.TXT for the high stereo sub test 3 prep directorycp lsupport/PICTLISTF3Ehigh.txt support/PICTLISTF3Ehigh_3.txtls img_gen/IMAGEFILES/P1F3E3* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh_3.txtsed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Ehigh_3.txtecho END >> lsupport/PICTLISTF3Ehigh_3.txt# Generate lsupport/PICTLISTF3Ehigh_4.txt which the PICTLIST.TXT for the high stereo sub test 4 prep directorycp lsupport/PICTLISTF3Ehigh.txt support/PICTLISTF3Ehigh_4.txtls img_gen/IMAGEFILES/P1F3E4* | cut -d '/' -f 3 | cut -d '.' -f 1 >> lsupport/PICTLISTF3Ehigh_4.txtsed -i -e 's/^/ /' lsupport/PICTLISTF3EhiPICTLISTF3Ehigh_4.txtecho 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 P1F3E05H0008END

Low stereo image registering text file (lowRegistering.txt):

P1F3E05H0001 P1F3E05H0002 P1F3E05H0003 P1F3E05H0004END

100cm limb image registering text file (F3E1Registering.txt):

P1F3E15H0001 P1F3E25H0002 P1F3E35H0003 P1F3E45H0004END

50cm limb image registering text file (F3E2Registering.txt):

P1F3E25H0001 P1F3E25H0002 P1F3E25H0003 P1F3E25H0004END

15cm limb image registering text file (F3E3Registering.txt):

P1F3E35H0001 P1F3E35H0002 P1F3E35H0003 P1F3E35H0004END

5cm limb image registering text file (F3E4Registering.txt):

P1F3E45H0001 P1F3E45H0002 P1F3E45H0003 P1F3E45H0004END

6. Complete procedure

# Block Completeexit# Save block logif [ ! -d /SPC_Test/$testID/log ]; then mkdir /SPC_Test/$testID/logfimv typescript /SPC_Test/$testID/log/log-typescript-${blockID}

(Compiled by DL)

CategoryHowTos