- -r, --resampling <RESAMPLING>
Resampling method to use. Available methods are:
nearest: nearest neighbour resampling (default, fastest algorithm, worst interpolation quality).bilinear: bilinear resampling.cubic: cubic resampling.cubicspline: cubic spline resampling.lanczos: Lanczos windowed sinc resampling.average: average resampling, computes the weighted average of all non-NODATA contributing pixels.rmsroot mean square / quadratic mean of all non-NODATA contributing pixelsmode: mode resampling, selects the value which appears most often of all the sampled points. In the case of ties, the first value identified as the mode will be selected.max: maximum resampling, selects the maximum value from all non-NODATA contributing pixels.min: minimum resampling, selects the minimum value from all non-NODATA contributing pixels.med: median resampling, selects the median value of all non-NODATA contributing pixels.q1: first quartile resampling, selects the first quartile value of all non-NODATA contributing pixels.q3: third quartile resampling, selects the third quartile value of all non-NODATA contributing pixels.sum: compute the weighted sum of all non-NODATA contributing pixelsNote
When downsampling is performed (use of
--resolutionor--size), existing overviews (either internal/implicit or external ones) on the source image will be used by default by selecting the closest overview to the desired output resolution. The resampling method used to create those overviews is generally not the one you specify through the-roption.