Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2016-02-18 13:28:17
Size: 129
Editor: BMittan
Comment:
Revision 5 as of 2016-02-23 22:45:57
Size: 3233
Editor: EricPalmer
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
 (./) Insert basic setup for how to page.
== 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 Block 1 - Setup Directory V0
 * You have set up the test sub-directory following the steps in [[Block 0]]
 * You have ingested and registered test images following the steps in:
  * [[Block 2]]
  * [[Block 3]]

== User inputs ==
 * '''bigmapName''' - Name of bigmap .in file located in /SPC_Test/F3-base/base/support/ (for example, 'TILE20')
 * '''GSD''' - Maplet Ground Sample Distance in km (for example, '0.0002')

== Procedure ==

=== 1. Initial Inputs ===

{{{
# User inputs:
GSD=0.00020
bigmapName=TILE20
}}}

=== 2. Set-up ===
{{{
# Set-Up
cd /SPC_Test/$testID/test/
script
date
pwd
ls -l
ls -l /usr/local/bin
rm LMRKLIST1.TXT # Empties the list of new landmarks
}}}

=== 3. Make tiling bigmap ===
{{{
# Make tiling bigmap
echo "Bigmap .in file: support/$bigmapName.in"
cat lsupport/$bigmapName.in
ls -l /usr/local/bin/bigmap
bigmap < lsupport/$bigmapName.in
}}}

=== 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 bigmapName | showmap
convert bigmapName.pgm ~/send/bigmapName.jpg
}}}

=== 5. Setup tiling ===
{{{
# Set up tiling
cp MAPFILES/bigmapName.MAP MAPFILES/XXXXXX.MAP

ls -l /usr/local/bin/map_coverage
echo "XXXXXX" > map_coverage.in
echo 0 >> map_coverage.in
echo 0 >> map_coverage.in
map_coverage < map_coverage.in
convert coverage_m.pgm ~/send/coverage_m-$bigmapName-beforeTiling.jpg

echo "N" | make_tilefile | tee make_tilefile.out
sed 1d make_tilefile.out > temp.out
echo "XXXXXX" > make_scriptT.in
echo "scripts/$GSD.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. Clean directory ===
{{{
# Clean directory
sh rem_script.b
rm TESTFILES/*
rm TESTFILES1/*
}}}

=== 9. Complete procedure ===

{{{
# Block Complete
exit
# Save block log
mv typescript typescript-$bigmapName
}}}

----------

''(Compiled by DL)''

CategoryHowTos

Block 6B - Bigmap Tiling 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 Block 1 - Setup Directory V0
  • You have set up the test sub-directory following the steps in Block 0

  • You have ingested and registered test images following the steps in:

User inputs

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

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

Procedure

1. Initial Inputs

# User inputs:
GSD=0.00020
bigmapName=TILE20

2. Set-up

# Set-Up
cd /SPC_Test/$testID/test/
script
date
pwd
ls -l
ls -l /usr/local/bin
rm LMRKLIST1.TXT           # Empties the list of new landmarks

3. Make tiling bigmap

# Make tiling bigmap
echo "Bigmap .in file: support/$bigmapName.in"
cat lsupport/$bigmapName.in
ls -l /usr/local/bin/bigmap
bigmap < lsupport/$bigmapName.in 

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 bigmapName | showmap
convert bigmapName.pgm ~/send/bigmapName.jpg

5. Setup tiling

# Set up tiling
cp MAPFILES/bigmapName.MAP MAPFILES/XXXXXX.MAP

ls -l /usr/local/bin/map_coverage
echo "XXXXXX" > map_coverage.in
echo 0 >> map_coverage.in
echo 0 >> map_coverage.in
map_coverage < map_coverage.in
convert coverage_m.pgm ~/send/coverage_m-$bigmapName-beforeTiling.jpg

echo "N" | make_tilefile | tee make_tilefile.out
sed 1d make_tilefile.out > temp.out
echo "XXXXXX" > make_scriptT.in
echo "scripts/$GSD.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. Clean directory

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

9. Complete procedure

# Block Complete
exit
# Save block log
mv typescript typescript-$bigmapName


(Compiled by DL)

CategoryHowTos

Block 6B - Bigmap Tiling (last edited 2016-02-23 23:50:31 by EricPalmer)