Block 2 - Ingest 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

 /SPC_Test/F3G-Nav/
                   ORex/
                            DATA/
                   base/
                            IMAGEFILES/
                            SHAPEFILES/
                   lsupport/
                   orig/
                   results/
                   test/

User inputs

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

## 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

## 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)

CategoryHowTos

Block 2 - Ingest (last edited 2016-02-23 23:56:00 by EricPalmer)