odc.geo.roi.roi_from_points

odc.geo.roi.roi_from_points(xy, shape, padding=0, align=None)[source]

Build ROI from sample points.

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

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