GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-602118adcc
interp2d.c File Reference
#include <stdio.h>
#include <math.h>
#include <unistd.h>
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/glocale.h>
#include <grass/bitmap.h>
#include <grass/interpf.h>
Include dependency graph for interp2d.c:

Go to the source code of this file.

Macros

#define CEULER   .57721566
 

Functions

int IL_grid_calc_2d (struct interp_params *params, struct quaddata *data, struct BM *bitmask, double zmin, double zmax, double *zminac, double *zmaxac, double *gmin, double *gmax, double *c1min, double *c1max, double *c2min, double *c2max, double *ertot UNUSED, double *b, off_t offset1, double dnorm)
 

Detailed Description

Author
Lubos Mitas (original program and various modifications)
H. Mitasova, I. Kosinovsky, D. Gerdes, D. McCauley (GRASS4.1 version of the program and GRASS4.2 modifications)
L. Mitas, H. Mitasova, I. Kosinovsky, D.Gerdes, D. McCauley (1993, 1995)
modified by McCauley in August 1995
modified by Mitasova in August 1995, Nov. 1996
bug fixes(mask) and modification for variable smoothing Mitasova (Jan 1997)

Definition in file interp2d.c.

Macro Definition Documentation

◆ CEULER

#define CEULER   .57721566

Definition at line 48 of file interp2d.c.

Function Documentation

◆ IL_grid_calc_2d()

int IL_grid_calc_2d ( struct interp_params params,
struct quaddata data,
struct BM bitmask,
double  zmin,
double  zmax,
double *  zminac,
double *  zmaxac,
double *  gmin,
double *  gmax,
double *  c1min,
double *  c1max,
double *  c2min,
double *  c2max,
double *ertot  UNUSED,
double *  b,
off_t  offset1,
double  dnorm 
)

Calculates grid values for a given segment

Calculates grid for the given segment represented by data (contains n_rows, n_cols, ew_res,ns_res, and all points inside + overlap) using solutions of system of linear equations and interpolating functions interp() and interpder(). Also calls secpar() to compute slope, aspect and curvatures if required.

ertot can be also called RMS deviation of the interpolated surface

Parameters
datagiven segment
bitmaskbitmask
zmaxmin and max input z-values
zmaxacmin and max interp. z-values
gmaxmin and max interp. slope val.
c1maxmin and max interp. curv. val.
c2maxmin and max interp. curv. val.
UNUSEDtotal interpolating func. error
bsolutions of linear equations
offset1offset for temp file writing

Definition at line 61 of file interp2d.c.