indices_to_coords#
- geowombat.indices_to_coords(col_index, row_index, transform)#
Converts array indices to map coordinates.
- Parameters:
col_index (float or 1d array) – The column index.
row_index (float or 1d array) – The row index.
transform (Affine, DataArray, or tuple) – The affine transform.
- Returns:
(x, y)
- Return type:
tuple
Example
>>> import geowombat as gw >>> from geowombat.core import indices_to_coords >>> >>> with gw.open('image.tif') as src: >>> x, y = indices_to_coords(j, i, src)