diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-06-27 16:55:02 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:51 +0100 |
commit | d9dd0cefca108ec5dc7f08aad4be9b5c2ded4389 (patch) | |
tree | e5c2e5b221d164fd1150d84f23dfc4b5f8e4dde7 /src/hdf5-file.c | |
parent | 6ef48812938a69ca745e97d4dc9c1f19e3d0a08c (diff) |
indexamajig: Make saturation correction optional and default to off
Diffstat (limited to 'src/hdf5-file.c')
-rw-r--r-- | src/hdf5-file.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |