|
Size: 3569
Comment:
|
← Revision 3 as of 2016-02-17 13:49:24 ⇥
Size: 3803
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 25: | Line 25: |
| * You have completed the processing steps in Block 01-01 [[How to Test Directory Set-Up - ORIG]] | * You have completed the processing steps in How to Test Directory Set-Up - ORIG |
| Line 33: | Line 33: |
Copy and paste the following lines in the Unix terminal, only changing for your inputs and variances. Comment lines (# or ##) will appear in the typescript output. |
=== 1. Initial inputs === |
| Line 40: | Line 39: |
| }}} | |
| Line 41: | Line 41: |
| === 2. Set-up === {{{ |
|
| Line 47: | Line 49: |
| }}} | |
| Line 48: | Line 51: |
| (./) Not sure how this will appear. Fix numbering. {{{ |
|
| Line 49: | Line 54: |
| }}} === 3. Populate sub-directories === {{{ |
|
| Line 62: | Line 69: |
| }}} (./) should those have further subheadings on them for each section?? {{{ ## END OF VARIANCE }}} |
|
| Line 63: | Line 75: |
| ## END OF VARIANCE | |
| Line 65: | Line 76: |
| === 4. Generate PICTLIST.TXT file === {{{ |
|
| Line 79: | Line 92: |
| }}} | |
| Line 80: | Line 94: |
| === 5. Generate list of images needing registering/autoregistering === {{{ |
|
| Line 89: | Line 106: |
| }}} | |
| Line 90: | Line 108: |
| === 6. Complete procedure === {{{ |
|
| Line 97: | Line 117: |
How to Ingest Images - Test Specific V0
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 (block number? name?) and if they should be links. - You have completed the processing steps in How to Test Directory Set-Up - ORIG
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=F3G-Nav blockID=Block-02-01-IngestImages-TestSpecific
2. Set-up
# Set-Up cd /SPC_Test/$testID script date pwd ls -l
Not sure how this will appear. Fix numbering.
## VARIANCE-F3G:
3. Populate sub-directories
# Populate base/IMAGEFILES/ with Detailed Survey test image files rsync -ha base/F3G-IMAGEFILES/M60* base/IMAGEFILES/ rsync -ha base/F3G-IMAGEFILES/P60* base/IMAGEFILES/ ls -l base/IMAGEFILES/ # Populate orig/NOMINALS/ with Detailed Survey MapCam image nominals rsync -ha base/F3G-DSM-NOMINALS/M60* orig/NOMINALS/ ls -l orig/NOMINALS # Populate orig/SUMFILES/ with Detailed Survey MapCam image sumfiles rsync -ha base/F3G-DSM-SUMFILES/M60* orig/SUMFILES/ ls -l orig/SUMFILES
should those have further subheadings on them for each section??
## END OF VARIANCE
4. Generate PICTLIST.TXT file
# 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 and PS MapCam and PolyCam images and DS MapCam images
# in the region-of-interest only
awk '/M/ { print $1 }' lsupport/PICTLIST-TAG1-100mx100m.TXT > lsupport/PICTLIST.TXT
awk '/P59/ { 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
5. Generate list of images needing registering/autoregistering
# Generate list of images which require registering/autoregistering
## VARIANCE-F3G:
# DS MapCam images within the region-of-interest only.
# (PolyCam imgaes not included since the perturbations differ from sub-test to sub-test.)
awk '/M60/ { 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
## END OF VARIANCE
cat lsupport/PICTLIST-forRegistering.TXT
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)
