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