<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 05/31/2012 07:44 PM, Micha Silver wrote:
<blockquote cite="mid:4FC7A006.8050109@arava.co.il" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
On 05/31/2012 07:23 PM, Daniel Lee wrote:
<blockquote
cite="mid:CAJHDHfq4fsgMiMDizJwV6D6y78MS1OX5H6_YgjZjKzqq2MQJCg@mail.gmail.com"
type="cite"><br>
</blockquote>
<br>
</blockquote>
<br>
Ooops, typo error: r.out.arc NOT r.out.asc<br>
<br>
<blockquote cite="mid:4FC7A006.8050109@arava.co.il" type="cite"> Try
like this:<br>
<br>
RASTS=`g.mlist rast pat="*fill_mnat*"`<br>
for r in $RASTS; do<br>
echo "Processing raster $r"<br>
g.region rast=$r<br>
r.out.asc $r out=$r.asc<br>
</blockquote>
^^^^^^<br>
<blockquote cite="mid:4FC7A006.8050109@arava.co.il" type="cite">
done<br>
<br>
Note the backticks (`) in the first line.<br>
Also, be aware that some software reads the asc header as cell
*centers* and some as cell *corners*. GRASS outputs each pixel to
the asc file as cell corners. If you need it as centers, add a
'-c' to the r.out.asc command.<br>
<br>
<blockquote
cite="mid:CAJHDHfq4fsgMiMDizJwV6D6y78MS1OX5H6_YgjZjKzqq2MQJCg@mail.gmail.com"
type="cite"> This mail was received via Mail-SeCure System.<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
grass-user mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
This mail was received via Mail-SeCure System.
</pre>
</blockquote>
<br>
<br>
<br>
This mail was received via Mail-SeCure System.<br>
<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>
This mail was received via Mail-SeCure System.
</pre>
</blockquote>
<br>
</body>
</html>