pynbody.util.hdf_bulk_read.decode

pynbody.util.hdf_bulk_read.decode#

Undoing HDF5’s deflate, shuffle and fletcher32 filters.

Functions

decode_chunk(raw, filter_mask, pipeline, ...)

Undo the filter pipeline applied to a raw HDF5 chunk, returning its bytes as a uint8 array.

fletcher32(data)

Return the checksum HDF5's fletcher32 filter computes for data (bytes or a uint8 array).