Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions xrspatial/contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,10 @@ def contours(
CuPy and Dask+CuPy arrays are accepted as input. Data is
transferred to CPU for the tracing step because segment stitching
is an inherently sequential graph traversal. For Dask inputs,
each chunk is processed independently and results are merged,
keeping peak memory proportional to chunk size.
chunking bounds the per-chunk scan buffers, but the global merge
step materializes all contour segments at once to stitch polylines
across chunk boundaries, so peak memory scales with total contour
complexity rather than chunk size.

Examples
--------
Expand Down
1 change: 1 addition & 0 deletions xrspatial/tests/test_contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,3 +756,4 @@ def test_lat_lon_matches_yx_equivalent(self):
for (lvl_a, c_a), (lvl_b, c_b) in zip(r_yx, r_ll):
assert lvl_a == lvl_b
np.testing.assert_allclose(c_a, c_b)

Loading