xugrid.UgridDatasetAccessor.set_node_coords#

UgridDatasetAccessor.set_node_coords(node_x: str, node_y: str, topology: str = None)[source]#

Given names of x and y coordinates of the nodes of an object, set them as the coordinates in the grid.

Parameters:
  • node_x (str) – Name of the x coordinate of the nodes in the object.

  • node_y (str) – Name of the y coordinate of the nodes in the object.

  • topology (str, optional) – Name of the grid topology in which to set the node_x and node_y coordinates. Can be omitted if the UgridDataset contains only a single grid.