H5S.create_simple
Create a new simple dataspace and open it for access, returning a dataspace identifier.
rank is the number of dimensions used in the dataspace.
dims is a one-dimensional array of size rank specifying the size of each dimension of the dataset. maximum_dims is an array of the same size specifying the upper limit on the size of each dimension.
Any element of dims can be 0 (zero). Note that no data can be written to a dataset if the size of any dimension of its current dataspace is 0. This is sometimes a useful initial state for a dataset.
max_dims may be an empty matrix, in which case the upper limit is the same as dims. Otherwise, no element of max_dims should be smaller than the corresponding element of dims.
max_dims may also be "H5S_UNLIMITED", in which case all dimensions are unlimited.
Any dataset with an unlimited dimension must also be chunked. See H5P.set_chunk
. Similarly, a dataset must be chunked if dims does not equal max_dims.
The dataspace identifier returned from this function must be released with H5S.close
or resource leaks will occur.
See also:
H5S.close
Source Code: H5S.create_simple