Re: [GRASS-user] saving patch areas on raster maps

2008-11-16 Thread Milton Cezar Ribeiro
Dear all, Thanks for all tips. The code below worked fine. As my map is in meters, I saved the wanted AREA OF CLUMPs in hectare. r.stats -na input=clump_map | awk '{print $1,"=",$2/1}'|r.reclass input=clump_map output=clump_map_AreaHA - All the best, for all. miltinho brazil 2008/11/16 Hami

Re: [GRASS-user] saving patch areas on raster maps

2008-11-15 Thread Hamish
Milton wrote: > > 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. Jamie Adams wrote: > You can use r.recode to do this, but you'll need to > reformat the output from r.stats.

Re: [GRASS-user] saving patch areas on raster maps

2008-11-14 Thread Jamie Adams
You can use r.recode to do this, but you'll need to reformat the output from r.stats. Example: *r.stats -a -n * 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 lar

[GRASS-user] saving patch areas on raster maps

2008-11-14 Thread Milton Cezar Ribeiro
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