|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-8843f13794
|
Gradient computation. More...
#include <grass/raster3d.h>
Go to the source code of this file.
Functions | |
| void | Rast3d_gradient_double (RASTER3D_Array_double *array, double *step, RASTER3D_Array_double *grad_x, RASTER3D_Array_double *grad_y, RASTER3D_Array_double *grad_z) |
| Gradient computation. | |
Gradient computation.
SPDX-FileCopyrightText: 2014 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later
Definition in file gradient.c.
| void Rast3d_gradient_double | ( | RASTER3D_Array_double * | array, |
| double * | step, | ||
| RASTER3D_Array_double * | grad_x, | ||
| RASTER3D_Array_double * | grad_y, | ||
| RASTER3D_Array_double * | grad_z | ||
| ) |
Gradient computation.
Gradient computation (second order approximation) using central differencing scheme (plus forward and backward difference of second order approximation). When one or more of the cells, from which the gradient for a particular cell is computed, is null, gradient for that particular cell is set to 0.
| array | pointer to RASTER3D_Array with input values | |
| step | array of x, y, z steps for gradient (resolution values) | |
| [out] | grad_x | pointer to RASTER3D_Array_double with gradient in x direction |
| [out] | grad_y | pointer to RASTER3D_Array_double with gradient in y direction |
| [out] | grad_z | pointer to RASTER3D_Array_double with gradient in z direction |
Definition at line 31 of file gradient.c.
References DCELL_TYPE, Rast_is_d_null_value, Rast_set_null_value(), RASTER3D_ARRAY_ACCESS, RASTER3D_Array_double::sx, RASTER3D_Array_double::sy, and RASTER3D_Array_double::sz.