<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal">Hi Ulli,</p>
<p class="MsoNormal">If the trench is narrow (in terms of pixels), you can run a smoothing filter over that part of the DEM. Then replace the original trench pixels with those from the smoothed DEM using a conditional statement (gdal_calc with a ‘where’ statement).</p>
<p class="MsoNormal">Regards, Rick</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Qgis-user <qgis-user-bounces@lists.osgeo.org> on behalf of Ulrich Kriechbaum <ulrichkriechbaum@gmx.at><br>
<b>Sent:</b> Thursday, November 8, 2018 5:49:12 AM<br>
<b>To:</b> qgis-user@lists.osgeo.org<br>
<b>Subject:</b> [Qgis-user] Manipulating DEM</font>
<div> </div>
</div>
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Dear all!</div>
<div> </div>
<div>I investigate a Glacial-Lake Outburst Flood and try to back-calculate the event using the simulation tool r.avaflow. During the event there was a big trench eroded. I have a post-event DEM with a clearly visible eroded trench. What i want to do now is
 to "flatten" out the trench so that i get a pre-event DEM to start my simulation. What i tried to do is to create the contour lines of the post-event DEM, change them so that they would not show the trench and then create a pre-event DEM out of this contour
 lines. I already asked the question, if anyone knows how to do that, i already got some nice answers but unfortunately none of the inputs really work for me....</div>
<div> </div>
<div>So now to my actual question: Does anyone know another method how to "flatten" out the trench in the DEM? I would be really glad if someone would have an answer, as i have ben struggling a while now with these problem..</div>
<div> </div>
<div>Best regards,</div>
<div> </div>
<div>Ulli</div>
</div>
</div>
</body>
</html>