aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/stream.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-08-28 04:29:43 -0700
committerThomas White <taw@physics.org>2012-02-22 15:27:42 +0100
commit2318ae07fa5baaead4c1bc55bc4e63694c1942dc (patch)
tree85a7397ad3f58e4d2d58a91eac0e5cc682e02282 /libcrystfel/src/stream.c
parent0f7fc1d4d2e8022a1166e17ccd694f1d1b855d67 (diff)
Hooks for estimation of maximum resolution for each image
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r--libcrystfel/src/stream.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index ce948109..b713e399 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -241,6 +241,15 @@ void write_chunk(FILE *ofh, struct image *i, struct hdfile *hdfile, int f)
fprintf(ofh, "photon_energy_eV = %f\n",
J_to_eV(ph_lambda_to_en(i->lambda)));
+ if ( i->reflections != NULL ) {
+
+ fprintf(ofh, "diffraction_resolution_limit"
+ " = %.2f nm^-1 or %.2f A\n",
+ i->diffracting_resolution/1e9,
+ 1e9 / i->diffracting_resolution);
+
+ }
+
if ( i->det != NULL ) {
int j;