<div dir="ltr">Hi Hanlie,<div><br></div><div style>I too have found "interesting" results returned by the raster calculator and usually default to loading the data into GRASS and processing it there. I suspect you may need to convert your input data to *.tif format for the equation to work in QGIS. This is easily done using gdal_translate or the gdal_translate implementation in QGIS -> Raster/Conversion/Translate</div>
<div style><br></div><div style><br></div><div style>Not sure why you are having trouble with the ASC files, perhaps the conversion will do the trick</div><div style>Regards,</div><div style>Wesley</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Feb 20, 2013 at 10:24 PM, Hanlie Pretorius <span dir="ltr"><<a href="mailto:hanlie.pretorius@gmail.com" target="_blank">hanlie.pretorius@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<div><br></div><div>If there's a way to search the whole archive of this list in one go, please let me know.</div><div><br></div><div>Otherwise, can someone perhaps help me with this problem?</div><div><br></div><div>


I'm using the raster calculator in QGIS 1.8.0 on Windows 7 to find the difference between two rasters. The two input rasters (ASC files) both have float32 datatypes and they have exactly the same spatial extent. The expression I use in the calculator is:</div>

<div><br></div><div>med input@1 - low input@1</div><div><br></div><div><b>med input</b> has a range from 0 to 5.5</div><div><b>low input</b> has a range from 0 to 2.5</div><div><br></div><div>The result I get is a float32 output raster with zero everywhere. I have tried two different output formats - TIFF and IMG with the same result.</div>

<div><br></div><div>I have also tried to add the two rasters, with the same result - zero everywhere.</div><div><br></div><div>I imported the input rasters into GRASS, performed the calculation, got the correct result, and exported the output successfully to a TIFF file.</div>

<div><br></div><div>Can anyone help me figure out why the raster calculator in QGIS is not giving the expected result?</div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>Hanlie</div>
</font></span><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></blockquote></div><br><br clear="all"><div><br></div>-- <br>Dr Wesley Roberts<br>
<a href="mailto:jwesroberts@gmail.com" target="_blank">jwesroberts@gmail.com</a><br>
Cell: +27(0)83 5355 646<br>skype: roberts-w<br>
</div>