diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-02-27 20:34:44 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:15 +0100 |
commit | 7dd5cd690e3c61df638aaacad5d23617f72ff0da (patch) | |
tree | a8a50aec3f7285f099656f429d7a5d316ffeda7b /src | |
parent | ff7c2952b7d10d3c337714695175c12528dd9b94 (diff) |
Add clarifying comments
Diffstat (limited to 'src')
-rw-r--r-- | src/hdf5-file.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c index de25d396..33d3f95a 100644 --- a/src/hdf5-file.c +++ b/src/hdf5-file.c @@ -229,6 +229,8 @@ int hdf5_write(const char *filename, const void *data, return 1; } + /* Note the "swap" here, according to section 3.2.5, + * "C versus Fortran Dataspaces", of the HDF5 user's guide. */ size[0] = height; size[1] = width; max_size[0] = height; @@ -396,8 +398,10 @@ int hdf5_read(struct hdfile *f, struct image *image, int satcorr, uint16_t *flags; hid_t mask_dh; + /* Note the "swap" here, according to section 3.2.5, + * "C versus Fortran Dataspaces", of the HDF5 user's guide. */ image->width = f->ny; - image->height = f->nx; /* Note axis swap */ + image->height = f->nx; buf = malloc(sizeof(float)*f->nx*f->ny); |