xugrid.Ugrid1d.set_node_coords#
- Ugrid1d.set_node_coords(node_x: str, node_y: str, obj: DataArray | Dataset, projected: bool = True)#
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.