Quantcast

Documentation Center

  • Trial Software
  • Product Updates

H5D.open

Open specified dataset

Syntax

dataset_id = H5D.open(loc_id,name)
dataset_id = H5D.open(loc_id,name,dapl_id)

Description

dataset_id = H5D.open(loc_id,name) opens the dataset specified by name in the file or group specified by loc_id.

dataset_id = H5D.open(loc_id,name,dapl_id) opens the dataset specified by name in the file or group specified by loc_id. The dataset access property list, dapl_id, provides information regarding access to the dataset.

Examples

fid = H5F.open('example.h5'); 
gid = H5G.open(fid,'/g2'); 
dset_id = H5D.open(gid,'dset2.2');
H5D.close(dset_id);
H5F.close(fid);

See Also

Was this topic helpful?