It didn't work. I get all full of NaNs map.<div>I used this:</div><div><div> input="LUlabel@Study"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div> grass.run_command("g.region", rast = input)</div>
<div> grass.mapcalc("$output= @$labels", labels=input, output="Giovanni2")</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"><<a href="mailto:giovanni.manghi@gmail.com">giovanni.manghi@gmail.com</a>></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>
><br>
> I have a raster map to wich I have applied r.reclass to add labels to<br>
> raster classes. When I try to export this raster with the classes I<br>
> loose the lablels I only stick with the values.<br>
> In a script how can edit this raster in order to be exported with the<br>
> labels?Thanks<br>
<br>
<br>
</div></div>r.mapcalc "new_map=@existing_map"<br>
<br>
then export "new_map" to tiff as usual.<br>
<br>
Cheers<br>
<font color="#888888"><br>
-- Giovanni --<br>
<br>
<br>
</font></blockquote></div><br></div></div>