<html style="direction: ltr;">
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="latin-charset" bgcolor="#FFFFFF"
text="#000000">
<br>
<div class="moz-cite-prefix">On 11/17/2014 07:02 PM, Andreas Neumann
wrote:<br>
</div>
<blockquote cite="mid:4d6307d6c0e8f1304146a7ff91d1b7bf@carto.net"
type="cite">Hi,
<br>
<br>
I have a very simple task (at least I thought it is simple), but
am not able to do it properly.
<br>
<br>
I have a grayscale tiff value where I would like to replace the
value of 249 with 255 - all other values should stay as they are.
<br>
<br>
</blockquote>
<br>
In GRASS this mapcalc expression should work:<br>
r.mapcalc "new = if(temp==247, 255, temp)"<br>
<br>
<br>
<blockquote cite="mid:4d6307d6c0e8f1304146a7ff91d1b7bf@carto.net"
type="cite">I tried with gdal "nearblack", but nothing changed - I
started a separate email-thread about that at the gdal list.
<br>
<br>
Then I tried with the QGIS raster calculator - but it does not
support conditional syntax.
<br>
<br>
I tried with Processing and GRASS - but it would stop at 8% - the
file is quite big.
<br>
<br>
Finally I came across SAGA "Reclassify with grid value". The
dialogue is very complicated and hard to understand. After a while
it would stop with an error message telling me that Saga may not
be properly configured - but it says that it is properly
installed. Quite confusing ...
<br>
<br>
I am trying on Win7 64bit.
<br>
<br>
If the file wouldn't be so big I would try this task in The Gimp -
where it is very simple to replace one pixel values with another -
using "Select by color" and "fill with a specific color".
<br>
<br>
Any idea how I could achieve my task with GDAL, QGIS, GRASS or
Saga?
<br>
<br>
Thanks,
<br>
Andreas
<br>
<br>
<br>
_______________________________________________
<br>
Qgis-user mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
<br>
<br>
This mail was received via Mail-SeCure System.
<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>