dask.array.overlap.trim_overlap

dask.array.overlap.trim_overlap

dask.array.overlap.trim_overlap(x, depth, boundary=None)[source]

Trim sides from each block.

This couples well with the map_overlap operation which may leave excess data on each block.