datacube.utils.geometry.compute_axis_overlap#

datacube.utils.geometry.compute_axis_overlap(Ns, Nd, s, t)[source]#

s, t define linear transform from destination coordinate space to source >> x_s = s * x_d + t

Ns – number of pixels along some dimension of source image: (0, Ns) Nd – same as Ns but for destination image

Return type

Tuple[slice, slice]

Returns

(slice in the source image, slice in the destination image)