GRASS logo


r3.count.categories - Count categories in vertical direction


raster3d, conversion, raster, category, voxel


r3.count.categories --help
r3.count.categories [-ds] input=name output=basename slices=basename [multiply=float] [add=float] [size=integer] [surface=name] [--overwrite] [--help] [--verbose] [--quiet] [--ui]


Divide count by the number of cells in the surface
Expect the slices to be already present
When running the module over and over, this saves the slicing 3D raster step
Allow output files to overwrite existing files
Print usage summary
Verbose module output
Quiet module output
Force launching GUI dialog


input=name [required]
Name of input 3D raster map
output=basename [required]
Name for output basename raster map(s)
slices=basename [required]
Basename for horizontal slices of the 3D raster
Name for output basename raster map(s)
Value to multiply the raster values with
Coefficient a in the equation y = ax + b
Value to add to the raster values
Coefficient b in the equation y = ax + b
Moving window size
By default, only the given cell is considered
Count only those cells which are under the surface (in cells)

Table of contents


r3.count.categories iterates over whole numbers (categories, classes) in the 3D raster (considers values to be integers) and for each vertical column counts them in the given column.

The 3D raster map is considered to be integer, i.e. all values are converted to integer values with truncation. When some conversion is appropriate the multiply option can be used to scale the value before conversion. For example, if the values are percentages with values between 0 and 1, value 100 can be used to obtain percentages between 0 and 100. The values will be then preserved with precision 1 (decimal part is truncated).

SEE ALSO, (addon), r3.what


Vaclav Petras, NCSU GeoForAll Lab


Available at: r3.count.categories source code (history)

Latest change: Monday Jan 30 19:52:26 2023 in commit: cac8d9d848299297977d1315b7e90cc3f7698730

Main index | 3D raster index | Topics index | Keywords index | Graphical index | Full index

© 2003-2024 GRASS Development Team, GRASS GIS 8.3.3dev Reference Manual