Re: [GRASS-user] How to calculate the area of a rastermap

2008-01-14 Thread Carlos Guâno Grohmann
r.surf.area?
r.stats?

Carlos



On Jan 14, 2008 5:47 AM, Philipp Steigenberger [EMAIL PROTECTED] wrote:

  Hi list,
  I know there is a posibility to calculate the area of a rastermap, but I
 cannot find the command.

  I have a water.outlet map. The area data range is 1 to 1

  Thankyou

  best wishes
  Philipp

 ___
 grass-user mailing list
 grass-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-user





-- 
+---+
  Carlos Henrique Grohmann - Guano
  Geologist M.Sc  - Doctorate Student at IGc-USP - Brazil
Linux User #89721  - carlos dot grohmann at gmail dot com
+---+
_
Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive.
--The winning entry in a What were HAL's first words contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can't stop the signal.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] How to calculate the area of a rastermap

2008-01-14 Thread Martin Wegmann
hello Philipp,

On Montag, 14. Januar 2008 08:47:15 Philipp Steigenberger wrote:
 Hi list,
 I know there is a posibility to calculate the area of a rastermap, but I
 cannot find the command.

Do you want to calculate the area of patches inside a rastermap or the extent 
of a raster?

for the first you have to use v.* commands 

r.to.vect input= output=out feature=area
v.db.addcol map=out layer=1 'columns=area double' 
v.to.db map=out type=point,line,boundary,centroid layer=1 qlayer=1 option=area 
units=meters column=area 
v.to.rast out output=out_area use=attr col=area --o

for the second r.info or g.region would do it.

Martin



 I have a water.outlet map. The area data range is 1 to 1

 Thankyou

 best wishes
 Philipp


___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] How to calculate the area of a rastermap

2008-01-14 Thread Hamish
Philipp Steigenberger wrote:
   I know there is a posibility to calculate the area of a rastermap,
  but I cannot find the command.
 
   I have a water.outlet map. The area data range is 1 to 1

Carlos wrote:
 r.surf.area?
 r.stats?

'r.report units=h' too


Hamish



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user