Constraints - Use only GRASS GIS - Automated using pyGRASS
- River raster OR river as vector (both are computed)
- gradient of the valley (as a float)
- vector line with direction and magnitude of the gradient
The idea I want to create a script (pyGRASS) to execute the following steps automatically.
The general idea is to construct a "virtual surface" layer. This surface layer will be a raster with a certain extent and gradient. The direction of this gradient will be described by a vector line.
Thus, in essence I want to create a raster (of certain width) along a vector line with a certain gradient. Thus the raster will start with a certain height which will decrease along the line up untill the end of the line.
Creating "virtual surface"
I am not sure how I will actually create this surface. I've looked into r.gradient but here I have to specify the direction of the gradient by hand. I already have the direction and magnitude (vector)
Has anyone an idea or a different approach to solve this problem? Faced it before?