xugrid.UgridDataArrayAccessor.reindex_like#
- UgridDataArrayAccessor.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.
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: