odc.geo.geobox.GeoBox.overlap_roi

GeoBox.overlap_roi(other, tol=1e-08)[source]

Compute overlap as ROI.

Figure out slice into this geobox that shares pixels with the other geobox with consistent pixel grid.

Raises:

ValueError when two geoboxes are not pixel-aligned.

Return type:

Tuple[NormalizedSlice, NormalizedSlice]