It didn&#39;t work. I get all full of NaNs map.<div>I used this:</div><div><div>    input=&quot;LUlabel@Study&quot;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div>    grass.run_command(&quot;g.region&quot;, rast = input)</div>
<div>    grass.mapcalc(&quot;$output= @$labels&quot;, labels=input, output=&quot;Giovanni2&quot;)</div><div><br></div><div>What am I doing wrong on this?</div><div>Luisa</div><div><br><div class="gmail_quote">2011/7/1 Giovanni Manghi <span dir="ltr">&lt;<a href="mailto:giovanni.manghi@gmail.com">giovanni.manghi@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<div><div></div><div class="h5"><br>
<br>
&gt;<br>
&gt; I have a raster map to wich I have applied r.reclass to add labels to<br>
&gt; raster classes.  When I try to export this raster with the classes I<br>
&gt; loose the lablels I only stick with the values.<br>
&gt; In a script how can edit this raster in order to be exported with the<br>
&gt; labels?Thanks<br>
<br>
<br>
</div></div>r.mapcalc &quot;new_map=@existing_map&quot;<br>
<br>
then export &quot;new_map&quot; to tiff as usual.<br>
<br>
Cheers<br>
<font color="#888888"><br>
-- Giovanni --<br>
<br>
<br>
</font></blockquote></div><br></div></div>