Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

라이선스가 부여된 사용자만 번역 문서를 볼 수 있습니다. 번역 문서를 보려면 로그인하십시오.

H5S.copy

Create copy of data space

Syntax

output = H5S.copy(space_id)

Description

output = H5S.copy(space_id) creates a new data space, which is an exact copy of the dataspace identified by space_id. The output argument is a data space identifier.

Examples

fid = H5F.open('example.h5');
dset_id = H5D.open(fid,'/g2/dset2.1');
space1_id = H5D.get_space(dset_id);
space2_id = H5S.copy(space1_id);
[~,dims1] = H5S.get_simple_extent_dims(space1_id)
[~,dims2] = H5S.get_simple_extent_dims(space2_id)
Was this topic helpful?