Region utility methods#

regions.region_bounds(regions[, transform])

Returns the bounding box each unique label in regions.

regions.region_slices(regions)

Returns slices for each unique label in regions.

regions.region_sum(data, regions)

Returns the sum of values in data for each unique label in regions.

regions.region_area(regions[, transform, latlon])

Returns the area [m2] for each unique label in regions.

regions.region_dissolve(regions[, labels, ...])

Dissolve regions into its nearest neighboring regions.