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_fletcher32

Set Fletcher32 checksum filter in dataset creation

Syntax

H5P.set_fletcher32(plist_id)

Description

H5P.set_fletcher32(plist_id) sets the Fletcher32 checksum filter in the dataset creation property list specified by plist_id. The dataset creation property list must also have chunking enabled.

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');
  chunk_dims = [10 20];
  h5_chunk_dims = fliplr(chunk_dims);
  H5P.set_chunk(dcpl,h5_chunk_dims);
  H5P.set_fletcher32(dcpl);
  dset_id = H5D.create(fid,'DS',type_id,space_id,dcpl);
  H5D.close(dset_id);
  H5F.close(fid);
Was this topic helpful?