From 7f8bc10ea92c7e42c8bb0af175d42a3e55019210 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 6 Jan 2010 16:45:46 +0100 Subject: Fix wavelength maths --- src/hdf5-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hdf5-file.c') diff --git a/src/hdf5-file.c b/src/hdf5-file.c index eac70012..b1f78b3b 100644 --- a/src/hdf5-file.c +++ b/src/hdf5-file.c @@ -248,7 +248,7 @@ int hdf5_read(struct hdfile *f, struct image *image) /* FIXME: The following are basically made up... */ image->x_centre = image->width/2; image->y_centre = image->height/2; - image->lambda = ph_en_to_lambda(J_to_eV(1793)); + image->lambda = ph_en_to_lambda(eV_to_J(1793.0)); image->fmode = FORMULATION_CLEN; image->camera_len = 75.0e-3; /* 75 mm camera length */ image->resolution = 13333.3; /* 75 micron pixel size */ -- cgit v1.2.3