logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

r.reclass.area - Reclasses a raster map greater or less than user specified area size (in hectares).

Authors

       NRCS,
       Markus Neteler

Description

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

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

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.areamethod=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.areamethod=rmarea

Keywords

       raster, statistics, aggregation

Name

r.reclass.area  - Reclasses a raster map greater or less than user specified area size (in hectares).

See Also

r.reclass,r.clump,r.stats

Source Code

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

       Accessed: Friday Apr 04 01:21:12 2025

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

       © 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual

GRASS 8.4.1                                                                               r.reclass.area(1grass)

Synopsis

r.reclass.arear.reclass.area--helpr.reclass.area  [-cd]  input=nameoutput=namevalue=floatmode=string  [method=string]   [--overwrite]
       [--help]  [--verbose]  [--quiet]  [--ui]

   Flags:-c
           Input map is clumped

       -d
           Clumps including diagonal neighbors

       --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,greatermethod=string
           Method used for reclassification
           Options: reclass,rmarea
           Default: reclass

See Also