aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-06-27 16:55:02 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:51 +0100
commitd9dd0cefca108ec5dc7f08aad4be9b5c2ded4389 (patch)
treee5c2e5b221d164fd1150d84f23dfc4b5f8e4dde7 /src/indexamajig.c
parent6ef48812938a69ca745e97d4dc9c1f19e3d0a08c (diff)
indexamajig: Make saturation correction optional and default to off
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 89003b34..1e005ceb 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -59,6 +59,7 @@ struct process_args
int config_nomatch;
int config_unpolar;
int config_sanity;
+ int config_satcorr;
struct detector *det;
IndexingMethod indm;
const double *intensities;
@@ -126,6 +127,8 @@ static void show_help(const char *s)
" --unpolarized Don't correct for the polarisation of the X-rays.\n"
" --check-sanity Check that indexed locations approximately correspond\n"
" with detected peaks.\n"
+" --sat-corr Correct values of saturated peaks using a table\n"
+" included in the HDF5 file.\n"
"\n\nOptions for greater performance or verbosity:\n\n"
" --verbose Be verbose about indexing.\n"
" --gpu Use the GPU to speed up the simulation.\n"
@@ -288,7 +291,7 @@ static void *process_image(void *pargsv)
return result;
}
- hdf5_read(hdfile, &image);
+ hdf5_read(hdfile, &image, pargs->config_satcorr);
if ( config_cmfilter ) {
filter_cm(&image);
@@ -409,6 +412,7 @@ int main(int argc, char *argv[])
int config_alternate = 0;
int config_unpolar = 0;
int config_sanity = 0;
+ int config_satcorr = 0;
struct detector *det;
char *geometry = NULL;
IndexingMethod indm;
@@ -449,6 +453,7 @@ int main(int argc, char *argv[])
{"prefix", 1, NULL, 'x'},
{"unpolarized", 0, &config_unpolar, 1},
{"check-sanity", 0, &config_sanity, 1},
+ {"sat-corr", 0, &config_satcorr, 1},
{0, 0, NULL, 0}
};
@@ -609,6 +614,7 @@ int main(int argc, char *argv[])
pargs->config_nomatch = config_nomatch;
pargs->config_unpolar = config_unpolar;
pargs->config_sanity = config_sanity;
+ pargs->config_satcorr = config_satcorr;
pargs->cell = cell;
pargs->det = det;
pargs->indm = indm;