aboutsummaryrefslogtreecommitdiff
path: root/src/peaks.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-02-09 16:08:27 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:14 +0100
commitda51525409db6ac1ac41460d2ce5a4eea26775de (patch)
treec0dd4bbe931f614e395c28b07e18ce1273683eef /src/peaks.c
parent467009dbfad7d41231067baa5961e02f8e31d8d0 (diff)
The per-shot wavelength is needed for scaling and post refinement
Diffstat (limited to 'src/peaks.c')
-rw-r--r--src/peaks.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/peaks.c b/src/peaks.c
index 4ae0a70b..fa0d2843 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -657,6 +657,9 @@ static void output_header(FILE *ofh, UnitCell *cell, struct image *image)
fprintf(ofh, "f0 = invalid\n");
}
+ fprintf(ofh, "photon_energy_eV = %f\n",
+ J_to_eV(ph_lambda_to_en(image->lambda)));
+
}