aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-11-28 16:31:19 +0100
committerThomas White <taw@physics.org>2012-11-29 12:01:20 +0100
commit483e3d5883461f0572a181211b6aa306fd2bfdc0 (patch)
tree2ff96dfecc0e82aab5ad6dc231d37798cedc43dc /src
parent1d7ab9644999e4ec44bd90fdd249515bf05770b3 (diff)
indexamajig: Add --integrate-saturated
Diffstat (limited to 'src')
-rw-r--r--src/im-sandbox.c3
-rw-r--r--src/im-sandbox.h1
-rw-r--r--src/indexamajig.c5
3 files changed, 8 insertions, 1 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c
index 70839f21..80bb78e0 100644
--- a/src/im-sandbox.c
+++ b/src/im-sandbox.c
@@ -328,7 +328,8 @@ static void process_image(const struct index_args *iargs,
iargs->min_int_snr,
iargs->ir_inn,
iargs->ir_mid,
- iargs->ir_out);
+ iargs->ir_out,
+ iargs->integrate_saturated);
}
} else {
image.reflections = NULL;
diff --git a/src/im-sandbox.h b/src/im-sandbox.h
index 8ad9fd90..9f23f88b 100644
--- a/src/im-sandbox.h
+++ b/src/im-sandbox.h
@@ -66,6 +66,7 @@ struct index_args
double ir_mid;
double ir_out;
struct copy_hdf5_field *copyme;
+ int integrate_saturated;
};
diff --git a/src/indexamajig.c b/src/indexamajig.c
index f628eb29..2e5c8904 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -161,6 +161,8 @@ static void show_help(const char *s)
" least 10%% of the located peaks.\n"
" --no-bg-sub Don't subtract local background estimates from\n"
" integrated intensities.\n"
+" --integrate-saturated During the final integration stage, don't reject\n"
+" peaks which contain pixels above max_adu.\n"
);
}
@@ -242,6 +244,7 @@ int main(int argc, char *argv[])
float ir_inn = 4.0;
float ir_mid = 5.0;
float ir_out = 7.0;
+ int integrate_saturated = 0;
copyme = new_copy_hdf5_field_list();
if ( copyme == NULL ) {
@@ -288,6 +291,7 @@ int main(int argc, char *argv[])
{"min-integration-snr",1, NULL, 12},
{"tolerance", 1, NULL, 13},
{"int-radius", 1, NULL, 14},
+ {"integrate-saturated",0, &integrate_saturated,1},
{0, 0, NULL, 0}
};
@@ -634,6 +638,7 @@ int main(int argc, char *argv[])
iargs.ir_inn = ir_inn;
iargs.ir_mid = ir_mid;
iargs.ir_out = ir_out;
+ iargs.integrate_saturated = integrate_saturated;
create_sandbox(&iargs, n_proc, prefix, config_basename, fh,
use_this_one_instead, ofh);