The goal of this project is to create a tool for visualization and basic flow modeling of grid datasets. The required functionality is to visualize a grid dataset in 3D and compute flow direction and flow accumulation of a grid dataset.
/home/toma/geodata/DEM/directory displayed in 3D.
Additionally, if invoked with a second grid as argument, the visualization routine should display the second grid (the color grid) draped on top of the first grid (the surface grid). This functionality is useful for viewing terrain attributes like flow direction and flow accumulation draped on top of the elevation. Here is an example of flow accumulation of a terrain drawn on top of the elevation:
The interface is open-ended, but ideally the user would be able to perform any combination of these commands on any grid dataset. For instance:
lynx20: > flow
..Starting flow program.
display surf=<grid-name> [col=<grid-name>]
computeFD elev=< grid-name> dir=<grid-name>
computeFA dir=< grid-name> accu=<grid-name>
..usage: display surf=<grid-name> [col=<grid-name>]
flow> display surf=set1.asc
flow> display surf=kaweah.asc
flow> computeFD elev=kaweah.asc dir=kaweahFD.asc
..Computing FD for kaweah.asc
flow> display surf=kaweahFD.asc
flow> display surf=kaweah.asc col=kaweahFD.asc
..Displaying kaweahFD.asc draped over kaweah.asc
flow> computeFA dir=kaweahFD.asc accu=kaweahFA.asc
...Computing FA for kaweah.asc
flow> display surf=kaweah.asc col=kaweahFA.asc
..Displaying kaweahFA.asc draped over kaweah.asc
flow> display surf=kaweahFD.asc col=kaweah.asc
..Displaying kaweah.asc draped over kaweahFD.asc
flow> display surf=sierra.asc