datacube.utils.geometry.roi_from_points#

datacube.utils.geometry.roi_from_points(xy, shape, padding=0, align=None)[source]#

Compute envelope around a bunch of points and return it as roi (tuple of row/col slices)

Returned roi is clipped (0,0) –> shape, so it won’t stick outside of the valid region.