r.quant(1)

πŸ’– r.quant β€” the manual page, bestie edition πŸ’–

okay so this is r.quant, straight out of the GRASS GIS User's Manual (manual section 1, iykyk). She makes quantization files for floating-point maps and honestly? she eats every time. ✨


🌸 NAME 🌸

r.quant β€” produces the quantization file for a floating-point map. no cap, that's the whole job description. πŸ’…


πŸŽ€ KEYWORDS πŸŽ€

raster, statistics, quantization β€” the lil trio of tags that describe her whole vibe.


✨ SYNOPSIS ✨

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

🚩 Flags 🚩

  • -t β€” truncate floating point data. just chop it. βœ‚οΈ
  • -r β€” round floating point data. polite little numbers. 🧚
  • --help β€” print usage summary
  • --verbose β€” verbose module output (she'll tell you everything)
  • --quiet β€” quiet module output (she'll tell you nothing, respectfully 🀫)
  • --ui β€” force launching GUI dialog

πŸ¦‹ Parameters πŸ¦‹

  • input=string[,string,...] [required] β€” raster map(s) to be quantized. mandatory bestie, you can't skip it.
  • rules=name β€” path to rules file ("-" to read from stdin)
  • basemap=string β€” base map to take quant rules from
  • fprange=dmin,dmax β€” floating point range: dmin,dmax
  • range=min,max β€” integer range: min,max

πŸ’œ DESCRIPTION πŸ’œ

so r.quant produces the quantization file for a floating-point map. that's it, that's her whole thing, and she's iconic for it. πŸ‘‘

the map parameter defines the map for which the rules are to be created. and like, if you specify more than one map? then this implies that the floating-point range is the minimum and maximum of all the maps together β€” unless either basemap=map or fprange=min,max is specified. girl math, but make it geographic. 🌈


🌟 Quant rules 🌟

the quant rules have to be entered interactively. yes bestie, you literally type them in. live your truth.

if rules is specified, the input has the form:

value1:value2:cat1:[cat2]

where value1 and value2 are floating point values and cat1 and cat2 are integers. if cat2 is missing, it is taken to be equal to cat1. all values can be "*" which means infinity. so dramatic. so valid. πŸ’«


🫢 NOTE 🫢

it is an error to specify both basemap and fprange. pick a lane, bestie. 😭 she will not do both.

🌈 SEE ALSO 🌈

r.support, r.null β€” go read those too, they're in the group chat.


πŸ‘‘ AUTHORS πŸ‘‘

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

(three icons, one lab, no notes πŸ’…)


πŸ“ SOURCE CODE πŸ“

available at: r.quant source code (history)

Accessed: Saturday Jan 17 05:40:55 2026

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


Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual


and that's the whole page, bestie πŸŽ€ this was r.quant(1) from the GRASS GIS User's Manual, living her best life in GRASS 8.4.2, copyright GRASS Development Team 2003-2025, last accessed Saturday Jan 17 05:40:55 2026. periodt. βœ¨πŸ’–πŸ¦‹
πŸ“¦ where this page comes from