File: r3.gradient.html

package info (click to toggle)
grass 8.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 277,040 kB
  • sloc: ansic: 460,798; python: 227,732; cpp: 42,026; sh: 11,262; makefile: 7,007; xml: 3,637; sql: 968; lex: 520; javascript: 484; yacc: 450; asm: 387; perl: 157; sed: 25; objc: 6; ruby: 4
file content (28 lines) | stat: -rw-r--r-- 701 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<h2>DESCRIPTION</h2>

Module <em>r3.gradient</em> computes gradient from a 3D raster map.
Results are three 3D raster maps describing the x, y, z components of
the computed gradient field.

<h2>EXAMPLES</h2>

<div class="code"><pre>
# create a 3D raster
g.region s=0 n=100 w=0 e=100 b=0 t=100 -p
r3.mapcalc "test_gradient = sqrt(row()*row() +col()*col()+ depth()*depth())"

# compute gradient
r3.gradient input=test_gradient output=grad_x,grad_y,grad_z
</pre></div>

<h2>SEE ALSO</h2>

<em>
<a href="r3.flow.html">r3.flow</a>,
<a href="r.flow.html">r.flow</a>
</em>

<h2>AUTHOR</h2>

Anna Petrasova, <a href="https://geospatial.ncsu.edu/geoforall/">NCSU GeoForAll Lab</a>,
developed during GSoC 2014.