r.circle(1)
β¨ r.circle β¨
okay bestie, this is straight outta the GRASS GIS User's Manual β page r.circle(1) β and it's genuinely so fun, let's go π
π― NAME π―
r.circleβ creates a raster map containing concentric rings around a given point. like, ripples in a pond but make it spatial data π«Ά
KEYWORDS π·οΈ
raster, buffer, geometry, circle
πΈ SYNOPSIS πΈ
r.circle
r.circle --help
r.circle [-b] output=name coordinates=east,north [min=float]
[max=float] [multiplier=float] [--overwrite] [--help] [--verbose]
[--quiet] [--ui]
π© Flags
-bβ generate a binary raster map (solid one-value vibes only, no gradient π )--overwriteβ allow output files to overwrite existing files (yes, it will eat your old file, consent granted)--helpβ print usage summary--verboseβ verbose module output--quietβ quiet module output (shhh π€«)--uiβ force launching GUI dialog
π Parameters
output=name[required] β name for the output raster map, name it something cutecoordinates=east,north[required] β the coordinate of the center(east,north), i.e. where the main character point lives πmin=floatβ minimum radius for the ring/circle map (in meters)max=floatβ maximum radius for the ring/circle map (in meters)multiplier=floatβ data value multiplier
π DESCRIPTION π
So r.circle creates an output raster map centered on the x,y values you specify with the coordinate parameter, and it goes all the way out to the edge of the current region. The output cell values increase linearly from the specified center β like a little glow-up the further you get from the middle β¨
The min and max parameters control the inner and outer output raster map radii, respectively. inner circle and outer circle, bestie, two rings of the same slay π
The mult parameter can be used to multiply the output raster cells by a common factor. Note that this parameter does not affect the output raster position or size β only the z-values are changed with this parameter. so it's purely a values thing, not a geometry thing, no cap.
Binary-output raster maps (solid circles of one value, iconic) can be created with the -b flag. Raster maps so created can be used to create binary filters for use in i.ifft (inverse Fourier transformations; apply filter with r.mask). π¦
π EXAMPLES π
example one β gradient circle, current map center, radius 300m πΈ
Generate a raster circle at current map center with a radius of 300m and outwardly increasing raster values:
EASTCENTER=`g.region -c | awk β /center easting:/ { print $3 }β`
NORTHCENTER=`g.region -c | awk β /center northing:/ { print $3 }β`
r.circle output=circle coordinate=${EASTCENTER},${NORTHCENTER} max=300
example two β binary ring, inner 500m, outer 1000m π
Generate a binary raster ring around current map center with an inner radius of 500m and an outer radius of 1000m:
EASTCENTER=`g.region -c | awk β /center easting:/ { print $3 }β`
NORTHCENTER=`g.region -c | awk β /center northing:/ { print $3 }β`
r.circle -b output=circle coordinate=${EASTCENTER},${NORTHCENTER} min=500 max=1000
π SEE ALSO π
g.region, g.remove, g.rename, i.fft, i.ifft, r.mask
go read those next, iykyk π§
π«Ά AUTHORS π«Ά
- Bill Brown, U.S. Army Construction Engineering Research Laboratory
- Additional flag/min/max parameter by Markus Neteler, University of Hannover
π» SOURCE CODE π»
Available at: r.circle source code (history)
Accessed: Saturday Jan 17 05:40:43 2026
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
okay that's the whole page, you ate that. go make some circles. periodt. πβ¨
and a lil sign-off bestie β this whole thing is Β© 2003-2025 GRASS Development Team, from the GRASS GIS 8.4.2 Reference Manual, and you were reading r.circle(1) with me, GRASS 8.4.2 edition, accessed Saturday Jan 17 05:40:43 2026. mwah ππ¦π
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· 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