Block 16 - Export Boulder V2
Description
Getting ready to export and input a boulder NOT using fill
Procedure
Get bigmap ready
Run bigmap to get it, coverage, INSIDE.TXT and the script to build the bigmap
ID=B-020A echo "Exporting boulder: $ID" | tee -a notes mkdir boulder-$ID bigMapRef < lsupport/$ID.IN cp MAPFILES/$ID.MAP boulder-$ID/ echo $ID | showmap convert $ID.pgm boulder-$ID/$ID.jpg echo $ID > temp.txt echo "0 0.00035" >> temp.txt map_coverage < temp.txt convert coverage_m.pgm boulder-$ID/coverage-$ID.jpg /opt/local/spc/bin/makeOBJ.sh $ID mv $ID.obj boulder-$ID/ cp lsupport/$ID.IN boulder-$ID
Export
Do if needed (setup)
mkdir -p NEW_FILES/LMKFILES mkdir -p NEW_FILES/MAPFILES
or reset from previous
rm NEW_FILES/LMRKLIST.TXT
echo y | cp INSIDE.TXT LMRKLIST1.TXT /usr/local/bin/EXPORT sh EXPORT.TXT mv NEW_FILES.TAR boulder-$ID/$ID.tar
Import - prep
Here we might get into trouble, so back things up first. Suggest a full backup just in case
Do this (get rid of LMRKLIST1.TXT only the 1st time setting up the boulders. We want to run a cumulative log of all the new maplets
rm LMRKLIST1.TXT
If you are using bigmap ref, make sure you have the reference map. Thus:
echo -n cp $ID MAPFILES/
In the production directory
pwd ID=B-020A murphy -m echo making bigmap of $ID | tee -a notes bigMapRef < lsupport/$ID.IN ls -l MAPFILES/$ID.MAP | tee -a notes wc INSIDE.TXT batchDelete.sh INSIDE.TXT | tee -a notes lithos < tmpRun.txt | tee tmpOut.txt rm NEW_FILES/LMRKLIST.TXT rm NEW_FILES/LMKFILES/*.LMK rm NEW_FILES/MAPFILES/*.MAP sh rem_script.b
Import
Do the import. After untar'ing things, look at NEW_FILES to make sure things make sense.
tar -xvf $ID.tar | tee -a notes wc NEW_FILES/LMRKLIST.TXT | tee -a notes du -ha NEW_FILES /usr/local/bin/IMPORT wc NEWLIST.TXT cat NEWLIST.TXT | tee -a notes
Post-import
After you have them added to the director, you need to connect everything with a make_scriptF that touches each new file. If needed, clean out *INN, *OOT and TESTFILES*/*
echo y | cp NEWLIST.TXT make_script.in relink.sh support/F-import.seed make_scriptF.seed | tee -a notes make_scriptF sh run_script.b find_nofit | tee -a notes
Evaluate the new bigmap
Use bigmap to see how things worked out
bigMapRef < lsupport/$ID.IN map_coverage <___ID___> 0 0.00035 convert coverage_m.pgm 1.jpg echo $ID | showmap convert $ID.pgm ~/send/$ID-1.jpg convert SIGMAS.pgm ~/send/$ID-sig-1.jpg tail -5 SIGMAS.TXT | tee -a notes makeOBJ.sh $ID echo y | mv $ID.obj ~/send/
Finish the Block
blockFinish
(Compiled by EEP)