Differences between revisions 5 and 26 (spanning 21 versions)
Revision 5 as of 2018-01-29 16:35:41
Size: 1467
Editor: JohnWeirich
Comment:
Revision 26 as of 2019-11-08 16:47:21
Size: 2319
Editor: EricPalmer
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
This block batch registers images. This block batch registers images. Each time you run a batch run of run_script.b (typically would have a different make_scriptR.seed), then run [[blockFinish]] to log the results.
Line 8: Line 8:
== Assumptions ==
 * You have invoked a Bourne-Again Shell (bash)
 * You have completed the processing steps in Block 1 - Setup Directory
 * You have populated the working directory with new images following the steps in:
  * [[Block 2 - Ingest v2]]
Line 16: Line 11:
=== 2. Set-up === === Set-up ===

For script, set the ID
Line 18: Line 15:
Ensure make_scriptR.seed is linked to the script you want to run.    ID=312
Line 21: Line 18:
=== 3. Set-up batch register files ===
You can populate make_script.in with the images to Register, or if you used the previous block, you can use the below commands.
Ensure make_scriptR.seed is linked to the script you want to run. For starters, you can use one of the default ones. If needed, you can craft something specific and place it in lsupport.
Line 24: Line 20:
# Create a list of images that need to be processed.
grep -v -e SUMFILES -e NOMINALS ../log/step1-2/output.txt | cut -c 1-12 > tmp
cat tmp | sed 's/^/ /' > make_script.in
echo END >> make_script.in
    relink.sh support/register-basic01.seed make_scriptR.seed
  relink.sh script/make_scriptR_02.seed make_scriptR.seed

  ls -l make_scriptR.seed | tee -a notes
}}}

=== Set-up batch register files ===
Replace [[make_script.in]] with a list of images that you want to use. It is important that the first character is blank and the file is terminated with an "END"

{{{
# Create a list of images that need to be processed.
  echo working with dataset active.$ID | tee -a notes
  echo y | cp lsupport/active.$ID make_script.in
  echo END >> make_script.in
  wc -l make_script.in | tee -a notes
Line 31: Line 39:
=== 4. Batch register images === === Batch register images ===
Build the scripts. We use nohup to ensure that if the login window is lost, the process still runs.
Line 34: Line 43:
# Build the scripts.
make_scriptR

#
Run the scripts
nohup sh run_script.b
  make_scriptR
  nohup sh run_script.b
Line 41: Line 47:
=== 5. Monitor progress === === Monitor progress ===
Line 43: Line 49:
# Monitor progress
ls -l *.INN *.OOT
  ls *.INN | wc
  ls *.OOT | wc
Line 47: Line 53:
=== 6. Check results === === Check results ===
This gives stats to help you see which things to work.
Line 49: Line 56:
support/registerEval.sh
mkdir ../log/step1-3
mv *INN *OOT eval* ../log/step1-3
  registerEval.sh
  wc eval/evalGood.txt eval/evalBad.txt | tee -a notes
Line 54: Line 60:
=== 7. Fix unregistered images === If you so desire, especially early on, make R/B images to see the quality of the fit
{{{
   evalReg.sh make_script.in
}}}

=== Fix unregistered images ===
Line 60: Line 71:
=== 8. Clean directory === === Rerun ===

If evalBad.txt is large, then you can tweak [[make_scriptR.seed]] and rerun on the bad list
Line 62: Line 76:
# Clean directory
sh rem_script.b
rm TESTFILES/*
rm nohup.out
   cut -c 1-12 evalBad.txt | sed -e "s/^/ /" > make_script.in
   echo "END" >> make_script.in

   relink ________.seed make_scriptR.seed

   echo "Rerunning with evalBad.txt" >> notes
   ls -l make_scriptR.seed >> notes
   make_scriptR
   nohup sh run_script.b

}}}


=== Finish the Block ===
{{{
  echo 2 | blockFinish ps$ID
Line 69: Line 95:
''(Compiled by JRW)''

CategoryHowTos
''(Compiled by EEP)''

Block 3 - Register V2

Description

This block batch registers images. Each time you run a batch run of run_script.b (typically would have a different make_scriptR.seed), then run blockFinish to log the results.

Procedure

Set-up

For script, set the ID

   ID=312

Ensure make_scriptR.seed is linked to the script you want to run. For starters, you can use one of the default ones. If needed, you can craft something specific and place it in lsupport.

  relink.sh support/register-basic01.seed make_scriptR.seed
  relink.sh script/make_scriptR_02.seed make_scriptR.seed

  ls -l make_scriptR.seed | tee -a notes

Set-up batch register files

Replace make_script.in with a list of images that you want to use. It is important that the first character is blank and the file is terminated with an "END"

# Create a list of images that need to be processed. 
  echo working with dataset active.$ID | tee -a notes
  echo y | cp lsupport/active.$ID  make_script.in
  echo END >> make_script.in
  wc -l make_script.in | tee -a notes

Batch register images

Build the scripts. We use nohup to ensure that if the login window is lost, the process still runs.

  make_scriptR
  nohup sh run_script.b

Monitor progress

  ls *.INN | wc
  ls *.OOT | wc

Check results

This gives stats to help you see which things to work.

  registerEval.sh 
  wc eval/evalGood.txt eval/evalBad.txt | tee -a notes

If you so desire, especially early on, make R/B images to see the quality of the fit

   evalReg.sh make_script.in

Fix unregistered images

# Fix unregistered images
.......

Rerun

If evalBad.txt is large, then you can tweak make_scriptR.seed and rerun on the bad list

   cut -c 1-12 evalBad.txt | sed -e "s/^/ /"  > make_script.in
   echo "END" >> make_script.in

   relink ________.seed make_scriptR.seed

   echo "Rerunning with evalBad.txt" >> notes
   ls -l make_scriptR.seed >> notes
   make_scriptR
   nohup sh run_script.b

Finish the Block

  echo 2 | blockFinish ps$ID


(Compiled by EEP)

Block 3 - Register v2 (last edited 2019-11-08 16:47:21 by EricPalmer)