r.buffer.lowmem(1grass)
π r.buffer.lowmem π
okay bestie, gather round, because this is the low-memory queen of raster buffering and she is lowkey iconic β¨
This page is the manual for r.buffer.lowmem from GRASS, and it lives in the raster + buffer keyword corner of the world π
β¨ NAME β¨
r.buffer.lowmem β creates a raster map showing buffer zones surrounding cells that contain non-NULL category values.
And she's the low-memory alternative to the classic r.buffer module π no cap.
π·οΈ KEYWORDS π·οΈ
raster, buffer
πΈ SYNOPSIS πΈ
r.buffer.lowmem
r.buffer.lowmem --help
r.buffer.lowmem [-z] input=name output=name distances=float[,float,...]
[units=string] [--overwrite] [--help] [--verbose] [--quiet] [--ui]
π© Flags π©
-zβ ignore zero (0) data cells instead of NULL cells. it's giving "zeros don't count" energy π--overwriteβ allow output files to overwrite existing files π (yes she will absolutely eat your old file, be warned)--helpβ print usage summary π«Ά--verboseβ verbose module output (she gets chatty)--quietβ quiet module output (she goes mute)--uiβ force launching GUI dialog β¨
π Parameters π
input=name[required] β name of input raster map. bestie this one is not optional, she needs the tea πoutput=name[required] β name for output raster map. also required, no skipping πdistances=float[,float,...][required] β distance zone(s). required, and yes you can pass a whole comma list, she's flexible like thatunits=stringβ units of distance πΈ- Options:
meters,kilometers,feet,miles,nautmiles - Default:
meters
- Options:
π¦ DESCRIPTION π¦
So r.buffer.lowmem creates a new raster map showing buffer zones (a.k.a. "distance" or "proximity" zones, iykyk) around all cells that contain non-NULL category values in an existing raster map. The distances of buffer zones from cells with non-zero category values are, and I cannot stress this enough, user-chosen π
This is the low-memory alternative to the classic r.buffer module. And listen β she is much slower than the classic version, fr fr. But the tradeoff? She will run on massive raster maps without using a lot of RAM π She's the main character who shows up late but gets it done.
Real talk: if your raster map is larger than32000x32000cells on a system with1 GBof RAM, or larger than90000x90000cells on a system with8 GBof RAM, consider using this module. That's the vibe check right there π
For more info see manual of r.buffer.
β EXAMPLE β
In the following example, the buffer zones would be (in the default units of meters): 0-100, 101-200, 201-300, 301-400 and 401-500. obsessed with the range π
r.buffer.lowmem input=roads output=roads.buf distances=100,200,300,400,500
Result:
r.category input=roads.buf
1 distances calculated from these locations
2 0-100 meters
3 100-200 meters
4 200-300 meters
5 300-400 meters
6 400-500 meters
look at those category labels slaying in a neat little column ππ
π SEE ALSO π
g.region, r.buffer, r.cost, r.grow.distance, r.mapcalc, r.reclass, v.buffer
the whole friend group fr fr π«Ά
π AUTHORS π
- Michael Shapiro, U.S. Army Construction Engineering Research Laboratory
- James Westervelt, U.S. Army Construction Engineering Research Laboratory
- Low-memory Python version by Glynn Clements
absolute legends, we stan π
π§ SOURCE CODE π§
Available at: r.buffer.lowmem source code (history)
Latest change: Thursday May 22 03:42:15 2025 in commit: 370bcb0490b421ac90b2dbe5766af9512cb08f92
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
and that's the whole page, babe π thanks for reading all the way to the bottom, you're literally the best. this was Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual, and the page itself is r.buffer.lowmem(1grass) β periodt ππβ¨
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms