What I understand is (2), and also my experience.

Cheers

El mié., 30 dic. 2020 12:11, Jed O. Kaplan <[email protected]>
escribió:

> Working with GDAL 3.0.4
>
> The behavior of “mode” resampling when NODATA pixels are present is not
> clear to me from reading the documentation. I guess there are two
> possibilities:
>
> 1) If NODATA is the modal value among the pixels under consideration, then
> the result is NODATA
> or
> 2) The modal value among the pixels under consideration is taken in
> exclusion of NODATA, so that a NODATA will be returned only if ALL of the
> pixels in the resampling window are NODATA.
>
> I would prefer if it was (2) above, but I would be grateful if anyone
> could confirm how the filter works.
>
> Many thanks,
>
> Jed
>
>
>
>
> _______________________________________________
> gdal-dev mailing list
> [email protected]
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to