It didn't work. I get all full of NaNs map.
I used this:
input="LUlabel@Study"
grass.run_command("g.region", rast = input)
grass.mapcalc("$output= @$labels", labels=input, output="Giovanni2")
What am I doing wrong on this?
Luisa
2011/7/1 Giovanni Manghi <[email protected]>
> Hi,
>
>
> >
> > I have a raster map to wich I have applied r.reclass to add labels to
> > raster classes. When I try to export this raster with the classes I
> > loose the lablels I only stick with the values.
> > In a script how can edit this raster in order to be exported with the
> > labels?Thanks
>
>
> r.mapcalc "new_map=@existing_map"
>
> then export "new_map" to tiff as usual.
>
> Cheers
>
> -- Giovanni --
>
>
>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user