Function Reference: H5D.read

dl>
: data = H5D.read (dataset_id)
: data = H5D.read (dataset_id, mem_type_id, mem_space_id, file_space_id, xfer_plist_id)

Import data from dataset.

Parameters:

dataset_idLocation or dataset identifier
mem_type_idTarget datatype (use H5ML_DEFAULT for automatic conversion)
mem_space_idImported data dataspace identifier or H5S_ALL
file_space_idOriginal data dataspace identifier or H5S_ALL
xfer_plist_idTransfer property list identifier or H5P_DEFAULT

Description:

Only data with atomic HDF5 data types are handled. Unless mem_type_id is specified or different from ’H5ML_DEFAULT’, automatic conversion to Octave representation is as follows:

H5T_INTEGER

Corresponding integer type, e.g. H5T_STD_I8BE in file is converted to H5T_NATIVE_INT8 in memory and returned as a int8 class array.

H5T_FLOAT

Corresponding floating point type, e.g. H5T_IEEE_F32LE in file is converted to H5T_NATIVE_FLOAT in memory and returned as a single class array.

H5T_STRING

Returned as a char array.

H5T_REFERENCE

Returned as a int64 class array containing the reference identifier(s). See H5T.dereference for how to retrieve the actual object identifier.

H5T_COMPOUND

Returned as a struct with fields corresponding to field names in the compound data type.

H5T_VLEN

Only H5T_STRING base types are handled. Returned as a char array.

See original function at https://portal.hdfgroup.org/display/HDF5/H5D_READ.

See also: H5D.open, H5A.read, H5T.dereference

Source Code: H5D.read