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.c4
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;
}