I apologize if this is sort of a newbie question, but I am fairly new to Python and HDF5. I am using h5py, numpy, and Python 2.7. I have data from various files that need to be imported into one HDF5 file. The data from each file is to be stored in a different group. Each of these groups needs to contain 1) the raw data from the file as an m x n matrix and 2) an image raster generated from normalized raw data.
I am able to accomplish part 1, and am able to normalize the data, but I am not able to write this normalized data to a raster image because I don't know how to add a raster image to a group. It seems like there should be an easy, straightforward way to do this, but I have read the documentation and haven't found one. How would one do this in h5py, and if it can't be done using h5py, what should I use to accomplish this?
Thanks!!

numpyarray? Is the data an array as well? Reread theh5pydocumentation. I believe thenumpyarray is the basic unit of data that you can add with that package.create_datasetis the basic mechanism for adding numpy arrays to a group.h5pyhas not included this image API in its port. You might have to ask the developers: github.com/h5py/h5pymatplotlibcode that plots it as an image?