r.quant(1grass)

πŸ’– r.quant πŸ’– β€” straight from the GRASS User's Manual

okay bestie, welcome to r.quant β€” the GRASS module that produces the quantization file for a floating-point map. that's it, that's the whole assignment, and she does it flawlessly. let's get into it πŸ¦‹


✨ NAME ✨

r.quant β€” produces the quantization file for a floating-point map. no cap, that's literally the name and the job. πŸ‘‘

🏷️ KEYWORDS 🏷️

raster, statistics, quantization πŸ’…

🌸 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, no rounding, bye βœ‚οΈ
  • -r β€” round floating point data. she's polite, she rounds 🫢
  • --help β€” print usage summary. when u need the cheat sheet πŸ“–
  • --verbose β€” verbose module output. she will tell u everything πŸ—£οΈ
  • --quiet β€” quiet module output. shhh, main character silence 🀫
  • --ui β€” force launching GUI dialog. buttons and sliders era πŸ–±οΈβœ¨

πŸ“ Parameters πŸ“

  • input=string[,string,...] [required] β€” raster map(s) to be quantized. yes bestie, it's required, u literally cannot skip her πŸ’–
  • rules=name β€” path to rules file ("-" to read from stdin). yes, the literal hyphen means "read it from stdin", iconic behavior πŸŽ€
  • basemap=string β€” base map to take quant rules from. borrow the rules from another map, real sisterhood energy πŸ‘―
  • fprange=dmin,dmax β€” floating point range: dmin,dmax πŸ“
  • range=min,max β€” integer range: min,max πŸ”’

πŸ’œ DESCRIPTION πŸ’œ

r.quant produces the quantization file for a floating-point map. that's the vibe, that's the mission. ✨

the map parameter defines the map for which the rules are to be created. and here's the tea 🍡: if more than one map is specified, 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. so if u don't hand her a basemap or an fprange, she's out here calculating the range across literally all of them. she's thorough like that πŸ’…

πŸ“ Quant rules πŸ“

the quant rules have to be entered interactively. yes, it's giving conversation, not automation πŸ™ˆ

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. and plot twist: all values can be "*" which means infinity. stars meaning infinity?? she's dramatic and correct at the same time 😭⭐


⚠️ bestie, listen: it is an error to specify both basemap and fprange. pick a lane, queen, she will not do both πŸš«πŸ‘‘

πŸ‘€ SEE ALSO πŸ‘€

  • r.support
  • r.null

go read those too, iykyk πŸ’–

🫢 AUTHORS 🫢

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

legends, honestly. ate and left no crumbs πŸ‘‘

🧚 SOURCE CODE 🧚

Available at: r.quant source code (history) 🌈

Latest change: Thursday May 08 20:58:05 2025 in commit:

4144ba81fa125e1549fc52e1cf5feb4fa004be8b

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


and that's the whole page, bestie!! πŸ’– tysm for reading, mwah πŸŽ€ oh also the cute little sign-off at the bottom of the original says Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual, and the footer tag is GRASS 8.5.0 β€” so when u see r.quant(1grass), that's her. go quantize something, u got this β­πŸ‘‘πŸ’…

πŸ“¦ where this page comes from