<div dir="ltr"><div><div><div><div>Hi Andreas<br><br>About no data, I tried many things with no luck : NULL, none, 0, etc. If someone knows, please help (and update documentation if possible).<br><br></div>I would like to change the nodata value, but could not find any way. It seems Grass can do it via the r.null alg, but it is not yet in Processing.<br>
</div>Some tools in QGIS, related to GDAL, seem to be able to replace a know nodata value into another one. But it is often a chicken and egg problem, since we do not always know the nodata value (or I am missing some other tools like command line gdal to get it ?)<br>
<br></div>Cheers<br></div>Michael<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-28 16:26 GMT+02:00 Andreas Neumann <span dir="ltr"><<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Again on the raster calculator: I noticed that nodata raster cells<br>
cannot be detected. They seem to be ignored. Is there any trick to query<br>
nodata cells? They are explicitly set to nodata, not to 0.<br>
<div class="im HOEnZb"><br>
Andreas<br>
<br>
Am <a href="tel:24.04.2014%2012" value="+12404201412">24.04.2014 12</a>:57, schrieb Carlos Cerdán:<br>
</div><div class="HOEnZb"><div class="h5">> Hi Andreas:<br>
><br>
> Yes, it always evaluates to true because of "OR" condition , so try:<br>
><br>
> (lake_mask > 0) * lake_mask + (lake_mask<=0)*dtm<br>
><br>
> Good luck<br>
><br>
> Carlos<br>
><br>
><br>
><br>
><br>
> 2014-04-24 1:53 GMT-05:00 Andreas Neumann <<a href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>>:<br>
><br>
>> Hi,<br>
>><br>
>> I have a hard time understanding the raster calculator syntax.<br>
>><br>
>> I would like to merge two rasters: DTM and lake mask. Let's call the one<br>
>> dtm and the other lake_mask.<br>
>><br>
>> When the lake_mask has a value > 0 then I would like to take the value<br>
>> of the lake_mask, otherwise the value of the dtm.<br>
>><br>
>> What would an appropriate syntax look like?<br>
>><br>
>> I tried something along<br>
>><br>
>> ((lake_mask > 0) * lake_mask) OR dtm<br>
>><br>
>> But all I get in the resulting grid are values of 1. I guess it is<br>
>> because it always evaluates to true?<br>
>><br>
>> Thanks for your help.<br>
>><br>
>> Andreas<br>
>> _______________________________________________<br>
>> Qgis-user mailing list<br>
>> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
>><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
><br>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></div></div></blockquote></div><br></div>