xdas.coordinates.InterpCoordinate.simplify#

InterpCoordinate.simplify(tolerance=None)[source]#

Return a simplified copy of this coordinate with redundant tie points removed.

Tie points whose removal would shift any label by no more than tolerance are dropped, reducing memory and I/O cost without meaningfully changing the represented axis. As a side effect, small gaps or overlaps that fall within tolerance may be absorbed, merging adjacent segments into one.

Parameters:

tolerance (float, timedelta, None, or False, optional) – Maximum allowed deviation from the original values. None uses zero tolerance (lossless). False returns an unchanged copy.

Returns:

A new coordinate of the same subclass with fewer stored points.

Return type:

Coordinate