Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Contents

H5P.get_fill_time

Return time when fill values are written to dataset

Syntax

fill_time = H5P.get_fill_time(plist_id)

Description

fill_time = H5P.get_fill_time(plist_id) returns the time when fill values are written to the dataset specified by the dataset creation property list plist_id. The fill_time output is one of the following values: H5D_FILL_TIME_IFSET, H5D_FILL_TIME_ALLOC, or H5D_FILL_TIME_NEVER.

Examples

fid = H5F.open('example.h5');
dset_id = H5D.open(fid,'/g3/integer');
dcpl = H5D.get_create_plist(dset_id);
fill_time = H5P.get_fill_time(dcpl);
switch(fill_time)
    case H5ML.get_constant_value('H5D_FILL_TIME_IFSET')
        fprintf('upon allocation if and only if fill value set by user\n');
    case H5ML.get_constant_value('H5D_FILL_TIME_ALLOC')
        fprintf('written when storage space is allocated\n');
    case H5ML.get_constant_value('H5D_FILL_TIME_NEVER')
        fprintf('fill values are never written\n');
end

See Also

|

Was this topic helpful?