Quantcast

Documentation Center

  • Trial Software
  • Product Updates

H5S.get_simple_extent_type

Data space class

Syntax

space_type = H5S.get_simple_extent_type(space_id)

Description

space_type = H5S.get_simple_extent_type(space_id) returns the data space class of the data space specified by space_id.

Examples

fid = H5F.open('example.h5');
dset_id = H5D.open(fid,'/g3/integer');
space_id = H5D.get_space(dset_id);
space_type = H5S.get_simple_extent_type(space_id);
switch(space_type)
    case H5ML.get_constant_value('H5S_SCALAR')
        fprintf('scalar\n');
    case H5ML.get_constant_value('H5S_SIMPLE')
        fprintf('simple\n');
    case H5ML.get_constant_value('H5S_NULL')
        fprintf('none\n');
end

See Also

| |

Was this topic helpful?