[GRASS-user] Exporting labels of a raster

Luisa Peña luisapena1979 at gmail.com
Fri Jul 1 07:24:29 EDT 2011


It didn't work. I get all full of NaNs map.
I used this:
    input="LUlabel at 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 <giovanni.manghi at gmail.com>

> 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 --
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20110701/da5a60ae/attachment.html


More information about the grass-user mailing list