regionate.boundariesΒΆ Functions grid_boundaries_from_mask(grid, mask) Use contourpy to get indices of cell corners that bound the mask