<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
Hi,<br>
The first step is to remove the nodata value from the file. In
"translate" that would give the following command (that needs to be
manipulated using the yellow pencil.) <br>
<br>
ex: gdal_translate <b>-a_nodata none</b> -of GTiff
C:/Users/Nicolas/Desktop/SRTMGL12delete/Que/Que_SRTMGL1_WGS84_EGM96.tif
"C:/Users/Nicolas/Desktop/for 6tb/Que_SRTMGL1_WGS84_EGM96b.tif"<br>
<br>
In my case, this gives me a file with new value (-32768). I can now
manipulate that value. Now I need to change this value (-32768 =
missing SRTM Tiles in the sea with no land) to zero (the sea
level). This can be done in raster Math.<br>
ex:<br>
(("Que_SRTMGL1_WGS84_EGM96b@1" = -32768)*0) +
(("Que_SRTMGL1_WGS84_EGM96b@1" >
-32768)*"Que_SRTMGL1_WGS84_EGM96b@1")<br>
What is going on???<br>
<br>
A) ("Que_SRTMGL1_WGS84_EGM96b@1" = -32768): creates a mask with 1
and 0 (1=satisfy condition, 0=does not satisfy condition)<br>
B) Then you multiply this mask with a value : *0. Therefore -32768
becomes 0 (if it was *30, then this would reclassify all -32768 to
30).<br>
C) You then add to this map the pixels that are bigger than -32768:
(("Que_SRTMGL1_WGS84_EGM96b@1" > -32768)<br>
D) And finally, you multiply this mask by the original values:
*"Que_SRTMGL1_WGS84_EGM96b@1")<br>
<br>
You can also reclassify using GRASS and SAGA in the processing
plugin.<br>
<br>
Hope this helps<br>
Nicolas<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">Le 2015-06-03 10:26, robertlozar [via
OSGeo.org] a écrit :<br>
</div>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' cite="mid:1433341586013-5208951.post@n6.nabble.com"
type="cite"> Thank you for your reply.
<br>
<br>
I realize you can change zeros to nodata. I wish to know how to do
opposite: change nodata to zeros in QGIS. As I mentioned, I would
like to know how it is done in QGIS as I have already done it in
the other plugins. Is it possible, or is this a bug in QGIS?
<br>
<br>
Thanks, Bob <br>
<br>
<hr color="#cccccc" noshade="noshade" size="1">
<div style="color:#444; font: 12px
tahoma,geneva,helvetica,arial,sans-serif;">
<div style="font-weight:bold">If you reply to this email, your
message will be added to the discussion below:</div>
<a moz-do-not-send="true"
href="http://osgeo-org.1560.x6.nabble.com/QGIS-Raster-Calculator-cannot-add-two-mutually-exclusive-areas-with-logical-statement-because-nodataa-tp5208547p5208951.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/QGIS-Raster-Calculator-cannot-add-two-mutually-exclusive-areas-with-logical-statement-because-nodataa-tp5208547p5208951.html</a>
</div>
<div style="color:#666; font: 11px
tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To start a new topic under Quantum GIS - User, email
<a href="/user/SendEmail.jtp?type=node&node=5208981&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
To unsubscribe from Quantum GIS - User, <a
moz-do-not-send="true"
href="" target="_top" rel="nofollow" link="external">click
here</a>.<br>
<a moz-do-not-send="true"
href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a> </div>
</blockquote>
<br>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/QGIS-Raster-Calculator-cannot-add-two-mutually-exclusive-areas-with-logical-statement-because-nodataa-tp5208547p5208981.html">Re: QGIS Raster Calculator - cannot add two mutually exclusive areas with logical statement because nodata excludes the other's data</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html">Quantum GIS - User mailing list archive</a> at Nabble.com.<br/>