xugrid.Ugrid2d.reindex_like#
- Ugrid2d.reindex_like(other: Ugrid2d, obj: DataArray | Dataset, tolerance: float = 0.0)[source]#
Conform a DataArray or Dataset to match the topology of another Ugrid2D topology. The topologies must be exactly equivalent: only the order of the nodes, edges, and faces may differ.
- Parameters:
other (Ugrid2d)
obj (DataArray or Dataset)
tolerance (float, default value 0.0.) – Maximum distance between inexact coordinate matches.
- Returns:
reindexed
- Return type:
DataArray or Dataset