Using the h5py module I'm trying to simply read in data from one h5 file, do some basic calculations with the data and write it back into a new h5 file. All is well, except when trying to write the dataset.
so far I have:
f = h5py.File(inData,'r')
dset = f['/DATA/DATA/']
HH = dset[...,0]
HHdB = (10*numpy.log10(HH*HH)) - 83
outfile = h5py.File(outData, 'w')
f.create_dataset('/DATA/DATA/', data=(HHdB))
This returns me the error: "ValueError: unable to create dataset (Dataset: Unable to initialize object)", which I don't understand.
Im a newbie so any help would be much appreciated!