aboutsummaryrefslogtreecommitdiff
path: root/src/hdf5-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hdf5-file.c')
-rw-r--r--src/hdf5-file.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c
index bcd51f99..a24a663a 100644
--- a/src/hdf5-file.c
+++ b/src/hdf5-file.c
@@ -390,7 +390,8 @@ static void debodge_saturation(struct hdfile *f, struct image *image)
}
-int hdf5_read(struct hdfile *f, struct image *image, int satcorr)
+int hdf5_read(struct hdfile *f, struct image *image, int satcorr,
+ double nominal_photon_energy)
{
herr_t r;
float *buf;
@@ -432,8 +433,8 @@ int hdf5_read(struct hdfile *f, struct image *image, int satcorr)
/* Read wavelength from file */
image->lambda = get_wavelength(f);
if ( image->lambda < 0.0 ) {
- ERROR("Couldn't read wavelength - using 2 keV.\n");
- image->lambda = ph_en_to_lambda(eV_to_J(2000.0));
+ ERROR("Couldn't read wavelength - using nominal value.\n");
+ image->lambda = ph_en_to_lambda(eV_to_J(nominal_photon_energy));
}
image->f0 = get_f0(f);