<div dir="ltr">Reclassify your Layer 1 to be anything greater than 1 = 0 everything else equals 1. This will give you a binary 1 and 0 raster (Layer 3)  that you can use in the raster calculator: Layer 2 * Layer 3.  Anywhere where layer 3 is 1 your layer 2 values will stay the same and anywhere where layer 3 is 0 your layer 2 values will become 0. <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 17, 2022 at 3:19 PM Bernd Vogelgesang <<a href="mailto:bernd.vogelgesang@gmx.de">bernd.vogelgesang@gmx.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div>
    <p>Hi folk,</p>
    <p>I hardly never work with raster calculations, and unfortunately
      there is nowhere a collection of syntax examples for different use
      cases to be found (documentation :( ).</p>
    <p>Anything apart from +-*/ is beyond my scope.</p>
    <p>So,</p>
    <p>I made a viewshed analysis over a digital surface model (try the
      awesome Visibility Analysis plugin form Zoran Čučković and buy him
      a beer!)</p>
    <p>A lot of "views" are caught by tree canopy, but I am only
      interest in the flat grounds.</p>
    <p>So I substracted the surface model layer from the ground model
      layer, and this is Layer 1. <br>
    </p>
    <p>Giving a threshold of 1 meters difference for inaccuracities, all
      pixels in this layer above 1 should result in 0 (zero) in my
      viewshed raster (Layer 2)</p>
    <p>Please give me some hints,</p>
    <p>Cheers,</p>
    <p>Bernd<br>
    </p>
    <p><br>
      <a href="mailto:contact@zoran-cuckovic.from.hr" style="color:rgb(0,136,204);text-decoration:none;font-family:Verdana,sans-serif;font-size:13.3333px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank"></a></p>
  </div>

_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>