-
-
Notifications
You must be signed in to change notification settings - Fork 363
Open
Labels
C++Related code is in C++Related code is in C++backport to 8.4PR needs to be backported to release branch 8.4PR needs to be backported to release branch 8.4bugSomething isn't workingSomething isn't workingrasterRelated to raster data processingRelated to raster data processing
Milestone
Description
Describe the bug
r.terraflow
fails with "grid larger than memory" error on very small regions
north: 21
south: -1.5
west: -1.5
east: 5
nsres: 0.5
ewres: 0.5
rows: 45
cols: 13
cells: 585
To Reproduce
Steps to reproduce the behavior:
- Run
grass -c EPSG:5514 /tmp/r_terraflow
- Run
r.unpack input=dem.pack out=dem
- Run
g.region rast=dem
- Run
r.terraflow elevation=dem@PERMANENT filled=dem_filled direction=dem_flowdir accumulation=dem_flowacc --o -s
- See error
WARNING: Raster map <dem> is of type DCELL_TYPE -- precision may be lost
Reading input data...
100%
WARNING: grid larger than memory (ignored)
r.terraflow: grid.cpp:33: grid::grid(dimension_type, dimension_type, dimension_type, dimension_type, long int, cclabel_type): Assertion `(size_t)width * height * sizeof(gridElement) < getAvailableMemory()' failed.
Aborted
Expected behavior
r.terraflow
should run successfully.
System description (please complete the following information):
- Operating System: Linux
- GRASS GIS version: 8.4
Metadata
Metadata
Assignees
Labels
C++Related code is in C++Related code is in C++backport to 8.4PR needs to be backported to release branch 8.4PR needs to be backported to release branch 8.4bugSomething isn't workingSomething isn't workingrasterRelated to raster data processingRelated to raster data processing