From e0f621b0fa2094283f9a28155e5fbc75c74bd82c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 24 Apr 2011 11:42:58 +0200 Subject: indexamajig: Complain more loudly about using nominal value, and convert it properly --- src/indexamajig.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/indexamajig.c') diff --git a/src/indexamajig.c b/src/indexamajig.c index ba921e0d..7da8a280 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -262,7 +262,9 @@ static void process_image(void *pp, int cookie) hdf5_read(hdfile, &image, pargs->static_args.config_satcorr); if ( image.lambda < 0.0 ) { if ( beam != NULL ) { - image.lambda = beam->photon_energy; + ERROR("Using nominal photon enery of %.2f eV\n", + beam->photon_energy); + image.lambda = ph_en_to_lambda(eV_to_J(beam->photon_energy)); } else { ERROR("No wavelength in file, so you need to give " "a beam parameters file with -b.\n"); -- cgit v1.2.3