[GRASS-user] r.to.vect problem

Hamish hamish_nospam at yahoo.com
Thu Feb 8 21:01:37 EST 2007


Tyler Smith wrote:
> 
> I have 8 raster maps, produced by Maxent. The pixels in the map have
> values of 0-100. I want to quantify the area that has pixels with
> values > 5, and also the pair-wise overlap between all 8 maps.


no need to convert to vector,

g.region rast=map
r.mapcalc "MASK=if(value > 5)"

r.report -n map units=k
  or
r.stats -an map  > spreadsheet
  or
r.univar map   then multiply "n" by map resolution ^2.

g.remove MASK

and probably a few other ways.



Hamish




More information about the grass-user mailing list