Documentation Center

  • Trial Software
  • Product Updates

Contents

我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

H5P.set_layout

Set type of storage for dataset

Syntax

H5P.set_layout(dcpl,layout)

Description

H5P.set_layout(dcpl,layout) sets the type of storage used to store the raw data for the dataset creation property list, dcpl. The layout argument specifies the type of storage layout for raw data: H5D_COMPACT, H5D_CONTIGUOUS, or H5D_CHUNKED.

Examples

  fid = H5F.create('myfile.h5');
  type_id = H5T.copy('H5T_NATIVE_DOUBLE');
  dims = [100 200];
  h5_dims = fliplr(dims);
  space_id = H5S.create_simple(2,dims,[]);
  dcpl = H5P.create('H5P_DATASET_CREATE');
  layout = H5ML.get_constant_value('H5D_CONTIGUOUS');
  H5P.set_layout(dcpl,layout);
  dset_id = H5D.create(fid,'DS',type_id,space_id,dcpl);
  H5D.close(dset_id);
  H5F.close(fid);

See Also

|

Was this topic helpful?