26#include <grass/interpf.h>
30 int,
int,
int,
int,
double,
double,
double);
35 double zmin,
double zmax,
43 int fdinp,
double ns_res,
double ew_res,
double inp_ns_res,
47 int i,
j, k,
l,
m, m1,
i1;
81 xmax = xmin + ew_res * params->
nsizc;
82 ymax = ymin + ns_res * params->
nsizr;
93 if (((params->
kmin - num) > (prev + 1 - params->
kmax)) &&
94 (prev + 1 < params->
KMAX2)) {
103 if ((num > params->
kmin) && (num + 1 < params->
kmax)) {
139 params->
fi = params->
fi * (*dnorm) / 1000.;
159 for (k = 1; k <=
p_size; k++) {
187 for (i = 0; i < m1; i++) {
209 fprintf(
stderr,
"dnorm in ressegm after grid before out= %f \n",
229 for (i = 1; i <=
div; i++) {
263 for (
j = 1;
j <=
div;
j++) {
347 write_zeros(params, data,
offset1);
356 "Cannot allocate memory for b\n");
362 "Cannot allocate memory for new_indx\n");
366 params->
KMAX2 + 1))) {
368 "Cannot allocate memory for new_matrix\n");
401 "Cannot allocate memory for b\n");
407 "Cannot allocate memory for indx\n");
411 params->
KMAX2 + 1))) {
413 "Cannot allocate memory for matrix\n");
532 double ns_res, ew_res;
535 ((
struct quaddata *)(data))->y_orig) /
538 ((
struct quaddata *)(data))->x_orig) /
struct quaddata * quad_data_new(double x_or, double y_or, double xmax, double ymax, int rows, int cols, int n_points, int kmax)
void G_percent(long, long, int)
Print percent complete messages.
void G_free(void *)
Free allocated memory.
int * G_alloc_ivector(size_t)
Vector matrix memory allocation.
void G_lubksb(double **a, int n, int *indx, double b[])
LU backward substitution.
double * G_alloc_vector(size_t)
Vector matrix memory allocation.
double ** G_alloc_matrix(int, int)
Matrix memory allocation.
#define Rast_is_f_null_value(fcellVal)
void Rast_set_d_null_value(DCELL *, int)
To set a number of DCELL raster values to NULL.
void Rast_set_f_null_value(FCELL *, int)
To set a number of FCELL raster values to NULL.
FCELL * Rast_allocate_f_buf(void)
Allocates memory for a raster map of type FCELL.
void Rast_get_f_row(int, FCELL *, int)
Get raster row (FCELL type)
int IL_resample_interp_segments_2d(struct interp_params *params, 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, off_t offset1, double *dnorm, int overlap, int inp_rows, int inp_cols, int fdsmooth, int fdinp, double ns_res, double ew_res, double inp_ns_res, double inp_ew_res, int dtens)
check_points_fn * check_points
matrix_create_fn * matrix_create