geoutils.Raster.reduce_points

geoutils.Raster.reduce_points#

Raster.reduce_points(points, reducer_function=<function mean>, window=None, input_latlon=False, band=None, masked=False, return_window=False, as_array=False, boundless=True)#

Reduce raster values around point coordinates.

By default, samples pixel value of each band. Can be passed a band index to sample from.

Uses Rasterio’s windowed reading to keep memory usage low (for a raster not loaded).

Parameters:
Return type:

Any

Returns:

Point cloud of interpolated points, or 1D array of interpolated values. In addition, if return_window=True, return tuple of (values, arrays).