<div dir="auto">What about using the fuzzy logic modules? <br><br><div data-smartmail="gmail_signature">  -k.<br><br>Please excuse brevity. Sent from tiny pocket computer with non-haptic feedback keyboard.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 14, 2022, 13:38 Bernardo Santos via grass-user <<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px"><div dir="ltr">Hi,</div><div dir="ltr"><br></div><div dir="ltr">I am trying to produce scenarios of past land cover, before hydropower reservoirs were built. To do so, I need to fill empty pixels from a raster in the locations where the reservoirs are currently present, using as input the actual land cover map. I tried doing that with <font face="courier new, courier, monaco, monospace, sans-serif">r.neighbors</font> (taking method=mode) with neighborhoods of increasing size, to replace null pixels with the most common land cover class in the neighborhood. I also tried that with <font face="courier new, courier, monaco, monospace, sans-serif">r.fill.stats</font> which is basically the same thing.</div><div dir="ltr">However, the results gets very homogeneous, since the interpolated null cells always get the value of the most common land cover class.</div><div dir="ltr"><br></div><div dir="ltr">Do anyway know of a method in GRASS to perform a "probabilistic" neirighborhood analysis, where cells in a neighborhood are given weights (possibly related to the distance to the central cell and to their frequency) and these weights are used to stocastically sample a value to fill the central cell?</div><div dir="ltr">If not in GRASS, does anyway know of such a method in a different platform, i.e. R?</div><div dir="ltr"><br></div><div dir="ltr">Thanks!</div><div dir="ltr">Best</div><div dir="ltr">Bernardo</div></div></div>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank" rel="noreferrer">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote></div>