NEW !!! (3 Dec 2019)

Save All New Landmarks

Run EXPORT

This will combine all the new LMRKLIST1 that were created (2cm, 1cm and 0cm).

checkVar $ID $Res $logP

echo y | cp LMRKLIST1.TXT nftConfig/highRes${ID}$Res.txt
 
grep -v END nftConfig/list-$ID-*.txt | cut -c 28- > LMRKLIST1.TXT
wc LMRKLIST1.TXT
echo END >> LMRKLIST1.TXT


echo -n "Running Export $ID with num of landmarks:  " >> notes
wc LMRKLIST1.TXT >> notes

rm -r NEW_FILES
mkdir -p NEW_FILES
mkdir -p NEW_FILES/LMKFILES
mkdir -p NEW_FILES/MAPFILES
/usr/local/bin/EXPORT


sh EXPORT.TXT
mv NEW_FILES.tar nftConfig/nftLandmarks-$ID.tar

Package the Feature

Update nftConfig.ini

From the base directory (one above the working directory) run

Update nft creation scripts to match version (i.e. if you are distributing a new copy of a feature, then use B or higher)

This his also moves all the output files to the log directory

checkVar $ID $Res $logP

relink.sh nftConfig/highRes${ID}$Res.txt BIGMAP.IN #put $Res back in once week 2 has been delivered
wc BIGMAP.IN |tee -a notes
grep -f BIGMAP.IN MAPINFO.TXT | tee -a notes

nft-publish.sh nftBigmap-$ID-$Vers.IN

#We need something besides logP here. We are not going to publish after every resolution. How about this? JRW
mv log/$ID* ../log

rm BIGMAP.IN
echo 6 | nftBlockFinish.sh nft.$ID

Options For Creating the final Bigmap

Option 1 - vB

Use all maplets (i.e. Bob method)

bigmap < nftConfig/nftBigmap-$ID-B.IN
cp USED_MAPS.TXT BIGMAP.IN
relink.sh nftFitsConfigB.ini nftFitsConfig.ini
grep -f BIGMAP.IN MAPINFO.TXT | tee -a notes

cat featInfo | nft-publish.sh nftBigmap-$ID-B.IN

rm BIGMAP.IN
echo 6 | nftBlockFinish.sh nft.$ID

Option 2 - vB

Use only highest resolution

relink.sh nftFitsConfigB.ini nftFitsConfig.ini
relink.sh nftConfig/highRes${ID}$Res.txt BIGMAP.IN #put $Res back in once week 2 has been delivered
wc BIGMAP.IN |tee -a notes
grep -f BIGMAP.IN MAPINFO.TXT | tee -a notes

nft-publish.sh nftBigmap-$ID-B.IN

rm BIGMAP.IN
echo 6 | nftBlockFinish.sh nft.$ID

Option 3 - vC

Use requested GSD maplets, plus one up resolution and one down resolution

bigmap < nftConfig/nftBigmap-$ID-A.IN
grep -Ff USED_MAPS.TXT MAPINFO.TXT | sort -k2,2 -r > tmp
#Trim out resolutions you don't want, make sure you keep the "END"
cut -c1-6 tmp > tmp2
#check tmp2 to make sure it is what you want
cp tmp2 nftConfig/multiRes$ID.TXT


relink.sh nftFitsConfigC.ini nftFitsConfig.ini
relink.sh nftConfig/multiRes${ID}.TXT BIGMAP.IN
wc BIGMAP.IN |tee -a notes
grep -f BIGMAP.IN MAPINFO.TXT | tee -a notes

nft-publish.sh nftBigmap-$ID-C.IN

rm BIGMAP.IN
echo 6 | nftBlockFinish.sh nft.$ID

Option 4 - vA

Single maplet to size and resolution of requested feature

mkdir nft-$ID-A
cp MAPFILES/${ID}X.MAP nft-$ID-A/
cp nftFitsConfig.ini nft-$ID-A/
cut -c1-12 LMKFILES/${ID}X.LMK > nft-$ID-A/USED_PICS.TXT
cd nft-$ID-A
vi USED_PICS.TXT

Trim the top and bottom of the LMK file (now called USED_PICS.TXT) so that it looks like a USED_PICTS.TXT


Grabbing New Landmark Tarballs

This is for Kristina

#if may have been pre existing 2cm go to spc03 

bigmap < nftConfig/nftBigmap-$ID-A.IN
cp USED_MAPS.TXT ~/send/

#go to original spc machine
bigmap < nftConfig/nftBigmap-$ID-A.IN
grep -Ff USED_MAPS.TXT MAPINFO.TXT > tmp
cat tmp

#rsync to original machines send directory
grep -Fvf ~/send/USED_MAPS.TXT tmp > tmp2
vi tmp2
#trim all non 2cm landmarks
cut -c1-6 tmp2 > LMRKLIST1.TXT
#add END

#If grabbing 1 or 0 res
bigmap < nftConfig/nftBigmap-$ID-A.IN
grep -Ff USED_MAPS.TXT MAPINFO.TXT > tmp
echo END >> tmp
vi tmp
#trim all non 0 or 1 res landmarks 
cut -c 1-6 tmp > LMRKLIST1.TXT
more LMRKLIST1.TXT

#Run Publish
echo y | cp LMRKLIST1.TXT nftConfig/combinedRes${ID}.txt

echo -n "Running Export $ID with num of landmarks:  " >> notes
wc LMRKLIST1.TXT >> notes

rm -r NEW_FILES
mkdir -p NEW_FILES
mkdir -p NEW_FILES/LMKFILES
mkdir -p NEW_FILES/MAPFILES
/usr/local/bin/EXPORT


sh EXPORT.TXT
mv NEW_FILES.tar nftConfig/nftLandmarks-${ID}.tar

NFT-6-publish (last edited 2020-02-27 16:55:31 by JohnWeirich)