GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73666
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, double *b, off_t offset1, double dnorm)

## Detailed Description

Definition in file interp2d.c.

## Macro Definition Documentation

 #define CEULER   .57721566

Definition at line 51 of file interp2d.c.

## Function Documentation

 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, 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
 data given segment bitmask bitmask zmax min and max input z-values zmaxac min and max interp. z-values gmax min and max interp. slope val. c1max min and max interp. curv. val. c2max min and max interp. curv. val. ertot total interpolating func. error b solutions of linear equations offset1 offset for temp file writing

Definition at line 65 of file interp2d.c.