hydromt.gis_utils.affine_to_coords#

hydromt.gis_utils.affine_to_coords(transform, shape, x_dim='x', y_dim='y')[source]#

Return a raster axis with pixel center coordinates based on the transform.

Parameters:
  • transform (affine transform) – Two dimensional affine transform for 2D linear mapping

  • shape (tuple of int) – The height, width of the raster.

  • x_dim (str) – The name of the x and y dimensions

  • y_dim (str) – The name of the x and y dimensions

Returns:

x, y coordinate arrays

Return type:

dict of tuple with dims and coords