Differences between revisions 4 and 5
Revision 4 as of 2016-02-17 11:51:10
Size: 4591
Editor: BMittan
Comment:
Revision 5 as of 2016-02-17 14:30:43
Size: 4866
Editor: BMittan
Comment:
Deletions are marked like this. Additions are marked like this.
Line 26: Line 26:
 (./) 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 Block 01-01 [[How to Test Directory Set-Up - ORIG]]
 * You have set up the test sub-directory following the steps in Block 01-02 - TEST DIRECTORY SET-UP - TEST
 
 * You have completed the processing steps in How to Test Directory Set-Up - ORIG
 * You have set up the test sub-directory following the steps in How to Test Directory Set-Up - TEST
Line 30: Line 30:
  * Block 02-01
  * Block 02-02
  * Block 03-01
  * How to Ingest Images - Test-Specific
  * How to ?????????
  * How to Register Images - Batch
Line 44: Line 44:
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 66: Line 66:
}}}
Line 67: Line 68:
=== 2. Set-up ===
{{{
Line 73: Line 76:
}}}
Line 74: Line 78:
=== 3. Make tiling bigmap ===
{{{
Line 79: Line 85:
}}}

=== 4. Check resulting file ===

{{{
Line 86: Line 97:
}}}
Line 87: Line 99:
=== 5. Setup tiling ===
{{{
Line 104: Line 118:
}}}

=== 6. Invoke tiling script ===
Line 110: Line 127:
=== 7. Monitor progress ===
{{{
Line 114: Line 133:
}}}
Line 115: Line 135:
=== 8. Check correlation results ===
{{{
Line 121: Line 143:
}}}
Line 122: Line 145:
=== 9. Fix uncorrelated images ===

{{{
Line 124: Line 150:
}}}
Line 125: Line 152:
=== 10. Check tiling results ===
{{{
Line 129: Line 158:
}}}
Line 130: Line 160:
=== 11. Fix tiling gaps ===
{{{
Line 132: Line 164:
}}}
Line 133: Line 166:
=== 12. Clean directory ===
{{{
Line 137: Line 172:
}}}
Line 138: Line 174:
=== 13. Complete procedure ===

{{{

How to Tile - Bigmap V0

Description

This block tiles a bigmap with a new suite of landmarks. Bigmap and maplet parameters are specified by the user, using the bigmap in files contained in /SPC_Test/F3-base/base/support/ and the lithos options contained in the seed files in /SPC_Test/F3-base/base/scripts/.

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/
  • You have completed the processing steps in How to Test Directory Set-Up - ORIG
  • You have set up the test sub-directory following the steps in How to Test Directory Set-Up - TEST
  • You have ingested and registered test images following the steps in:
    • How to Ingest Images - Test-Specific
    • How to ?????????
    • How to Register Images - Batch

User inputs

  • testID - Name of the F3 test directory (for example, 'F3E-Limbs')

  • subTestID (if required) - Identifier for sub-test work (for example, 'F3G1')

  • bigmapInFileNm - Name of bigmap .in file located in /SPC_Test/F3-base/base/support/ (for example, 'TILE20')

  • tilingSeedFileNm - Name of tiling seeed file located in /SPC_Test/F3-base/base/scrits/ (for example, 'XXX020')

  • gSD - Maplet Ground Sample Distance in km (for example, '0.0002')

  • blockID - User-specified identifier for typescript textfile name (for example, 'Block-05-01-Tile-Bigmap-F3G1-20cmTiling')

Procedure

1. Initial Inputs

# User inputs:
testID=F3G-Nav
#subTestID=F3G1
#subTestID=F3G2
#subTestID=F3G3
#subTestID=F3G4
#subTestID=F3G5
#subTestID=F3G6
subTestID=F3G7
#export bigmapInFileNm=TILE20
#export bigmapInFileNm=TILE10
export bigmapInFileNm=TILE05
#export tilingSeedFileNm=XXX020
#export tilingSeedFileNm=XXX010
export tilingSeedFileNm=XXX005
#export gSD=0.0002
#export gSD=0.0001
export gSD=0.00005
blockID=Block-05-01-Tile-Bigmap-${subTestID}-${bigmapInFileNm}

2. Set-up

# Set-Up
cd /SPC_Test/$testID/test/
script
date
pwd
ls -l

3. Make tiling bigmap

# Make tiling bigmap
echo "Bigmap .in file: support/${bigmapInFileNm}.in"
cat support/${bigmapInFileNm}.in
ls -l /usr/local/bin/bigmap
bigmap < support/${bigmapInFileNm}.in | tee log-${bigmapInFileNm}

4. Check resulting file

# check resulting file
## Tiling bigmap has the same name as the .in file, 
## i.e. TILE20.in, produces the tiling bigmap: TILE20
echo ${bigmapInFileNm} | showmap
convert ${bigmapInFileNm}.pgm ${bigmapInFileNm}.jpg
open ${bigmapInFileNm}.jpg

5. Setup tiling

# Set up tiling
cp MAPFILES/${bigmapInFileNm}.MAP MAPFILES/XXXXXX.MAP
ls -l /usr/local/bin/map_coverage
echo "XXXXXX" > map_coverage.in
echo 0 >> map_coverage.in
echo $gSD >> map_coverage.in
map_coverage < map_coverage.in
convert coverage_m.pgm coverage_m-${bigmapInFileNm}-beforeTiling.jpg
open coverage_m-${bigmapInFileNm}-beforeTiling.jpg
echo "N" | make_tilefile | tee make_tilefile.out
sed 1d make_tilefile.out > temp.out
echo "XXXXXX" > make_scriptT.in
echo "scripts/${tilingSeedFileNm}.seed" >> make_scriptT.in
cat temp.out >> make_scriptT.in 
cat make_scriptT.in
make_scriptT
ls -l

6. Invoke tiling script

# Invoke tiling script cat INIT_LITHOS.TXT lithos -v nohup sh run_script.b &

7. Monitor progress

# Monitor progress
ls -l *.INN *.OOT
find_nofitT
sh support/logEvalP.sh

8. Check correlation results

# Check results - correlation
find_nofitT | tee log-fitT-${bigmapInFileNm}
sh support/logEvalP.sh
cat logResults.txt 
cat lowImg.txt
cat redo.txt

9. Fix uncorrelated images

# Fix uncorrelated images
.........

10. Check tiling results

# Check results - tiling
map_coverage < map_coverage.in
convert coverage_m.pgm coverage_m-${bigmapInFileNm}-afterTiling.jpg
open coverage_m-${bigmapInFileNm}-afterTiling.jpg

11. Fix tiling gaps

# Fix tiling gaps
.........

12. Clean directory

# Clean directory
sh rem_script.b
rm TESTFILES/*
rm TESTFILES1/*

13. 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

How to Tile - Bigmap V0 (last edited 2016-02-17 14:30:43 by BMittan)