odc.geo.roi.roi_pad

odc.geo.roi.roi_pad(roi, pad, shape)[source]

Pad ROI on each side, with clamping.

Returned ROI is guaranteed to be within (0,..) -> shape.

Return type:

Union[NormalizedSlice, Tuple[NormalizedSlice, ...]]