aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-06 16:45:46 +0100
committerThomas White <taw@physics.org>2010-01-06 16:45:46 +0100
commit7f8bc10ea92c7e42c8bb0af175d42a3e55019210 (patch)
treebea42139a8d438182b28614918fdd0a6ea4b7ff0
parent091685f97b125556ab41a921659c8e5bc5af4845 (diff)
Fix wavelength maths
-rw-r--r--src/hdf5-file.c2
1 files changed, 1 insertions, 1 deletions
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 */