xugrid.Ugrid2d.assign_face_coords#
- Ugrid2d.assign_face_coords(obj: DataArray | Dataset) DataArray | Dataset [source]#
Assign face 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)