r.reclass.area(1grass)

πŸ’– r.reclass.area β€” the group chat version πŸ’–

okay bestie, sit down, hydrate, because we're talking about r.reclass.area from the GRASS User's Manual and honestly? she's iconic for this. 🌸


✨ NAME ✨

r.reclass.area β€” she reclasses a raster map that's greater or less than a user specified area size, measured in hectares. no cap. πŸ‘‘


🏷️ KEYWORDS 🏷️

raster, statistics, aggregation β€” the holy trinity of "we're cleaning up our map, bestie." πŸ’…


πŸ“œ SYNOPSIS πŸ“œ

r.reclass.area
r.reclass.area --help
r.reclass.area [-cd] input=name output=name value=float mode=string
  [method=string]   [--overwrite]  [--help]  [--verbose]  [--quiet]
  [--ui]

🚩 Flags 🚩

  • -c β€” okay so this one means the input map is already clumped, so she doesn't have to do it herself. main character shortcut energy.
  • -d β€” clumps including diagonal neighbors. diagonals count too, bestie, we don't discriminate πŸ¦‹
  • --overwrite β€” lets the output files just steamroll right over whatever existing files are already there. bold. dangerous. lowkey slay.
  • --help β€” prints the usage summary so you're not lost in the group chat.
  • --verbose β€” verbose module output, i.e. she tells you everything.
  • --quiet β€” quiet module output, i.e. she says nothing. mysterious. πŸ’€
  • --ui β€” forces the GUI dialog to launch. for the visual girlies ✨

πŸŽ€ Parameters πŸŽ€

  • input=name [required] β€” name of the input raster map. required bestie, don't come empty-handed.
  • output=name [required] β€” name for the output raster map. also required. also don't forget it. πŸ™ˆ
  • value=float [required] β€” the value option that sets the area size limit, in hectares.
  • mode=string [required] β€” do you want lesser or greater than the specified value?
    • Options: lesser, greater
  • method=string β€” the method used for reclassification.
    • Options: reclass, rmarea
    • Default: reclass

πŸ’« DESCRIPTION πŸ’«

r.reclass.area reclasses a raster map greater or less than a user specified area size (in hectares). that's the whole gig. she's focused. she's thriving.

If the -c flag is used, r.reclass.area will skip the creation of a clumped raster and just assume that the input raster is already clumped. trusting your work, periodt. 🫢


🌈 EXAMPLES 🌈

In this example, the ZIP code map in the North Carolina sample dataset is filtered for large areas (removing smaller areas from the map).

g.region raster=zipcodes -p
r.report zipcodes unit=h

Extract only areas greater than 2000 ha, NULL otherwise:

r.reclass.area input=zipcodes output=zipcodes_larger2000ha mode=greater value=2000
r.report zipcodes_larger2000ha unit=h

Figure: r.reclass.area method=reclass


In this example, the ZIP code map in the North Carolina sample dataset is filtered for smaller areas which are substituted with the value of the respective adjacent area with largest shared boundary. Reclass by substitutional removing of areas minor of 1000 ha:

r.reclass.area input=zipcodes output=zipcodes_minor1000ha mode=lesser value=1000 method=rmarea

Figure: r.reclass.area method=rmarea


πŸ‘€ SEE ALSO πŸ‘€

  • r.reclass
  • r.clump
  • r.stats

go read those next, bestie, they're all in the same friend group. πŸ’œ


πŸ‘‘ AUTHORS πŸ‘‘

  • NRCS
  • Markus Neteler

πŸ”— SOURCE CODE πŸ”—

Available at: r.reclass.area source code (history)

Latest change: Thursday May 22 05:23:53 2025 in commit: 199e858c3770ff4c3b2b6ad073c1374169adbece

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

Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual


and that's the whole manual, no notes. πŸ’–

k bye bestie, go reclass some rasters. this was r.reclass.area from the GRASS 8.5.0 Reference Manual β€” source code lives at the r.reclass.area source code (history) link, last touched Thursday May 22 05:23:53 2025 in commit 199e858c3770ff4c3b2b6ad073c1374169adbece, Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual. mwah. πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from