WHY does terraflow fail?
Algorithm ‘r.terraflow’ starting…
Input parameters:
{ ‘-s’ : False, ‘GRASS_RASTER_FORMAT_META’ : ”, ‘GRASS_RASTER_FORMAT_OPT’ : ”, ‘GRASS_REGION_CELLSIZE_PARAMETER’ : 0, ‘GRASS_REGION_PARAMETER’ : None, ‘accumulation’ : ‘TEMPORARY_OUTPUT’, ‘d8cut’ : None, ‘direction’ : ‘TEMPORARY_OUTPUT’, ‘elevation’ : ‘F:/Github/ULC/ioniq-geography/gis/data/dem/korea/korea_COP30_EPSG3857_zoomin.tif’, ‘filled’ : ‘TEMPORARY_OUTPUT’, ‘memory’ : 300, ‘stats’ : ‘TEMPORARY_OUTPUT’, ‘swatershed’ : ‘TEMPORARY_OUTPUT’, ‘tci’ : ‘TEMPORARY_OUTPUT’ }
g.proj -c wkt=“C:/Users/GeorgeAdamon/AppData/Local/Temp/processing_XCbuLc/5296583370f0428fa7f566c111d3926b/crs.prj”
r.in.gdal input=“F:\Github\ULC\ioniq-geography\gis\data\dem\korea\korea_COP30_EPSG3857_zoomin.tif” band=1 output=“rast_67d83f7300af212” —overwrite -o
g.region n=4555545.49167395 s=4552047.7781976275 e=14280217.487746727 w=14276514.026418855 res=34.291308591401
r.terraflow elevation=rast_67d83f7300af212 memory=300 filled=filled71f08ee7b9824caf8417de5d33e547d3 direction=direction71f08ee7b9824caf8417de5d33e547d3 swatershed=swatershed71f08ee7b9824caf8417de5d33e547d3 accumulation=accumulation71f08ee7b9824caf8417de5d33e547d3 tci=tci71f08ee7b9824caf8417de5d33e547d3 stats=“C:/Users/GeorgeAdamon/AppData/Local/Temp/processing_XCbuLc/e8a8ca0ff8334c5db486fc0f68c510e7/stats.txt” —overwrite
g.region raster=filled71f08ee7b9824caf8417de5d33e547d3
r.out.gdal -t -m input=“filled71f08ee7b9824caf8417de5d33e547d3” output=“C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\111136a5d06e47d1bfa0323607f2a1da\filled.tif” format=“GTiff” createopt=“TFW=YES,COMPRESS=LZW” —overwrite
g.region raster=direction71f08ee7b9824caf8417de5d33e547d3
r.out.gdal -t -m input=“direction71f08ee7b9824caf8417de5d33e547d3” output=“C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\7ec5b820313e4a6cac211a2cf44eb6ad\direction.tif” format=“GTiff” createopt=“TFW=YES,COMPRESS=LZW” —overwrite
g.region raster=swatershed71f08ee7b9824caf8417de5d33e547d3
r.out.gdal -t -m input=“swatershed71f08ee7b9824caf8417de5d33e547d3” output=“C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\d958bbd71d8d43afb0d113a216f53918\swatershed.tif” format=“GTiff” createopt=“TFW=YES,COMPRESS=LZW” —overwrite
g.region raster=accumulation71f08ee7b9824caf8417de5d33e547d3
r.out.gdal -t -m input=“accumulation71f08ee7b9824caf8417de5d33e547d3” output=“C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\58836fcf8ba94176b49f04733d41e86a\accumulation.tif” format=“GTiff” createopt=“TFW=YES,COMPRESS=LZW” —overwrite
g.region raster=tci71f08ee7b9824caf8417de5d33e547d3
r.out.gdal -t -m input=“tci71f08ee7b9824caf8417de5d33e547d3” output=“C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\bfa1a7ff914b45fd8f18ca7ec5f70ebf\tci.tif” format=“GTiff” createopt=“TFW=YES,COMPRESS=LZW” —overwrite
WARNING: Concurrent mapset locking is not supported on Windows
C:\Users\GeorgeAdamon\Documents>chcp 1252 1>NUL
C:\Users\GeorgeAdamon\Documents>g.proj -c wkt=“C:/Users/GeorgeAdamon/AppData/Local/Temp/processing_XCbuLc/5296583370f0428fa7f566c111d3926b/crs.prj”
WARNING: Updating spatial reference with embedded proj4 definition
Default region was updated to the new projection, but if you have multiple mapsets g.region -d should be run in each to update the region from the default
Projection information updated
C:\Users\GeorgeAdamon\Documents>r.in.gdal input=“F:\Github\ULC\ioniq-geography\gis\data\dem\korea\korea_COP30_EPSG3857_zoomin.tif” band=1 output=“rast_67d83f7300af212” —overwrite -o
WARNING: Updating spatial reference with embedded proj4 definition
Over-riding projection check
Importing raster map <rast_67d83f7300af212>…
0..3..6..9..12..15..18..21..24..27..30..33..36..39..42..45..48..51..54..57..60..63..66..69..72..75..78..81..84..87..90..93..96..99..100
C:\Users\GeorgeAdamon\Documents>g.region n=4555545.49167395 s=4552047.7781976275 e=14280217.487746727 w=14276514.026418855 res=34.291308591401
C:\Users\GeorgeAdamon\Documents>r.terraflow elevation=rast_67d83f7300af212 memory=300 filled=filled71f08ee7b9824caf8417de5d33e547d3 direction=direction71f08ee7b9824caf8417de5d33e547d3 swatershed=swatershed71f08ee7b9824caf8417de5d33e547d3 accumulation=accumulation71f08ee7b9824caf8417de5d33e547d3 tci=tci71f08ee7b9824caf8417de5d33e547d3 stats=“C:/Users/GeorgeAdamon/AppData/Local/Temp/processing_XCbuLc/e8a8ca0ff8334c5db486fc0f68c510e7/stats.txt” —overwrite
MFD flow direction
D8CUT=999999986991104.000000
Memory size: 300.00M (314572800) bytes
ami_single_temp_name: G_mkstemp() failed: : No such file or directory
Assertion failed: 0, file ami_stream.cpp, line 91
C:\Users\GeorgeAdamon\Documents>g.region raster=filled71f08ee7b9824caf8417de5d33e547d3
ERROR: Raster map not found
C:\Users\GeorgeAdamon\Documents>r.out.gdal -t -m input=“filled71f08ee7b9824caf8417de5d33e547d3” output=“C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\111136a5d06e47d1bfa0323607f2a1da\filled.tif” format=“GTiff” createopt=“TFW=YES,COMPRESS=LZW” —overwrite
ERROR: Raster map or group not found
C:\Users\GeorgeAdamon\Documents>g.region raster=direction71f08ee7b9824caf8417de5d33e547d3
ERROR: Raster map not found
C:\Users\GeorgeAdamon\Documents>r.out.gdal -t -m input=“direction71f08ee7b9824caf8417de5d33e547d3” output=“C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\7ec5b820313e4a6cac211a2cf44eb6ad\direction.tif” format=“GTiff” createopt=“TFW=YES,COMPRESS=LZW” —overwrite
ERROR: Raster map or group not found
C:\Users\GeorgeAdamon\Documents>g.region raster=swatershed71f08ee7b9824caf8417de5d33e547d3
ERROR: Raster map not found
C:\Users\GeorgeAdamon\Documents>r.out.gdal -t -m input=“swatershed71f08ee7b9824caf8417de5d33e547d3” output=“C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\d958bbd71d8d43afb0d113a216f53918\swatershed.tif” format=“GTiff” createopt=“TFW=YES,COMPRESS=LZW” —overwrite
ERROR: Raster map or group not found
C:\Users\GeorgeAdamon\Documents>g.region raster=accumulation71f08ee7b9824caf8417de5d33e547d3
ERROR: Raster map not found
C:\Users\GeorgeAdamon\Documents>r.out.gdal -t -m input=“accumulation71f08ee7b9824caf8417de5d33e547d3” output=“C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\58836fcf8ba94176b49f04733d41e86a\accumulation.tif” format=“GTiff” createopt=“TFW=YES,COMPRESS=LZW” —overwrite
ERROR: Raster map or group not found
C:\Users\GeorgeAdamon\Documents>g.region raster=tci71f08ee7b9824caf8417de5d33e547d3
ERROR: Raster map not found
C:\Users\GeorgeAdamon\Documents>r.out.gdal -t -m input=“tci71f08ee7b9824caf8417de5d33e547d3” output=“C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\bfa1a7ff914b45fd8f18ca7ec5f70ebf\tci.tif” format=“GTiff” createopt=“TFW=YES,COMPRESS=LZW” —overwrite
ERROR: Raster map or group not found
C:\Users\GeorgeAdamon\Documents>exit
Press any key to continue …
Execution completed in 2.69 seconds
Results:
filled: C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\111136a5d06e47d1bfa0323607f2a1da\filled.tif
direction: C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\7ec5b820313e4a6cac211a2cf44eb6ad\direction.tif
swatershed: C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\d958bbd71d8d43afb0d113a216f53918\swatershed.tif
accumulation: C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\58836fcf8ba94176b49f04733d41e86a\accumulation.tif
tci: C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\bfa1a7ff914b45fd8f18ca7ec5f70ebf\tci.tif
stats: C:\Users\GeorgeAdamon\AppData\Local\Temp\processing_XCbuLc\e8a8ca0ff8334c5db486fc0f68c510e7\stats.txt
Loading resulting layers
The following layers were not correctly generated.
• C:/Users/GeorgeAdamon/AppData/Local/Temp/processing_XCbuLc/111136a5d06e47d1bfa0323607f2a1da/filled.tif
• C:/Users/GeorgeAdamon/AppData/Local/Temp/processing_XCbuLc/58836fcf8ba94176b49f04733d41e86a/accumulation.tif
• C:/Users/GeorgeAdamon/AppData/Local/Temp/processing_XCbuLc/7ec5b820313e4a6cac211a2cf44eb6ad/direction.tif
• C:/Users/GeorgeAdamon/AppData/Local/Temp/processing_XCbuLc/bfa1a7ff914b45fd8f18ca7ec5f70ebf/tci.tif
• C:/Users/GeorgeAdamon/AppData/Local/Temp/processing_XCbuLc/d958bbd71d8d43afb0d113a216f53918/swatershed.tif
You can check the ‘Log Messages Panel’ in QGIS main window to find more information about the execution of the algorithm.