Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

H5P.set_fapl_family

Set file access to use family driver

Syntax

H5P.set_fapl_family(fapl_id,memb_size,memb_fapl_id)

Description

H5P.set_fapl_family(fapl_id,memb_size,memb_fapl_id) sets the file access property list, specified by fapl_id, to use the family driver. memb_size is the size in bytes of each file member. memb_fapl_id is the identifier of the file access property list to be used for each family member.

Examples

plist = 'H5P_DEFAULT';
fapl = H5P.create('H5P_FILE_ACCESS');
H5P.set_fapl_family(fapl, 8192, plist);
fid = H5F.create('family%d.h5','H5F_ACC_TRUNC','H5P_DEFAULT',fapl);
type_id = H5T.copy('H5T_NATIVE_DOUBLE');
dims = [50 25];
h5_dims = fliplr(dims);
space_id = H5S.create_simple(2,h5_dims,[]);
dset_id = H5D.create(fid,'DS',type_id,space_id,plist)
data = reshape(1:prod(dims),dims);
H5D.write(dset_id,'H5ML_DEFAULT','H5S_ALL','H5S_ALL',plist,data);
H5P.close(fapl);
H5T.close(type_id);
H5S.close(space_id);
H5D.close(dset_id);
dir('*.h5');
h5disp('family%d.h5');
Was this topic helpful?