<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffcc" text="#000000">
<font face="Helvetica, Arial, sans-serif">Thank you all,<br>
I wanted to calculate the extent of an area<br>
<br>
<font face="Courier New, Courier, monospace">r.report units=k</font><br>
is a very nice one and much more better than r.stats<br>
<br>
</font><font face="Courier New, Courier, monospace">r.surf.area</font><br>
works as well<br>
<br>
From <font face="Courier New, Courier, monospace">g.region</font> and<font
face="Courier New, Courier, monospace"> r.info</font> I didn't get the
information I wanted<br>
<br>
Cheers<br>
om shantih<br>
Philipp<br>
<br>
<u>Examples:</u><br>
<br>
<font face="Courier New, Courier, monospace">GRASS:~$ r.report wo_08
uni=k<br>
r.stats: 100%<br>
+-----------------------------------------------------------------------------+<br>
| RASTER MAP CATEGORY
REPORT |<br>
|LOCATION: wertach_gk_221207 Tue Jan 15
08:11:22 2008|<br>
|-----------------------------------------------------------------------------|<br>
| north: 5367102.02878204 east:
4423032.52391016 |<br>
|REGION south: 5262609.45830234 west:
4370953.43615398 |<br>
| res: 30.00073801 res:
29.99947451 |<br>
|-----------------------------------------------------------------------------|<br>
|MASK:none
|<br>
|-----------------------------------------------------------------------------|<br>
|MAP: (untitled) (wo_08 in
x02_landsat) |<br>
|-----------------------------------------------------------------------------|<br>
| Category Information |
square |<br>
|#|description
|kilometers|<br>
|-----------------------------------------------------------------------------|<br>
|1| . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.|1215.11661|<br>
|*|no data. . . . . . . . . . . . . . . . . . . . . . . . . . . .
.|4226.76114|<br>
|-----------------------------------------------------------------------------|<br>
|TOTAL
|5441.87775|<br>
+-----------------------------------------------------------------------------+<br>
<br>
<br>
GRASS:~$ r.surf.area wo_08<br>
<br>
Null value area ignored in calculation 4.226761e+09<br>
Plan area used in calculation: 5.437182e+09<br>
Surface Area Calculation(low, high, avg):<br>
1.208337e+09 1.208337e+09 1.208337e+09<br>
Current Region plan area: 5.441878e+09<br>
Estimated Region Surface Area: 1.209381e+09<br>
<br>
Done.<br>
<br>
<br>
GRASS:~$ r.info wo_08<br>
+----------------------------------------------------------------------------+<br>
| Layer: wo_08 Date: Mon Jan 14 08:04:30
2008 |<br>
| Mapset: x02_landsat Login of Creator:
om |<br>
| Location:
wertach_gk_221207 |<br>
| DataBase:
/home/om/grassdata |<br>
| Title: ( wo_08
) |<br>
| timestamp:
none |<br>
|----------------------------------------------------------------------------|<br>
|
|<br>
| Type of Map: raster Number of Categories:
1 |<br>
| Data Type:
CELL |<br>
| Rows:
3483 |<br>
| Columns:
1736 |<br>
| Total Cells:
6046488 |<br>
| Projection: Transverse Mercator (zone
0) |<br>
| N: 5367102.02878204 S: 5262609.45830234 Res:
30.00073801 |<br>
| E: 4423032.52391016 W: 4370953.43615398 Res:
29.99947451 |<br>
| Range of data: min = 1 max =
1 |<br>
|
|<br>
| Data
Source: |<br>
|
|<br>
|
|<br>
|
|<br>
| Data
Description: |<br>
| generated by
r.water.outlet |<br>
|
|<br>
|
|<br>
+----------------------------------------------------------------------------+<br>
<br>
GRASS:~$ g.region -p<br>
projection: 99 (Transverse Mercator)<br>
zone: 0<br>
datum: potsdam<br>
ellipsoid: bessel<br>
north: 5367102.02878204<br>
south: 5262609.45830234<br>
west: 4370953.43615398<br>
east: 4423032.52391016<br>
nsres: 30.00073801<br>
ewres: 29.99947451<br>
rows: 3483<br>
cols: 1736<br>
cells: 6046488</font><br>
<br>
<br>
<br>
Hamish wrote:
<blockquote cite="mid:928081.12714.qm@web45815.mail.sp1.yahoo.com"
type="cite">
<pre wrap="">Philipp Steigenberger wrote:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap=""> 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
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
Carlos wrote:
</pre>
<blockquote type="cite">
<pre wrap="">r.surf.area?
r.stats?
</pre>
</blockquote>
<pre wrap=""><!---->
'r.report units=h' too
Hamish
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. <a class="moz-txt-link-freetext" href="http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ">http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ</a>
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
</pre>
</blockquote>
</body>
</html>