[GRASS-user] saving patch areas on raster maps
Jamie Adams
jaadfoo at gmail.com
Fri Nov 14 15:45:34 EST 2008
You can use r.recode to do this, but you'll need to reformat the output from
r.stats.
Example:
*r.stats -a -n <raster>*
0 1234
1 2345
2 3456
......
This needs to be:
0:0:1234:1234
1:1:2345:2345
2:2:3456:3456
......
Save this to a txt file and use it with the rules flag of r.recode. If you
have a large amount of categories, I would suggest using awk or perl to
reformat the r.stats output.
-Jamie
On Fri, Nov 14, 2008 at 8:22 AM, Milton Cezar Ribeiro <
miltinho.astronauta at gmail.com> wrote:
> Dear all,
> I generated a clump map from my cover map, and computed the area of each
> patch using r.stats.
> Now I need generate a map which values is the area for each clump.
>
> Suggestions are welcome.
>
> Best regards,
>
> miltinho astronatua
> brazil
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20081114/04d5fff3/attachment.html
More information about the grass-user
mailing list