h5datasetCreate a dataset and write the dataCalling Sequence
h5dataset(obj, name, sourceInfo [, sourceType], data, targetInfo [, targetType])
h5dataset(filename, name, sourceInfo [, sourceType], data, targetInfo [, targetType])
Argumentsobja H5Objectnamea string giving the path to the new datasetsourceInfoa matrix 5xn of doublessourceTypea string giving the type of the sourcedataa Scilab datatargetInfoa matrix 6xn of doublestargetTypea string giving the type of the targetfilenamea string giving the filenameDescriptionCreate a new named dataset (if it does not exist) based on the Scilab data passed as argument.
The target HDF5 type can be chosen in the list available in the HDF5 manual.
Examples of this HDF5 type are "H5T_MIPS_U32" or "H5T_STD_B64BE", but shortcuts as "MIPS_U32" or "STD_B64BE" can also be used.
The source info gives information on how to get the data. It is a matrix 5xn where n is the number of dimensions of the data. The rows give the following information:
1st row: the data dimensions.
2nd row: the start point of the hyperslab.
3rd row: the hyperslab's count.
4th row: the hyperslab's stride.
5th row: the hyperslab's block.
For more explanation about hyperslab selection, see h5write.
The targetInfo matrix is 6xn double matrix. The first row gives the dimensions of the target dataset and the second one gives the maximal possible dimensions. When the first and the second row are not equal, the dataset will be chunked. The rows 3 to 6 give the hyperslab's start, count, stride and block.ExamplesSee Also
h5group
h5attr
h5write
h5writeattr
History5.5.0HDF5 module introduced.