I'd like to use differently sized windows as I process (a.k.a. filter) a raster, with the size varying according to latitude.
There are tools that allow a user to specify custom windows (e.g., "User-Defined Filter" in SAGA), but I don't see a way to dynamically adjust the size of the window according to some other variable (e.g., the values in a second, coincident raster which could easily simply state their latitudes).
Finding local maxima with variable window search using ArcGIS Desktop? addresses this with respect to discrete areas; instead, I'd like to be able to continuously vary the size of the window.
Can anyone think of a way to do this?
Ideally in SAGA, QGIS, or GDAL. Also open to doing it in Python (e.g., numpy arrays), R (matrices), or ArcGIS. Programmatically would be ideal, but something like Raster Calculator could work too.