xugrid.UgridDatasetAccessor.reindex_like#
- UgridDatasetAccessor.reindex_like(other: Type[AbstractUgrid] | UgridDataArray | UgridDataset, tolerance: float = 0.0)[source]#
Conform this object to match the topology of another object. The topologies must be exactly equivalent: only the order of the nodes, edges, and faces may differ.
Topologies are matched by name, and dimension names must match for equivalent topologies.
- Parameters:
other (Ugrid1d, Ugrid2d, UgridDataArray, UgridDataset)
obj (DataArray or Dataset)
tolerance (float, default value 0.0.) – Maximum distance between inexact coordinate matches.
- Returns:
reindexed
- Return type: