def write(filename, dic, data, dataset="spectrum", overwrite=False):
    # create the file
    f = fileiobase.open_towrite(filename, overwrite=overwrite)
    f.close()
    f = h5py.File(filename, 'w')

    # write the dictionary and data to the file
    f.create_dataset(dataset, data=data)
    put_dic(f, dic, dataset)

    f.close()
    return


# data wrapping functions
Write dic,data pair to a HDF5 file
dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/fileio/glue.py/write