diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-02-17 11:53:00 -0800 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:15 +0100 |
commit | 6ffd78ac10f229608bbdf920799bb3aa8f4fdd2d (patch) | |
tree | 9ca3b44c7f63c3f287a4f0a9b1dda81679203c59 /src/hdf5-file.c | |
parent | 50523729d22be834315ff9084f73a36a235400ab (diff) |
Decouple renderer from 'hdfsee'
Diffstat (limited to 'src/hdf5-file.c')
-rw-r--r-- | src/hdf5-file.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c index 3a541584..de25d396 100644 --- a/src/hdf5-file.c +++ b/src/hdf5-file.c @@ -89,18 +89,6 @@ int hdfile_set_image(struct hdfile *f, const char *path) } -int hdfile_get_width(struct hdfile *f) -{ - return f->ny; -} - - -int hdfile_get_height(struct hdfile *f) -{ - return f->nx; -} - - int get_peaks(struct image *image, struct hdfile *f) { hid_t dh, sh; @@ -408,9 +396,8 @@ int hdf5_read(struct hdfile *f, struct image *image, int satcorr, uint16_t *flags; hid_t mask_dh; - image->width = hdfile_get_width(f); - image->height = hdfile_get_height(f); - STATUS("%i, %i\n", image->width, image->height); + image->width = f->ny; + image->height = f->nx; /* Note axis swap */ buf = malloc(sizeof(float)*f->nx*f->ny); |