diff options
author | Thomas White <taw@physics.org> | 2010-05-27 17:10:04 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-05-27 17:10:04 +0200 |
commit | 0a721b5c0b022208b567dae7e0638b9da9c27cbd (patch) | |
tree | e56273b8177b1dabe2a05ea5ecb49315d4206b3e /src/hdf5-file.c | |
parent | 7c45e455a6ee020174580355f746e7b03a1119df (diff) |
Handle I0 == 1.0 correctly
Diffstat (limited to 'src/hdf5-file.c')
-rw-r--r-- | src/hdf5-file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c index d6d646ed..5573267b 100644 --- a/src/hdf5-file.c +++ b/src/hdf5-file.c @@ -343,6 +343,9 @@ int hdf5_read(struct hdfile *f, struct image *image) if ( image->f0 < 0.0 ) { ERROR("Couldn't read incident intensity - using 1.0.\n"); image->f0 = 1.0; + image->f0_available = 0; + } else { + image->f0_available = 1; } debodge_saturation(f, image); |