<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi! Gaspar,<br>
you can do it one way as follows.<br>
1) create a vector of desired area that you would like to extract
values for.<br>
2) use v.to rast for converting it into a raster use value = 1 for
that raster<br>
3)open mapcalc and put input raster as A and new created raster as B<br>
4) enter formula if(B == 1), A, 0), also name the new raster<br>
5) the new raster shall have the values from the input raster<br>
<br>
I hope I got it right for you.<br>
rgs,<br>
Ambrish Dhaka<br>
<br>
<br>
On 4/14/2011 3:16 AM, Gaspar Reyes Póndigo wrote:
<blockquote cite="mid:BLU0-SMTP7100B55CBB876B28CD59CCB7AA0@phx.gbl"
type="cite">Hello, Dear grass_user. <span class="Apple-style-span"
style="font-family: Helvetica,Arial,sans-serif; line-height:
19px;"><em style="font-weight: bold; font-style: normal;"><font
class="Apple-style-span" color="#080808">My first</font></em></span><span
class="Apple-style-span" style="font-family:
Helvetica,Arial,sans-serif; line-height: 19px;"><font
class="Apple-style-span" color="#080808"> forum </font></span><span
class="Apple-style-span" style="font-family:
Helvetica,Arial,sans-serif; line-height: 19px;"><em
style="font-weight: bold; font-style: normal;"><font
class="Apple-style-span" color="#080808">participation</font></em></span><span
class="Apple-style-span" style="font-family:
Helvetica,Arial,sans-serif; line-height: 19px;"><font
class="Apple-style-span" color="#080808"> in the grass_user
list email.</font></span>
<div><font class="Apple-style-span" color="#080808"
face="Helvetica, Arial, sans-serif"><span
class="Apple-style-span" style="line-height: 19px;"><br>
</span></font></div>
<div><font class="Apple-style-span" color="#080808"
face="Helvetica, Arial, sans-serif"><span
class="Apple-style-span" style="line-height: 19px;"><span
class="Apple-style-span" style="color: rgb(48, 48, 48);
font-family: 'Lucida Grande',sans-serif; font-size: 12px;
line-height: 15px;">How to extract values of map raster
with r.mapcalc? I need make new map raster based on
specific value of other raster.</span><br>
</span></font>
<div><br>
</div>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>