odc.geo.math.split_translation

odc.geo.math.split_translation(t)[source]

Split translation into pixel aligned and sub-pixel parts.

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

x + t = x + t_whole + t_subpix
Parameters:

t (XY[float]) – Translation as XY

Return type:

Tuple[XY[float], XY[float]]

Returns:

(t_whole, t_subpix)