Table of contents

r.resamp.stats fills a grid cell (raster) matrix with
aggregated values generated from a set of input layer data points.

Without the -w switch, the aggregate is computed over all of
the input cells whose centers lie within the output cell.

With the -w switch, the aggregate uses the values from all
input cells which intersect the output cell, weighted according to the
proportion of the source cell which lies inside the output cell. This
is slower, but produces a more accurate result.

The notion of weighting doesn't make any sense for the min and max
aggregates. However, the -w flag still has significance in
that, when multiple destination cells overlap a source cell, the
source cell is included in the calculation of all of the destination
cells.