Dataset.create

Dataset create(hid_t locId, string name, hid_t typeId, hid_t spaceId, hid_t lcpl = H5P_DEFAULT, hid_t dcpl = H5P_DEFAULT, hid_t dapl = H5P_DEFAULT)

Creates a new dataset.

Parameters

locIdLocation identifier (file or group handle)
nameName of the dataset to create
typeIdDatatype identifier
spaceIdDataspace identifier
lcplLink creation property list (default: H5P_DEFAULT)
dcplDataset creation property list (default: H5P_DEFAULT)
daplDataset access property list (default: H5P_DEFAULT)

Returns

A new Dataset instance

Throws

HDF5Exception if dataset creation fails