aboutsummaryrefslogtreecommitdiff
path: root/src/reflections.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-04-10 18:22:21 +0100
committerThomas White <taw@bitwiz.org.uk>2010-04-10 18:22:21 +0100
commitb925bc42dd86073b06dc5f8146ad1babc27741ef (patch)
tree6263940b4b899b47267361fb640f6773fa5e320e /src/reflections.c
parentd554760847b4beb9ee5e8e187168971e15239e38 (diff)
process_hkl: Minimum ten counts before writing a reflection
Diffstat (limited to 'src/reflections.c')
-rw-r--r--src/reflections.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reflections.c b/src/reflections.c
index c943d014..b49b4a15 100644
--- a/src/reflections.c
+++ b/src/reflections.c
@@ -22,7 +22,8 @@
void write_reflections(const char *filename, unsigned int *counts,
- double *ref, int zone_axis, UnitCell *cell)
+ double *ref, int zone_axis, UnitCell *cell,
+ unsigned int min_counts)
{
FILE *fh;
signed int h, k, l;
@@ -59,7 +60,7 @@ void write_reflections(const char *filename, unsigned int *counts,
if ( counts ) {
N = lookup_count(counts, h, k, l);
- if ( N == 0 ) continue;
+ if ( N < min_counts ) continue;
} else {
N = 1;
}