Skip to content

ChunkIndex

async_hdf5.ChunkIndex

An index mapping chunk grid coordinates to file byte ranges.

Iterable over ChunkLocation objects.

chunk_shape property

chunk_shape: tuple[int, ...]

The chunk shape in array elements.

dataset_shape property

dataset_shape: tuple[int, ...]

The full dataset shape in array elements.

grid_shape property

grid_shape: tuple[int, ...]

The shape of the chunk grid (number of chunks per dimension).

get

get(indices: list[int]) -> ChunkLocation | None

Look up a single chunk by its grid coordinates.

Parameters:

  • indices (list[int]) –

    The chunk grid coordinates.

Returns:

  • ChunkLocation | None

    The chunk location, or None if the chunk is not allocated.

ChunkLocation

async_hdf5.ChunkLocation

A single chunk's location within the HDF5 file.

byte_length property

byte_length: int

Size of the chunk in bytes (on-disk/compressed size).

byte_offset property

byte_offset: int

Byte offset of the chunk in the file.

filter_mask property

filter_mask: int

Bitmask indicating which filters were not applied.

A value of 0 means all filters in the pipeline were applied.

indices property

indices: tuple[int, ...]

Chunk grid coordinates.