Data.to_hdf

Data.to_hdf(filename=None)

Write the current object into an hdf5 file or group within a file.

Writes the data in afashion that is compatible with being loaded in again.

Parameters:

datafile (Data) – Data object to work with if not being used as a bound method.

Keyword Arguments:

filename (string or h5py.Group) – Either a string, of h5py.File or h5py.Group object into which to save the file. If this is a string, the corresponding file is opened for writing, written to and save again.

Returns:

A copy of the object