odc.geo.math.apply_affine

odc.geo.math.apply_affine(A, x, y)[source]

Broadcast A*(x_i, y_i) across all elements of x/y.

Arrays could be in any shape (usually 2d image).

Parameters:
  • A (Affine) – Affine transform to apply

  • x (ndarray) – x coordinates (any shape)

  • y (ndarray) – y coordinates (same shape as x)

Return type:

Tuple[ndarray, ndarray]

Returns:

Transformed coordinate as two arrays of the same shape as input (x', y')