Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

H5D.get_storage_size

Determine required storage size

Syntax

dataset_size = H5D.get_storage_size(dataset_id)

Description

dataset_size = H5D.get_storage_size(dataset_id) returns the amount of storage that is required for the dataset specified by dataset_id.

Examples

fid = H5F.open('example.h5');
dset_id = H5D.open(fid,'/g1/g1.1/dset1.1.1');
dataset_size = H5D.get_storage_size(dset_id);
H5D.close(dset_id);
H5F.close(fid);
Was this topic helpful?