From 2318ae07fa5baaead4c1bc55bc4e63694c1942dc Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 28 Aug 2011 04:29:43 -0700 Subject: Hooks for estimation of maximum resolution for each image --- libcrystfel/src/stream.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libcrystfel/src/stream.c') 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; -- cgit v1.2.3