aboutsummaryrefslogtreecommitdiff
path: root/src/hdf5-file.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-26 10:58:13 +0100
committerThomas White <taw@physics.org>2010-02-26 13:40:11 +0100
commit86dd71e8640394f4e4f5aa71b2e5f51f5fea4a11 (patch)
treee7039c5d4e9b5477bc1e350e0330d157125d5c9f /src/hdf5-file.c
parentb4664bc2a399463bd4e01f331a153749b3947b8f (diff)
Handle images as floats rather than int16_t
Also, remove bloom - it's not a useful model for what really happens and takes too long (this isn't a detector simulation..)
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 3fc5de8c..d8ff7038 100644
--- a/src/hdf5-file.c
+++ b/src/hdf5-file.c
@@ -176,11 +176,11 @@ static double get_wavelength(struct hdfile *f)
int hdf5_read(struct hdfile *f, struct image *image)
{
herr_t r;
- int16_t *buf;
+ float *buf;
buf = malloc(sizeof(float)*f->nx*f->ny);
- r = H5Dread(f->dh, H5T_NATIVE_INT16, H5S_ALL, H5S_ALL,
+ r = H5Dread(f->dh, H5T_NATIVE_FLOAT, H5S_ALL, H5S_ALL,
H5P_DEFAULT, buf);
if ( r < 0 ) {
ERROR("Couldn't read data\n");