From e38424f169d4d89a433f96094de551350e80c641 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 8 Jun 2020 14:22:49 +0200 Subject: Convert photon energy to wavelength --- libcrystfel/src/image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index 09e1e755..ca9d7028 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -395,7 +395,8 @@ static void create_detgeom(struct image *image, DataTemplate *dtempl) } - image->lambda = get_value(image, dtempl->wavelength_from); + /* FIXME: Units for wavelength/photon energy in DataTemplate */ + image->lambda = ph_eV_to_lambda(get_value(image, dtempl->wavelength_from)); image->detgeom = detgeom; /* FIXME: spectrum */ } -- cgit v1.2.3