= Block 14 - Shift V2 =


== Description ==

If the model has more than <criteria> of deviation from the center of figure, then shift it to be centered

== Procedure ==

=== Set-up ===
Set the ID
{{{
ID=farV03
echo "Shifting the model, ID = $shapeVar" | tee -a notes
}}}


Record the current offset and make a new model that will be adjusted

   {{{
cd SHAPEFILES
echo shape-$ID-512 | shape_info | tee -a ../notes
cp shape-$ID-512 shift-$ID.txt
cd ..
   }}}



Run the [[shift]] command. 

(Comment -- Unsure if the shape needs to be installed before geometry is run)
Notice, the shape model cannot have the .TXT at the end with the [[shift]] program.

   {{{
murphy
shift
OffsetX OffsetY OffsetZ
y
shift-<whatever>
n
y

geometry
20
1
n
n
   }}}



=== Install Shape ===
Install the shape and review the fit to our main images

   {{{
cd SHAPEFILES
echo shift-$ID.txt | shape_info | tee -a ../notes
relink shift-$ID.txt SHAPE.TXT | tee -a ../notes
cd ..
evalReg.sh lsupport/theEight
}}}


=== Finish the Block ===
   {{{
echo 11 | blockFinish far\
}}}




=== Continue the process ===
While this completes the block, you still need to do the following procedures to make the shape model solid
   * [[Block 5 - Iterate v2]]
   * [[Block 13 - BuildShape v2]]





----------

''(Compiled by EEP)''