From d9dd0cefca108ec5dc7f08aad4be9b5c2ded4389 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 27 Jun 2010 16:55:02 +0200 Subject: indexamajig: Make saturation correction optional and default to off --- src/hdf5-file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hdf5-file.c') diff --git a/src/hdf5-file.c b/src/hdf5-file.c index a5fc7d26..71ab0354 100644 --- a/src/hdf5-file.c +++ b/src/hdf5-file.c @@ -326,7 +326,7 @@ static void debodge_saturation(struct hdfile *f, struct image *image) } -int hdf5_read(struct hdfile *f, struct image *image) +int hdf5_read(struct hdfile *f, struct image *image, int satcorr) { herr_t r; float *buf; @@ -379,7 +379,7 @@ int hdf5_read(struct hdfile *f, struct image *image) image->f0_available = 1; } - debodge_saturation(f, image); + if ( satcorr ) debodge_saturation(f, image); return 0; } -- cgit v1.2.3