aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */