environmentaltools.spatiotemporal.raster.largest_region_from_field
- environmentaltools.spatiotemporal.raster.largest_region_from_field(batches)[source]
Selects the largest region from a continuous field and returns its contour.
- Parameters:
batches (tuple) –
- Tuple containing:
field: 2D ndarray of continuous values.
refinement: bool, whether to use refined contour extraction.
- Returns:
contours – List of (y, x) coordinates of the interpolated contour for the largest region.
- Return type:
list of ndarray