|
Size: 4520
Comment:
|
Size: 3801
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 107: | Line 107: |
| ls }}} {{{ |
|
| Line 123: | Line 129: |
| # CAREFUL! If tiling created bad landmarks, the below will "burn in" that topography in the bigmap. # I recommend fixing errors before running the below. |
|
| Line 128: | Line 132: |
| #bigmap < nftConfig/nftBigmap-$ID-$Res.in | |
| Line 135: | Line 138: |
cp LMRKLIST1.TXT nftConfig/list-$ID-$Res.txt |
|
| Line 143: | Line 148: |
| --- | -------- |
| Line 146: | Line 151: |
| == If 5 cm maplets, change them to 6 cm maplets == Many of the maplets will throw a "!" because they will have insufficient overlap; these can be ignored. The "*" will most likely because the maplet is only partially filled; these should be touched up by hand and iterated upon. |
== ROI Iterate over new maplets (Note: Uses LMRKLIST1.TXT) == |
| Line 151: | Line 156: |
| echo "Getting ready for iteration $ID-$Res" >> notes date >> notes echo $ID$Res | tee -a notes echo ${ID}A > tmpRun cat nftConfig/nftBigmap-$ID-$Res.IN>> tmpRun cat tmpRun >> notes bigMapRef < tmpRun tail -2 SIGMAS.TXT | head -1 | tee -a notes echo y | cp -v LMRKLIST1.TXT LIST.TXT duplicates |
|
| Line 152: | Line 167: |
| bigmap < nftConfig/nftBigmap-$ID-6.IN cd MAPFILES relink.sh ${ID}6.MAP XXXXXX.MAP cd .. |
relink.sh scripts/Piterate1St.seed make_scriptP.seed | tee -a notes ls -l make_scriptP.seed >> notes MAKE_LMRKLISTX |
| Line 157: | Line 171: |
| grep -Ff USED_MAPS.TXT MAPINFO.TXT | grep "0.0500 m" | cut -c1-6 > make_script.in echo "END" >> make_script.in |
|
| Line 160: | Line 172: |
| relink.sh support/FfiveToSix.seed make_scriptF.seed make_scriptF nohup sh run_script.b finished resetting-5-to-6 |
make_scriptP | tee run.sh echo "Running iteration at " `date` >> notes sh run.sh monitor |
| Line 165: | Line 177: |
| #When finished find_nofit | tee -a notes |
|
| Line 168: | Line 178: |
| echo 4 | nftBlockFinish.sh nft.$ID | |
| Line 172: | Line 181: |
| == Generate X map if resolution allows == | {{{ checkVar $ID $Res $logP bigMapRef < tmpRun echo "Post run Sigma" >> notes tail -2 SIGMAS.TXT | head -1 | tee -a notes }}} |
| Line 175: | Line 190: |
| #Make bigmap over landmark bigmap < nftConfig/nftBigmap-$ID-A.IN cd MAPFILES relink.sh ${ID}A.MAP XXXXXX.MAP cd .. # Generate in file for LITHOS based on existing bigmap and seed files echo "c" > XTMP.INN echo "${ID}X" >> XTMP.INN head -3 nftConfig/nftBigmap-$ID-A.IN >> XTMP.INN head -4 nftConfig/nftBigmap-$ID-A.IN | tail -1 | cut -c1-20 >> XTMP.INN echo "i" >> XTMP.INN echo "${ID}X" >> XTMP.INN Sleng=`wc nftConfig/nftSeed-$ID-6.seed | cut -c1-12 | bc` Tleng=`echo "$Sleng-4" | bc` tail -$Tleng nftConfig/nftSeed-$ID-6.seed >> XTMP.INN #Create X map LITHOS < XTMP.INN > XTMP.OOT #Check OOT to make sure there are no *'s rm XTMP.* |
checkVar $ID $Res $logP echo 2 | nftBlockFinish.sh nft.$ID sh rem_script.b |
Resolutions files
If we need to "drill down" to a high resolution, then we need to do it at several steps. We will use the following steps:
Resolution
Code
5cm
5
2cm
2
1cm
1
finalGSD/2
0
For each *.IN file you have, the entire tile, iterate, clean process should be done. I.E. Do all the steps for 5cm, then for 2cm, then for 1cm and then for your final NFT feature
Setup for tiling
ID=00000
Res=5
logP=log/$ID$Res
mkdir -p $logP
echo nft=$ID > config/nftID
echo res=$Res >> config/nftID
checkVar $ID $Res $logP
bigmap < nftConfig/nftBigmap-$ID-A.IN
#echo y | cp USED_MAPS.TXT log/$ID$Res/nftMapList-$ID$Res
#relink.sh lsupport/nftMapList-${ID}W make_script.in
Tiling
For width of 100 pixels, we are planning on a Q of 150 and a 5x5 maplet grid.
checkVar $ID $Res $logP
rm -f LMRKLIST1.TXT
#JRW Comment: Should we use bigMapRef here? We do below for the high res artifact, so things shift around between the high and low artifacts.
bigmap < nftConfig/nftBigmap-$ID-$Res.IN
cd MAPFILES
relink.sh $ID$Res.MAP XXXXXX.MAP
cd ..
echo XXXXXX | showmap
convert XXXXXX.pgm $logP/low-$ID.jpg
echo XXXXXX > tmp
echo 0 0.0000${Res}999 >> tmp
map_coverage < tmp
convert coverage_m.pgm $logP/pre-$ID.jpg
convert coverage_m.pgm 1.jpgCheck to make sure the coordinates are correct
echo $ID$Res > MAPLIST.TXT echo END >> MAPLIST.TXT img=`head -2 nftConfig/nftBigmap-$ID-A.IN | tail -1` echo $img > tmp echo n >> tmp Imager_MG < tmp convert TEMPFILE.pgm ~/send/$ID$Res.jpg echo $img > tmp echo y >> tmp echo 0 >> tmp echo n >> tmp echo n >> tmp Display < tmp convert TEMPFILE.pgm ~/send/$img.jpg
Build the tile file and run
checkVar $ID $Res $logP
echo N | make_tilefile > tmpOut
echo XXXXXX > lsupport/bigmap_tile.in
echo nftConfig/nftSeed-${ID}-${Res}.seed >> lsupport/bigmap_tile.IN
sed 1d tmpOut >> lsupport/bigmap_tile.in
relink.sh lsupport/bigmap_tile.in make_scriptT.in
echo "Begin Tiling" >> notes
echo "ID=$ID" >> notes
echo "Res=$Res" >> notes
make_scriptT
lsnohup sh run_script.b finished tiling-done
Check
checkVar $ID $Res $logP
tileEval.sh
echo XXXXXX > tmp
echo 0 0.0000${Res}999 >> tmp
map_coverage < tmp
convert coverage_m.pgm $logP/post-$ID.jpg
echo ${ID}A > tmpRun
cat nftConfig/nftBigmap-$ID-$Res.IN>> tmpRun
bigMapRef < tmpRun
echo XXXXXX | showmap
convert XXXXXX.pgm $logP/high-$ID.jpg
score=`tail -2 SIGMAS.TXT | head -1 | cut -c 23-30`
mScore=`echo "scale=2; $score * 1000" | bc | cut -c -4`
convert SIGMAS.pgm -fill white -gravity North -pointsize 15 -annotate +0+10 Max:${mScore}m $logP/sig-$ID.jpg
cp LMRKLIST1.TXT nftConfig/list-$ID-$Res.txt
nftBlockFinish.sh nft.$ID
ROI Iterate over new maplets (Note: Uses LMRKLIST1.TXT)
checkVar $ID $Res $logP
echo "Getting ready for iteration $ID-$Res" >> notes
date >> notes
echo $ID$Res | tee -a notes
echo ${ID}A > tmpRun
cat nftConfig/nftBigmap-$ID-$Res.IN>> tmpRun
cat tmpRun >> notes
bigMapRef < tmpRun
tail -2 SIGMAS.TXT | head -1 | tee -a notes
echo y | cp -v LMRKLIST1.TXT LIST.TXT
duplicates
relink.sh scripts/Piterate1St.seed make_scriptP.seed | tee -a notes
ls -l make_scriptP.seed >> notes
MAKE_LMRKLISTX
make_scriptP | tee run.sh
echo "Running iteration at " `date` >> notes
sh run.sh
monitorcheckVar $ID $Res $logP bigMapRef < tmpRun echo "Post run Sigma" >> notes tail -2 SIGMAS.TXT | head -1 | tee -a notes
checkVar $ID $Res $logP echo 2 | nftBlockFinish.sh nft.$ID sh rem_script.b
