xugrid.Ugrid2d.assign_edge_coords#
- Ugrid2d.assign_edge_coords(obj: DataArray | Dataset) DataArray | Dataset #
Assign node coordinates from the grid to the object.
Returns a new object with all the original data in addition to the new node coordinates of the grid.
- Parameters:
obj (xr.DataArray or xr.Dataset)
- Return type:
assigned (same type as obj)