H5DS.is_scale

Determine if dataset is a dimension scale

Syntax

bool = H5DS.is_scale(dataset_id)

Description

bool = H5DS.is_scale(dataset_id) determines whether the dataset dataset_id is a dimension scale.

Examples

fid = H5F.open('example.h5');
lat_dset_id = H5D.open(fid,'/g4/lat');
if H5DS.is_scale(lat_dset_id)
    fprintf('/g4/lat is a dimension scale.\n');
else
    fprintf('/g4/lat is not a dimension scale.\n');
end
H5D.close(lat_dset_id);
H5F.close(fid);
Was this topic helpful?