Zonal

Apply

xrspatial.zonal.apply(zones, values, func)

Apply a function to the values agg within zones in zones agg.

Crop

xrspatial.zonal.crop(zones, values, zones_ids)

Crop scans from edges and eliminates rows / cols until one of the input values is found.

Regions

xrspatial.zonal.regions(raster[, …])

Create unique regions of raster based on pixel value connectivity.

Trim

xrspatial.zonal.trim(raster[, values, name])

Trim scans from the edges and eliminates rows / cols which only contain the values supplied.

Zonal Statistics

xrspatial.zonal.get_full_extent(crs)

xrspatial.zonal.stats(zones, values[, …])

Calculate summary statistics for each zone defined by a zone dataset, based on values aggregate.

xrspatial.zonal.suggest_zonal_canvas(…[, …])

Given a coordinate reference system (crs), a set of polygons with

Zonal Cross Tabulate

xrspatial.zonal.crosstab(zones, values[, layer])

Calculate cross-tabulated (categorical stats) areas between two datasets: a zone dataset, a value dataset (a value raster).