r.reclass.area(1)

✨ r.reclass.area ✨

okay bestie, welcome to the r.reclass.area page from the GRASS GIS User's Manual πŸ’– this one's a whole vibe β€” it reclasses your raster based on how big the areas are, in hectares, no cap.

πŸŽ€ NAME πŸŽ€

r.reclass.area β€” reclasses a raster map greater or less than a user specified area size (in hectares). periodt.

🌸 KEYWORDS 🌸

raster, statistics, aggregation


πŸ¦‹ 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 β€” the input map is clumped, like it already did the work
  • -d β€” clumps including diagonal neighbors (diagonal besties count too)
  • --overwrite β€” allow output files to overwrite existing files
  • --help β€” print usage summary
  • --verbose β€” verbose module output
  • --quiet β€” quiet module output
  • --ui β€” force launching GUI dialog

🌈 Parameters:

  • input=name [required] β€” name of input raster map
  • output=name [required] β€” name for output raster map
  • value=float [required] β€” value option that sets the area size limit (in hectares)
  • mode=string [required] β€” lesser or greater than specified value. Options: lesser, greater
  • method=string β€” method used for reclassification. Options: reclass, rmarea. Default: reclass

πŸ’– DESCRIPTION πŸ’–

so r.reclass.area reclasses a raster map that's greater or less than a user specified area size (in hectares). that's the whole gig, and it eats. πŸ”₯

if you use the -c flag, r.reclass.area will skip the creation of a clumped raster and just assume the input raster is already clumped. it's giving "trust me, i already did this" energy. 😌


🌟 EXAMPLES 🌟

okay so in this example, the ZIP code map in the North Carolina sample dataset is filtered for large areas (removing smaller areas from the map). iconic dataset choice ngl.

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


🫢 AUTHORS 🫢

NRCS, Markus Neteler


πŸ’œ SOURCE CODE πŸ’œ

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

accessed: Saturday Jan 17 05:41:52 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.reclass.area(1) straight out of GRASS 8.4.2 (the GRASS GIS User's Manual, obvi), and yes the copyright is giving Β© 2003-2025 GRASS Development Team main character energy. go reclass some areas, you got this πŸ’…πŸŒΈ

πŸ“¦ where this page comes from