processing:remove-used-gve
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| processing:remove-used-gve [2019/06/04 16:02] – created matthias | processing:remove-used-gve [2020/11/10 09:56] (current) – smerkel | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Remove Used G-vectors ====== | ====== Remove Used G-vectors ====== | ||
| - | The script '' | + | ===== Description ===== |
| - | In the [[processing: | + | In the [[processing: |
| - | The downside is that one has to modify the //.ini// file and the input of '' | + | The downside is that one has to modify the //.ini// file and the input of this tool before every new run (we are currently working on a script which avoids this). However, it is worth it: Experience says that you can increase the number of indexed grains easily by more than 30 %, simply by repeating the GrainSpotter algorithm. Usually, 5-6 repetitions are enough before GrainSpotter does not find any new grains anymore. |
| + | |||
| + | For historical reasons, there are two competing TIMEleSS tools for this task, '' | ||
| + | |||
| + | ==== timelessClearGVEGrains ==== | ||
| + | |||
| + | < | ||
| + | timelessClearGVEGrains | ||
| + | usage: timelessClearGVEGrains GSFile oldGVE.gve newGVE.gve | ||
| + | |||
| + | Creates a new list of g-vectors, removing g-vectors which have already been | ||
| + | assigned to grains by GrainSpotter This is part of the TIMEleSS project | ||
| + | http:// | ||
| + | |||
| + | positional arguments: | ||
| + | gsfile | ||
| + | oldGVE | ||
| + | newGVE | ||
| + | |||
| + | optional arguments: | ||
| + | -h, --help | ||
| + | -v VERBOSE, --verbose VERBOSE | ||
| + | Write out more details about what it does. Default is | ||
| + | Default is False | ||
| + | -s SKIPBOGUS, --skipbogus SKIPBOGUS | ||
| + | Skip bogus grains in GrainSpotter output. Default is | ||
| + | Default is False | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== timelessRemoveUsedGVE.py ==== | ||
| + | |||
| + | The script '' | ||
| < | < | ||
| timelessRemoveUsedGVE.py -h | timelessRemoveUsedGVE.py -h | ||
| - | usage: timelessRemoveUsedGVE.py | + | usage: timelessRemoveUsedGVE.py |
| - | Reads an indexing log file and generates | + | Takes a logfile from GrainSpotter and a G-vector |
| - | with MTex This is part of the TIMEleSS project http:// | + | Compares both and creates |
| + | could not be indexed. Now GrainSpotter can be run again with the new G-vector | ||
| + | file. This is part of the TIMEleSS project http:// | ||
| optional arguments: | optional arguments: | ||
| Line 22: | Line 56: | ||
| -o GVE_OUTPUT, --gve_output GVE_OUTPUT | -o GVE_OUTPUT, --gve_output GVE_OUTPUT | ||
| Output g-vector file (.gve file)(required) | Output g-vector file (.gve file)(required) | ||
| - | |||
| </ | </ | ||
| + | |||
| + | ===== Usage ===== | ||
| + | |||
| + | ==== General workflow ==== | ||
| + | Repeat these steps several times: | ||
| + | - Run GrainSpotter | ||
| + | - Run the G-vector removal script | ||
| + | - Change your //.ini// file ('' | ||
| + | |||
| + | You should continue repeating the steps until GrainSpotter doesn' | ||
| + | |||
| + | ==== Example ==== | ||
| + | You should start with a G-vector file from ImageD11. Let's call it **gvectors.gve**. | ||
| + | |||
| + | Run GrainSpotter (//step 1//) and then the G-vector removal script (//step 2//). The output will then be a new G-vector file. After that, you may have these files: | ||
| + | * **gvectors.gve** (//.gve// file from [[software: | ||
| + | * **gvectors_1.gve** (//.gve// file from timelessRemoveUsedGVE.py) | ||
| + | * **logfile.log** (//.log// file from [[software: | ||
| + | |||
| + | Next, you have to change your //.ini// file (//step 3//) so that it is referring to **gvectors_1.gve** instead of **gvectors.gve**. Also, change the output file so it does not overwrite the existing //.log// file. | ||
| + | |||
| + | Then, run GrainSpotter again (//step 1//). You will see, it will be faster this time but still find some grains. | ||
| + | |||
| + | Now, after the second GrainSpotter run, you may have a file collection like this: | ||
| + | * **gvectors.gve** (//.gve// file from [[software: | ||
| + | * **gvectors_1.gve** (//.gve// file from the first G-vector removal) | ||
| + | * **logfile.log** (//.log// file from the first [[software: | ||
| + | * **logfile_1.log** (//.log// file from the second [[software: | ||
| + | |||
| + | Running '' | ||
| + | |||
| + | ==== Merging the output ==== | ||
| + | |||
| + | Use [[processing: | ||
processing/remove-used-gve.1559656949.txt.gz · Last modified: by matthias
