v.perturb(1)
β¨ NAME β¨
okay so this is v.perturb from the GRASS GIS User's Manual bestie π β it does random location perturbations of vector points. that's the whole vibe. it takes points and it β¨jigglesβ¨ them.
π·οΈ KEYWORDS π·οΈ
vector, geometry, statistics, random, point pattern, level1
π SYNOPSIS π
v.perturb
v.perturb --help
v.perturb [-sb] input=name [layer=string] output=name
[distribution=string] parameters=float[,float,...] [minimum=float]
[seed=integer] [--overwrite] [--help] [--verbose] [--quiet] [--ui]
π© Flags:
-sβ generate random seed (ngl the result is non-deterministic, so don't come for me if you can't reproduce it π)-bβ do not build topology. lowkey advantageous when you're handling a large number of points π«Ά--overwriteβ allow output files to overwrite existing files (yes it will really do it, be brave)--helpβ print usage summary--verboseβ verbose module output (it's giving chatty β¨)--quietβ quiet module output (shhh π€«)--uiβ force launching GUI dialog
π Parameters:
input=name[required] β name of input vector map. or, plot twist, a data source for direct OGR access πlayer=stringβ layer number or name ('-1'for all layers). a single vector map can be connected to multiple database tables, and this number determines which table to use. when used with direct OGR access, this is the layer name.- Default:
-1
- Default:
output=name[required] β name for output vector mapdistribution=stringβ distribution of perturbation- Options:
uniform,normal - Default:
uniform
- Options:
parameters=float[,float,...][required] β parameter(s) of distribution. if the distribution isuniform, only one parameter β the maximum β is needed. for anormaldistribution, two parameters β the mean and standard deviation β are required. (it's giving "read the fine print" bestie π)minimum=floatβ minimum deviation in map units- Default:
0.0
- Default:
seed=integerβ seed for random number generation
π« DESCRIPTION π«
v.perturb reads a vector map of points and writes the same points but perturbs the eastings and northings by adding either a uniform or normal delta value. and what does perturbation even mean?? it means a variating spatial deviation is added to the coordinates. periodt. π
π NOTES π
the uniform distribution is always centered about zero. the associated parameter is constrained to be positive and specifies the maximum of the distribution; the minimum is the negation of that parameter. so if you wanna perturb into a ring around the center, the minimum parameter is your girl π
usually, the mean (first parameter) of the normal distribution is zero (i.e., the distribution is centered at zero). the standard deviation (second parameter) is naturally constrained to be positive. no cap.
β οΈ output vector points are not guaranteed to be contained within the current geographic region. like, they can absolutely wander off. bye bestie π
πΈ EXAMPLES πΈ
π² Random, uniformly distributed selection
to create a random, uniformly distributed selection of possible new points with a radius of 100,000 map units, use the following command:
v.perturb input=comm_colleges output=uniform_perturb parameters=100000
your map should look similar to this figure:
Figure: Map showing the actual community college points and uniformly random chosen points. πΊοΈ
π Normal distributed selection
for a normal distribution with a mean of 5000 and standard deviation of 2000, use the following command:
v.perturb input=comm_colleges output=normal_perturb distribution=normal parameters=5000,2000
Figure: Map showing the actual community college points and normally random chosen and colored points. Notice that each point is closer to the original point. π
β Normal distributed selection with a minimum value
in order to include a minimum value of 500, use the following command:
v.perturb input=comm_colleges output=min_perturb distribution=normal parameters=100000,1000 minimum=500
π SEE ALSO π
v.randomv.univar
π AUTHORS π
- James Darrell McCauley
- when he was at: Agricultural Engineering Purdue University
- Random number generators originally written in FORTRAN by Wes Peterson and translated to C using
f2c.
π§ SOURCE CODE π§
Available at: v.perturb source code (history)
Accessed: Saturday Jan 17 05:41:29 2026
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual
okay that's the whole thing bestie, we ate and left no crumbs π this was v.perturb(1) from the GRASS GIS 8.4.2 manual, page accessed Saturday Jan 17 05:41:29 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