<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 26, 2013 at 12:54 AM, Hamish <span dir="ltr"><<a href="mailto:hamish_b@yahoo.com" target="_blank">hamish_b@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Vaclav wrote:<br>
<br>
> Hi Eric,<br>
><br>
> actually I was working on the same module (named r.local.relief), so<br>
> we have some duplication now. It is also based on [Hesse2010]. I was<br>
> about to commit it to GRASS Addons but I need to write documentation<br>
> first. For now, I'm adding the Python script into a attachment. > ><br>
> I've quickly tested both and they give slightly different results. The<br>
> other visible difference is the contours-to-really_smooth_elevation<br>
> step.<br>
<br>
<br>
</div>Hi,<br>
<br>
could you discuss the advantage of the local relief method? I take it that the idea is to remove the background signal to highlight local detail?<br>
v.surf.rst or v.surf.bspline with a really big search window and loose tension might also be good for a smoothed backgroundto subtract away, and see also recent discussion about trying to get planar trend surfaces out of r.cog addon on the grass-dev ML (a work in progress).<br>

Should fine relief be removed as well? (so gate filter and not just a low or high pass one)<br>
<br>
<br>
It seems to me that the contouring step is needlessly lossy and artifact prone, and that you might get better results using the r.surf.contour module to recreate a raster from the contour lines. Or perhaps better use a {v,r}.random sampling technique as input to one of the v.surf spline modules or r.surf.nnbathy -- less artifacts than interpolating from contour lines. Also note that the contour method will flatten off the tops of features which are smaller than your contour step level. (so choice of contour step size becomes very important)</blockquote>
<div><br></div><div>The thought behind the contouring step is that when you apply a low pass filter and subtract it from the DEM, the large scale features (based on the selected kernel size) are eliminated and the small-scale features are smoothed, resulting in bias toward small features and an underestimation of the magnitude of the local relief elevations as the spatial extent of the feature increases. By getting the 0-meter contours, converting them to points, and getting the elevations of the original DEM for those points, you're basically able to cut the large-scale features out of the original DEM, leaving the local relief behind without smoothing.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
See also <a href="http://grasswiki.osgeo.org/wiki/Contour_lines_to_DEM" target="_blank">http://grasswiki.osgeo.org/wiki/Contour_lines_to_DEM</a><br>
for an analysis and comparison of interpolation methods for creating surfaces from contour lines. (spoiler: the designed for the task r.surf.contour wins)<br>
<br>
<br>
regards,<br>
Hamish<br>
<br>
</blockquote></div><br></div></div>