% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/guinterp_process.R
\name{guinterp_process}
\alias{guinterp_process}
\title{Process a group of fields}
\usage{
guinterp_process(
  inputpts,
  inlayer,
  filtered = TRUE,
  id_fieldname = "idfield",
  interp_dir = tempdir(),
  out_path = tempfile(),
  interp_method = "krige",
  smooth = TRUE,
  interp_res = 5,
  out_crs = NA,
  grid_offset = c(0, 0),
  samplesize = 10000,
  samplescheme = "random",
  buffer_radius = 15,
  parallel = TRUE,
  vgm = NA,
  v_nmax = Inf,
  v_maxdist = Inf,
  merge = TRUE,
  overwrite = TRUE,
  .shiny_session = NULL,
  .shiny_pbar_id = NULL
)
}
\arguments{
\item{inputpts}{TODO}

\item{inlayer}{\code{SpatialPolygonsDataFrame} of fields (see also \code{id_fieldname})}

\item{filtered}{logical: is \code{inputpts} already filtered? If TRUE (default),
no additional filter is applied; if FALSE, a standard automatic filter is applied.}

\item{id_fieldname}{optional: name of the \code{inlayer} field containing unique ID of fields (default: \code{"idfield"})}

\item{interp_dir}{directory where rasters of single polygons are stores (default: temporary directory)}

\item{out_path}{path of the output merged raster (default: temporary directory)}

\item{interp_method}{interpolation method (\code{"krige"} or \code{"idw"})}

\item{smooth}{logical: should rasters be smoothed after interpolation?}

\item{interp_res}{output raster resolution (numeric, in metres)}

\item{out_crs}{optional: CRS of output raster (default: CRS of \code{inputpts})}

\item{grid_offset}{optional: grid offset from point (0,0) in \code{out_crs} (2-length numeric)}

\item{samplesize}{maximum size of the sample of the original data to work with (default: 10000; if NA: all the points)}

\item{samplescheme}{sampling scheme within geometries (\code{"random"}, \code{"strat_npts"} or \code{"strat_area"})}

\item{buffer_radius}{numeric: buffer (default: 15) to be applied internally to field borders.}

\item{parallel}{(optional) Logical or integer: if TRUE (default), interpolation
is executed using multiple cores in order to speed up the execution.
The number of cores is automatically determined; specifying it is also
possible (e.g. \code{parallel = 4}).
If FALSE, the interpolation is forced to run with a single core.}

\item{vgm}{named list of variograms (names must correspond to values of field \code{id_fieldname}).
If NA (default), they are automatically computed.}

\item{v_nmax}{TODO.}

\item{v_maxdist}{TODO.}

\item{merge}{logical: if TRUE (default), merge raster of single fields and
return the path of the merged raster; if FALSE, return the paths of the
single field rasters.}

\item{overwrite}{Logical: should existing raster being reprocessed? (default: FALSE)}

\item{.shiny_session}{TODO}

\item{.shiny_pbar_id}{TODO}
}
\description{
This function calls other functions of the library to perform
interpolation over different fields.
}
\note{
License: GPL 3.0
}
\author{
Luigi Ranghetti, phD (2019) \email{ranghetti.l@irea.cnr.it}
}
