pyinterp.core.geohash.where

Contents

pyinterp.core.geohash.where#

pyinterp.core.geohash.where(hash: numpy.ndarray) dict#

Get the start and end indexes for successive geohash codes.

Returns a dictionary mapping successive identical geohash codes to their start and end positions in the input array.

Parameters:

hash – Array of GeoHash codes.

Returns:

Dictionary where keys are geohash codes (as bytes) and values are tuples of (start_index, end_index) in the input array.