slice_sites(shape, chunks, sites=None, chunks_per_slice=5)[source]

Slice sites into given number of sub-sets with given number of chunks per sub-set

  • shape (tuple) – Shape of dataset array that data is being extracted from

  • chunks (tuple) – Chunk size of dataset array in .h5 file from which dataset is being extracted

  • sites (list | slice, optional) – Subset of sites to extract, by default None or all sites (sites is synonymous with gids aka spatial indices)

  • chunks_per_slice (int, optional) – Number of chunks to extract in each slice, by default 5


slices (list) – List of slices to extract