Compute the drainage network on digital elevation models stored in external memory.
To compile, run make or use:
g++ -O3 -o EMFlow hydrogEmFillFlow.cpp lz4.c
To run, need set up the amount of memory available (line 77) and tiled block size (line 76) on code hydrogEmFillFlow.cpp and need set up the amount of memory available (line 44) and tiled block size (line 43) on code flow.cpp.
./EMFlow nrows terrain_name.hgt
About the Script
- .creat folder tiles to store temporary tiles, the tiles folder is necessary for the program operation
- .creat folder tempos to store the running time
- .Run the program for several instances and stores the runtime
As a result it is given a file named flow.hgt containing the accumulated flow with 2 bytes.
This program is described by the publication
Thiago L. Gomes, Salles V. G. Magalhães, Marcus V. A. Andrade, W. Randolph Franklin, and Guilherme C. Pena. 2012. Computing the drainage network on huge grid terrains. In Proceedings of the 1st ACM SIGSPATIAL International Workshop on Analytics for Big Geospatial Data (BigSpatial '12). ACM, New York, NY, USA, 53-60. DOI=10.1145/2447481.2447488 http://doi.acm.org/10.1145/2447481.2447488 (Download)