![]() |
![]()
| ![]() |
![]()
NAMEr3.stats - Generates volume statistics for 3D raster maps. KEYWORDSraster3d, statistics, voxel, volume SYNOPSISr3.stats
Flags:Parameters:
DESCRIPTIONr3.stats calculates volume statistics for 3D raster maps. Volumes are created on base of value subranges or groups of equal values. The default number of subranges is 20 and can vary from 1 to infinite. Larger number of subranges will result in larger memory consumption. The volumes are calculated in qubic meters. Null values are marked with "*". If the flag -e is set, the number of subranges will be ignored. NOTESAs with most GRASS 3D raster map modules, r3.stats operates on the cell array defined by the current 3D region settings, not the original extent and resolution of the input map. See g.region. The region setting will not effect the memory consumption of this module. The number of subranges in case of value range calculation or the number of equal value groups effect the memory consumption and the calculation time. The user can expect a huge time consumption to calculate the equal value groups (flag -e) if large region settings occur for maps which have many equal value groups (> 100000). EXAMPLESLausanne FOSS4G 2006 3D demo dataset exampleThe 3D raster map geology has three values. Each value represents a specific geological layer, clay = 1, sand = 2 and bedrock = 3. To calculate the volume of each geological layer, we can use the flag -e to group equal values into single volumes. r3.stats geology -e will produce the following output:
Generic example#create a small 3D region g.region n=1000 s=0 e=2000 w=0 t=300 b=0 res3=100 #create a raster3D map with row() and null values r3.mapcalc "volmap = if(row() == 5, null(), row())" #run r3.stats with a subrange of 10 r3.stats input=volmap nsteps=10 #the result should look like this SEE ALSOg.region, r3.univar, r.stats, r.statistics, v.univar AUTHORSören Gebbert SOURCE CODEAvailable at: r3.stats source code (history) Latest change: Wednesday Nov 27 22:53:26 2024 in commit: b90ce69e88409469369ec1edb86fde8ec822af8b Main index | 3D raster index | Topics index | Keywords index | Graphical index | Full index © 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
|