<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000099">
You can use r.mapcalc. If mymap is your raster layer and you want
to change the raster cell at coordinates 52deg and 10deg, use<br>
<br>
r.mapcalc "mymap = if(x()==52.0 && y()==10.00, 1, mymap)"
--replace<br>
<br>
<br>
Cheers,<br>
<br>
Paulo<br>
<br>
<br>
<div class="moz-cite-prefix">On 05/13/2013 11:56 AM, Johannes
Radinger wrote:<br>
</div>
<blockquote
cite="mid:CABsGe_zQcVxmXYoZeH7+d=PqKF8QDMWyTHOed6j2Qt14_pzHbA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hi,<br>
<br>
is there a simple way to set the value of a specific raster
cell (e.g. defined by the coordinate of its cell center). One
way could be to define a point by the coordinates (e.g.
v.in.ascii) and then to convert the point to raster
(v.to.rast) and use the mapcalculator to modify the original
raster with the help of this new-point raster... <br>
<br>
...But is there a simpler way to "call" the raster-cell
directly?<br>
<br>
</div>
/Johannes<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
</pre>
</blockquote>
<br>
</body>
</html>