Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r.random.cells: treat distance as minimum distance #1797

Merged
merged 4 commits into from
Jan 12, 2022

Conversation

metzm
Copy link
Contributor

@metzm metzm commented Aug 15, 2021

Currently, the documentation says that "r.random.cells generates a random sets of raster cells that are at least distance apart", but in fact r.random.cells generates a random sets of raster cells that are more than distance apart.
This PR syncs the behaviour to the documentation: random cells are at least distance apart. Fixes #1779.

@metzm metzm added backport_needed raster Related to raster data processing labels Aug 15, 2021
@metzm metzm added this to the 8.0.0 milestone Aug 15, 2021
@metzm metzm requested a review from marisn August 15, 2021 16:10
@mlennert
Copy link
Contributor

mlennert commented Oct 2, 2021

@metzm, can this be merged ?

raster/r.random.cells/init.c Outdated Show resolved Hide resolved
@neteler neteler merged commit be1ced9 into OSGeo:main Jan 12, 2022
neteler pushed a commit that referenced this pull request Jan 12, 2022
* r.random.cells: treat distance as minimum distance
* r.random.cells: adjust test cases
* r.random.cells: format test_random_cells.py
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
* r.random.cells: treat distance as minimum distance
* r.random.cells: adjust test cases
* r.random.cells: format test_random_cells.py
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
* r.random.cells: treat distance as minimum distance
* r.random.cells: adjust test cases
* r.random.cells: format test_random_cells.py
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
* r.random.cells: treat distance as minimum distance
* r.random.cells: adjust test cases
* r.random.cells: format test_random_cells.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
raster Related to raster data processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Option distance in r.random.cells does not specify minimum distance
5 participants