logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

r3.gradient - Computes gradient of a 3D raster map and outputs gradient components as three 3D raster

Author

       Anna Petrasova, NCSU GeoForAll Lab, developed during GSoC 2014.

Description

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

Examples

       # 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

Keywords

       raster3d, gradient, voxel

Name

r3.gradient   -  Computes  gradient of a 3D raster map and outputs gradient components as three 3D raster
       maps.

See Also

r3.flow,r.flow

Source Code

       Available at: r3.gradient source code (history)

       Accessed: Friday Apr 04 01:20:03 2025

       Main index | 3D raster index | Topics index | Keywords index | Graphical index | Full index

       © 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual

GRASS 8.4.1                                                                                  r3.gradient(1grass)

Synopsis

r3.gradientr3.gradient--helpr3.gradientinput=nameoutput=grad_x,grad_y,grad_z[,grad_x,grad_y,grad_z,...]
       [blocksize=size_x,size_y,size_z[,size_x,size_y,size_z,...]]      [--overwrite]    [--help]    [--verbose]
       [--quiet]  [--ui]

   Flags:--overwrite
           Allow output files to overwrite existing files

       --help
           Print usage summary

       --verbose
           Verbose module output

       --quiet
           Quiet module output

       --ui
           Force launching GUI dialog

   Parameters:input=name[required]
           Name of input 3D raster map

       output=grad_x,grad_y,grad_z[,grad_x,grad_y,grad_z,...] [required]
           Name for output 3D raster map(s)

       blocksize=size_x,size_y,size_z[,size_x,size_y,size_z,...]
           Size of blocks
           Default: 30,30,20

See Also