From ec1fce9b2bfa07458f2c0d17bbbe86c449e7743d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 29 Nov 2013 16:06:32 +0100 Subject: indexamajig: Add --int-diag=strong --- libcrystfel/src/integration.c | 7 +++++++ libcrystfel/src/integration.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c index 042fcf7b..b51ef7f7 100644 --- a/libcrystfel/src/integration.c +++ b/libcrystfel/src/integration.c @@ -1310,6 +1310,13 @@ static int get_int_diag(struct intcontext *ic, Reflection *refl) return i < -5.0*sigi; } + if ( ic->int_diag == INTDIAG_STRONG ) { + double i, sigi; + i = get_intensity(refl); + sigi = get_esd_intensity(refl); + return i > 3.0*sigi; + } + if ( ic->int_diag == INTDIAG_INDICES ) { signed int h, k, l; get_indices(refl, &h, &k, &l); diff --git a/libcrystfel/src/integration.h b/libcrystfel/src/integration.h index ec674128..e023318a 100644 --- a/libcrystfel/src/integration.h +++ b/libcrystfel/src/integration.h @@ -41,7 +41,8 @@ typedef enum { INTDIAG_ALL, INTDIAG_INDICES, INTDIAG_NEGATIVE, - INTDIAG_IMPLAUSIBLE + INTDIAG_IMPLAUSIBLE, + INTDIAG_STRONG } IntDiag; -- cgit v1.2.3