Iterate

Loop as required. Do nftBlockFinish when done with iterations.

Log the following. localLoop.sh will handle this

sigma after each iteration

nofit "no correlation" flags

Stop on a real flag and email

Number of nofits

corrEval results

Batch Run

Check the following

Daemon is running

Terminate is unset (if you want more than one)

localLoop.sh is set (map=<ID><Res>)

interationCount is a useful number.

Whatever number is set in "iterationCount" when monitor is start will be increment and used as the $id variable in localLoop.sh.

Thus, it is useful to set it to something new if you are doing a different suite of iterations.

For the first 2 full iterations (i.e. over ALL maplets), make sure there are no images with a correlation <0.1 before starting a full iteration. If there are images that are getting a correlation <0.1 even after several iterations, delete if emission angle is >50, illumination coverage (after x-0.025) < 0.5, or phase less than 8 or 9. They are weak images and will not contribute much anyway.

After you have done 2 full iterations, clean according to the criteria for a correlation <0.1, but apply it to correlations <0.3. Again, if after many iterations they still are <0.3, they are not strong anyway.

The final check for an MLN is to use bigEval.sh <Feature Name>A

If the resulting bigmap has SigmaScore >2, you are done. Make sure you've run at least 2 full iterations (all maplets) to make sure everything has stabilized.

More iterations may help (stop if the avg sigmaScore is going down) or you may need more images, a fill, or some other technique.

Note: Consider changing USRMX to something other than 12. If there are < 24 landmarks, then using N as user max will be faster. While each process takes longer to run, it is faster than doing two maplets in succession.

Setup ROI Iterate

NOTE - Be sure you have made the bigmap before pasting below.

Because bigmap provides sigmas in km, it lacks the resolution needed for good statistics. Thus, we need to use bigmapRef, which outputs SIGMA.TXT in units of meters. However, bigmapRef needs an additional bigmap name as the first line of the file to define the normal plane. Thus, we have to run normal bigmap before we run bigmapRef

ID=00000Res=5logP=log/$ID$Resmkdir -p $logPcheckVar $ID $Res $logPbigmap < nftConfig/nftBigmap-$ID-$Res.IN

Setup Batch Iterate NFT Feature (Note: Uses USED_MAPS.TXT)

checkVar $ID $Res $logPecho "Getting ready for iteration $ID-$Res" >> notesdate >> notesecho $ID$Res | tee -a notesecho ${ID}A > tmpRuncat nftConfig/nftBigmap-$ID-$Res.IN>> tmpRuncat tmpRun >> notesbigMapRef < tmpRuntail -2 SIGMAS.TXT | head -1 | tee -a notesecho y | cp -v USED_MAPS.TXT LIST.TXTduplicatesrelink.sh scripts/Piterate1St.seed make_scriptP.seed | tee -a notesls -l make_scriptP.seed >> notesMAKE_LMRKLISTX echo 1 > config/iterationCountecho 3 > config/stopCountrelink.sh /opt/local/spc/bin/nftLoop.sh localLoop.shmake_scriptP | tee run.shecho "Running iteration at " `date` >> notessh run.shmonitor

Run the normal NFT iterate steps to start the running.

Remember to:

Turn off terminate

Run localLoop

Start the deamon

Deamon - Running F L E

Save iteration files

checkVar $ID $Res $logPecho 2 | nftBlockFinish.sh nft.$IDsh rem_script.b

Run AUTOREGISTER before kicking off remaining iterations

A few iterations often allow us to pull in more images. Run AUTOREGISTER on the PG62 and P63 images, but NOT the P60 images. See below under the AUTOREGSITER heading.

checkVar $ID $Res $logPbigmap < nftConfig/nftBigmap-$ID-$Res.INgrep P62 USED_PICS.TXT > make_script.ingrep P63 USED_PICS.TXT >> make_script.ingrep P64 USED_PICS.TXT >> make_script.inecho END >> make_script.inecho "Running AUTOREGISTER" > notesrelink.sh support/make_scriptA_jrwLowerC2.seed make_scriptA.seedmake_scriptAnohup sh run_script.b; finished autoregisterautoEval.shcheckVar $ID $Res $logPecho 3 | nftBlockFinish.sh nft.$ID

If AUTOREGISTER excludes many images, do another iterate over the new maplets

autoEval.sh

Run NFTWeb to check stats, particularly stationEval.sh for landmarks with missing stations

nftWeb.sh $ID

Complete remaining iterations.

checkVar $ID $Res $logPecho "Getting ready for iteration $ID-$Res" >> notesdate >> notesecho $ID$Res | tee -a notesecho ${ID}A > tmpRuncat nftConfig/nftBigmap-$ID-$Res.IN>> tmpRuncat tmpRun >> notesbigMapRef < tmpRuntail -2 SIGMAS.TXT | head -1 | tee -a notesecho y | cp -v USED_MAPS.TXT LIST.TXTduplicatesrelink.sh scripts/Piterate1St.seed make_scriptP.seed | tee -a notesls -l make_scriptP.seed >> notesMAKE_LMRKLISTX echo 3 > config/iterationCountecho 10 > config/stopCountrelink.sh /opt/local/spc/bin/nftLoop.sh localLoop.shmake_scriptP | tee run.shecho "Running iteration at " `date` >> notessh run.shmonitor

Run the normal NFT iterate steps to start the running.

Remember to:

Turn off terminate

Run localLoop

Start the deamon

When done, collect some statistics

checkVar $ID $Res $logPmkdir -p log/${ID}Agrep SIGMAS.TXT notes > log/${ID}A/sigmas.txtgrep correlation notes > log/${ID}A/overlaps.txtgrep Errors notes > log/${ID}A/nocorr.txtgrep Ended notes > log/${ID}A/time.txtgrep "Average " notes > log/${ID}A/corrAvg.txtgrep "Average Sig" notes > log/${ID}A/corrSigmaScore.txtgrep Above notes > log/${ID}A/corrAbove.txtecho 2 | nftBlockFinish.sh nft.$IDsh rem_script.b

Tuck Log files into log

mv log/out-* $logP

Make sure you have 2 (preferably 3) BBD stations for each image

# Needs new maplets in MAPINFO.TXT; Run if RESIDUALS has not been run since tilingecho "5 .001 .001" | RESIDUALSbigmap < nftConfig/nftBigmap-$ID-A.INstationEval.sh USED_MAPS.TXThead -1 eval/evalStation.txtsort -k2,2 eval/evalStation.txt | more