regionate.boundaries.grid_boundaries_from_mask¶
- regionate.boundaries.grid_boundaries_from_mask(grid, mask)[source]¶
Use contourpy to get indices of cell corners that bound the mask
Returns lists with a common length that is the number of discrete contours that bound the mask.
- Parameters:
grid (xgcm.Grid instance)
mask (xr.DataArray instance of type bool)
- Return type:
i_c_list, j_c_list, lons_c_list, lats_c_list