aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-04-08 17:03:00 +0200
committerThomas White <taw@physics.org>2014-04-08 17:08:53 +0200
commit1d6fdfc003f46ea5cf618459d215a032390afc15 (patch)
tree104745e8ef17bf9c022ed7512e73f2537adc4205 /libcrystfel/src
parent54176de692b7709e1148904089229f09758436f1 (diff)
process_hkl: Add --min-res
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/stream.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index 7860209f..09bb1631 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -500,7 +500,7 @@ void read_crystal(Stream *st, struct image *image)
do {
- float u, v, w;
+ float u, v, w, lim;
char c;
rval = fgets(line, 1023, st->fh);
@@ -556,6 +556,11 @@ void read_crystal(Stream *st, struct image *image)
crystal_set_num_saturated_reflections(cr, n);
}
+ if ( sscanf(line, "diffraction_resolution_limit = %f nm^-1",
+ &lim) == 1 ) {
+ crystal_set_resolution_limit(cr, lim*1e9);
+ }
+
if ( strcmp(line, REFLECTION_START_MARKER) == 0 ) {
RefList *reflist;