aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/stream.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-06-10 14:27:49 +0200
committerThomas White <taw@physics.org>2018-06-10 15:36:44 +0200
commitbf626f98ff9d57e9feed52cb38708d4048b685d8 (patch)
treefd10d47bd470ddd63ee160b5624768079a1df479 /libcrystfel/src/stream.c
parent96dcef898b6a2585e8cdb6575d88fdb4251242f2 (diff)
indexamajig: Estimate resolution based on peaks only
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r--libcrystfel/src/stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index 9d97ff98..c11e38df 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -881,6 +881,8 @@ int write_chunk(Stream *st, struct image *i, struct imagefile *imfile,
fprintf(st->fh, "num_peaks = %lli\n", i->num_peaks);
fprintf(st->fh, "num_saturated_peaks = %lli\n", i->num_saturated_peaks);
+ fprintf(st->fh, "peak_resolution = %f nm^-1 or %f A\n",
+ i->peak_resolution/1e9, 1e10/i->peak_resolution);
if ( include_peaks ) {
if ( AT_LEAST_VERSION(st, 2, 3) ) {
ret = write_peaks_2_3(i, st->fh);