aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-08-26 11:45:20 -0700
committerThomas White <taw@physics.org>2012-02-22 15:27:37 +0100
commitec2362e7e16b76b582196299e5ddae33560de641 (patch)
tree51473d633efe657b43550c74f46090c5c5a7ece7
parent819a380195c63640e1f95058dc73596259ee49f5 (diff)
Use nominal wavelength is value from HDF5 is NaN
-rw-r--r--src/hdf5-file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c
index a3e7d21b..4ec11e75 100644
--- a/src/hdf5-file.c
+++ b/src/hdf5-file.c
@@ -297,6 +297,7 @@ static double get_wavelength(struct hdfile *f)
H5Dclose(dh);
if ( r < 0 ) return -1.0;
+ if ( isnan(lambda) ) return -1.0;
/* Convert nm -> m */
if ( nm ) return lambda / 1.0e9;