You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
According to the documentation, r.random.cells should generate a random sets of raster cells that are at least distance apart. I.e., if run with distance set to region resolution and ncells set to number of region cells, one would expect the resulting map to contain no NULLs.
Instead, it seems to generate a set of raster cells that are more thandistance apart and with the abovementioned settings, the resulting map contains ~60% NULLs.
To Reproduce
(maps from NC dataset)
set computational region: g.region -p geology_30m@PERMANENT
distribute 225000 cells (ncells in geology_30m@PERMANENT) with 30m distance (resolution of geology_30m@PERMANENT): r.random.cells output=rand_cells_30m distance=30 ncells=225000
the output map contains only ~81000 non-null cells
distribute the same number of cells with 29.999m distance: r.random.cells output=rand_cells_29m distance=29.999 ncells=225000
The output map contains exactly 225000 non-null cells
Expected behavior
Given the specified distance and number of cells, the output map should contain exactly 225000 non-null cells. Alternatively, the documentation could be changed to r.random.cells generates a random sets of raster cells that are more than distance apart.
System description (please complete the following information):
Operating System: Ubuntu 18.04.5 LTS
GRASS GIS version 7.8.5
The text was updated successfully, but these errors were encountered:
Describe the bug
According to the documentation, r.random.cells should generate a random sets of raster cells that are at least distance apart. I.e., if run with distance set to region resolution and ncells set to number of region cells, one would expect the resulting map to contain no NULLs.
Instead, it seems to generate a set of raster cells that are more than distance apart and with the abovementioned settings, the resulting map contains ~60% NULLs.
To Reproduce
(maps from NC dataset)
g.region -p geology_30m@PERMANENT
r.random.cells output=rand_cells_30m distance=30 ncells=225000
r.random.cells output=rand_cells_29m distance=29.999 ncells=225000
Expected behavior
Given the specified distance and number of cells, the output map should contain exactly 225000 non-null cells. Alternatively, the documentation could be changed to r.random.cells generates a random sets of raster cells that are more than distance apart.
System description (please complete the following information):
The text was updated successfully, but these errors were encountered: