Size: 1449
Comment:
|
Size: 1508
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
= STILL BEING EDITED! = |
|
Line 8: | 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 10: | 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 18: | Line 11: |
=== 2. Set-up === | === Set-up === 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 20: | Line 14: |
Ensure make_scriptR.seed is linked to the script you want to run. | relink script/make_scriptR_01.seed make_scriptR.seed relink script/make_scriptR_02.seed make_scriptR.seed |
Line 23: | Line 18: |
=== 3. Set-up batch register files === | === 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" |
Line 25: | Line 22: |
# set-up batch register files ln -s lsupport/$imgListName make_script.in ln -s scripts/make_scriptR.SEED make_scriptR.seed make_scriptR ls -l |
# Create a list of images that need to be processed. sed 's/^/ /' lsupport/imageList.Ap6 > make_script.in echo END >> make_script.in |
Line 33: | Line 28: |
=== 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 36: | Line 32: |
# Batch register images register -v nohup sh run_script.b & |
make_scriptR nohup sh run_script.b |
Line 41: | Line 36: |
=== 5. Monitor progress === | === Monitor progress === |
Line 43: | Line 38: |
# Monitor progress ls -l *.INN *.OOT |
ls *.INN | wc ls *.OOT | wc |
Line 47: | Line 42: |
=== 6. Check results === | === Check results === |
Line 49: | Line 44: |
# Check results ls *OOT > tmpList sh support/after.sh 0.5 tmpList cat goodList cat badList sh support/evalReg.sh badList |
registerEval.sh wc evalGood.txt evalBad.txt |
Line 57: | Line 48: |
=== 7. Fix unregistered images === | === Fix unregistered images === |
Line 63: | Line 54: |
=== 8. Clean directory === | === Finish the Block === |
Line 65: | Line 56: |
# Clean directory sh rem_script.b rm TESTFILES/* rm nohup.out |
blockFinish Ap6 |
Line 70: | Line 58: |
=== 9. Complete procedure === {{{ # Block Complete exit # Save block log mv typescript step-reg }}} |
|
Line 83: | Line 60: |
''(Compiled by DL)'' 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
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 script/make_scriptR_01.seed make_scriptR.seed relink script/make_scriptR_02.seed make_scriptR.seed
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. sed 's/^/ /' lsupport/imageList.Ap6 > make_script.in echo END >> make_script.in
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
registerEval.sh wc evalGood.txt evalBad.txt
Fix unregistered images
# Fix unregistered images .......
Finish the Block
blockFinish Ap6
(Compiled by EEP)