hydromt.gis.Dataset.vector.to_xy#

gis.Dataset.vector.to_xy(x_name='x', y_name='y') DataArray | Dataset#

Convert Dataset/ DataArray with Point geometries to x,y structure.

Parameters:
  • x_name (str, optional) – The name of the x and y coordinates.

  • y_name (str, optional) – The name of the x and y coordinates.

Returns:

Dataset with new x, y coordinates

Return type:

xr.Dataset