odc.geo.gridspec.GridSpec.pt2idx

GridSpec.pt2idx(x, y)[source]

Compute tile index from a point.

Parameters:
  • x (float) – X coordinate of a point in CRS units

  • y (float) – Y coordinate of a point in CRS units

Return type:

Index2d

Returns:

(ix, iy), index of a tile containing given point