<div dir="ltr"><div>Dear all,</div><div><br></div><div>I work with Qgis and grass via the processing toolbox. I have for my area of interest:</div><br><ul><li> color infrared orthographic aerial (3 spectral bands: Near-infrared, red, green). For information,, which I have downsampled to 1.5 meters (original resolution: 20 cm).</li><li>a raster that allows to identify/mask shadow areas (value 1: shadows. Nodata: the remaining pixels of the raster data). For your information, this raster has exactly the same resolution as the orthographic aerial data (1.5 meters). And the pixels have the same alignment.</li><li>A digital height model (DHM) raster (modeling derived from HD lidar). The pixel alignement/resolution of the raster is different than the ortho aerial/shadow raster : 50 cm.</li></ul><br>Based on this 3 data, my objective for the aerial ortho dataset would be:<ul><li>  to modify/edit the radiometric values only on the shadow pixels. To assign them a new value.</li><li> these new radiometric values for the shadow pixels for the aerial dataset must be defined/assigned based on the neighboring pixels (mean, median, maximum, minimum...).</li><li>the complexity comes from the fact that I want to prioritize, or even exclusively prioritize, radiometric values from "low" areas (grassland, soil) and not from high areas that are the source of the shadow (buildings, trees, etc.).</li></ul><br>I looked for for a tool that might meet my needs. I found the grass r.neigbors tool: <a href="https://grass.osgeo.org/grass-stable/manuals/r.neighbors.html">https://grass.osgeo.org/grass-stable/manuals/r.neighbors.html</a><br><br>It seems to match my purpose. I'm able to execute it successfully by limiting the process to only the pixels in the aerial ortho datasset that are affected by shadows. However, I'm stuck on the last step. The tool allows the user to define a weight. I intended to use this weight function so that the new radiometric values are defined only for low areas (thus using the HD raster lidar height model-DHM for this step). But I don't really know how to use it with this tool.<br><br><div>Could you provide me some guidances or point me towards another tool better suited to my needs and input data?</div><div><br></div><div>Thanks so much. </div><br><br><br></div>