r3.gradient.html 696 B

1234567891011121314151617181920212223242526272829
  1. <h2>DESCRIPTION</h2>
  2. Module <em>r3.gradient</em> computes gradient from a 3D raster map.
  3. Results are three 3D raster maps describing the x, y, z components of
  4. the computed gradient field.
  5. <h2>EXAMPLES</h2>
  6. <div class="code"><pre>
  7. # create a 3D raster
  8. g.region s=0 n=100 w=0 e=100 b=0 t=100 -p
  9. r3.mapcalc "test_gradient = sqrt(row()*row() +col()*col()+ depth()*depth())"
  10. # compute gradient
  11. r3.gradient input=test_gradient output=grad_x,grad_y,grad_z
  12. </pre></div>
  13. <h2>SEE ALSO</h2>
  14. <em>
  15. <a href="r3.flow.html">r3.flow</a>,
  16. <a href="r.flow.html">r.flow</a>
  17. </em>
  18. <h2>AUTHOR</h2>
  19. Anna Petrasova, <a href="http://geospatial.ncsu.edu/osgeorel/">NCSU OSGeoREL</a>,
  20. developed during GSoC 2014.