datacube.utils.geometry.split_translation#

datacube.utils.geometry.split_translation(t)[source]#

Split translation into pixel aligned and sub-pixel components.

Subpixel translation is guaranteed to be in [-0.5, +0.5] range.

> x + t = x + t_whole + t_subpix

Parameters

t – (float, float)

Returns

(t_whole: (float, float), t_subpix: (float, float))