Scroll to navigation

r.quant(1grass) GRASS GIS User's Manual r.quant(1grass)


r.quant - Produces the quantization file for a floating-point map.


raster, statistics, quantization


r.quant --help
r.quant [-tr] input=string[,string,...] [rules=name] [basemap=string] [fprange=dmin,dmax] [range=min,max] [--help] [--verbose] [--quiet] [--ui]


Truncate floating point data

Round floating point data

Print usage summary

Verbose module output

Quiet module output

Force launching GUI dialog


Raster map(s) to be quantized

Path to rules file ("-" to read from stdin)

Base map to take quant rules from

Floating point range: dmin,dmax

Integer range: min,max


r.quant produces the quantization file for a floating-point map.

The map parameter defines the map for which the rules are to be created. If more than one map is specified, then this implies that the floating-point range is the miniumum and maximum of all the maps together, unless either basemap=map or fprange=min,max is specified.

Quant rules

The quant rules have to be entered interactively.

If rules is specified, the input has the form:


where value1 and value2 are floating point values and cat1 cand cat2 are integers. If cat2 is missing, it is taken to be equal to cat1. All values can be "*" which means infinity.


It is an error for both basemap and fprange to be specified.

SEE ALSO, r.null


Michael Shapiro, Olga Waupotitsch, U.S.Army Construction Engineering Research Laboratory


Available at: r.quant source code (history)

Main index | Raster index | Topics index | Keywords index | Graphical index | Full index

© 2003-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual

GRASS 7.8.5