Spatio (temporal) neighborhood selection for local kriging.
Spatio (temporal) neighborhood selection for local kriging.
Given a set of spatio (temporal) locations and data, the procedure selects a spatio (temporal) neighborhood associated to some given spatio (temporal) locations. The neighborhood is computed using a fixed spatio (temporal) threshold or considering a fixed number of spatio (temporal) neighbors.
UTF-8
data: An optional d-dimensional vector (a single spatial realisation) or a (dxd)-matrix (a single spatial realisation on regular grid) or a (txd)-matrix (a single spatial-temporal realisation) or an (dxdxt)-array (a single spatial-temporal realisation on regular grid).
coordx: A numeric (dx2)-matrix or (dx3)-matrix Coordinates on a sphere for a fixed radius radius
are passed in lon/lat format expressed in decimal degrees.
coordy: A numeric vector giving 1-dimension of spatial coordinates; Optional argument, the default is NULL.
coordz: A numeric vector giving 1-dimension of spatial coordinates; Optional argument, the default is NULL.
coordt: A numeric vector giving 1-dimension of temporal coordinates. Optional argument, the default is NULL
then a spatial RF is expected.
coordx_dyn: A list of m numeric (dx2)-matrices containing dynamical (in time) spatial coordinates. Optional argument, the default is NULL
bivariate: If TRUE then data is considered as spatial bivariate data.
distance: String; the name of the spatial distance. The default is Eucl, the euclidean distance. See the Section Details of GeoFit.
grid: Logical; if FALSE (the default) the data are interpreted as spatial or spatial-temporal realisations on a set of non-equispaced spatial sites (irregular grid).
loc: A (1x2)-matrix giving the spatial coordinate of the location for which a neighborhood is computed .
neighb: Numeric; an optional positive integer indicating the order of spatial neighborhood.
maxdist: Numeric; a positive value indicating the maximum spatial distance considered in the spatial neighborhood selection.
maxtime: Numeric; an optional positive integer indicating the order of temporal neighborhood.
radius: Numeric; a value indicating the radius of the sphere when using the great circle distance. Default value is the radius of the earth in Km (i.e. 6371)
time: Numeric; a value giving the temporal instant for which a neighborhood is computed.
X: Numeric; an optional Matrix of spatio (temporal) covariates.
M: Numeric; an estimated spatio (temporal) mean vector.
spobj: An object of class sp or spacetime
spdata: Character:The name of data in the sp or spacetime object
parallel: Logical; if TRUE then parallelizzation is used
ncores: Numeric; number of cores involved in parallelization.
Returns
Returns a list containing the following informations: - coordx: A list of the matrix coordinates of the computed spatial neighborhood ;
coordt: A vector of the computed temporal neighborhood;
data: A list of the vector of data associated with the spatio (temporal) neighborhood;
distance: The type of spatial distance;
numcoord: The vector of numbers of location sites involved the spatial neighborhood;
numtime: The vector of numbers of temporal insttants involved the temporal neighborhood;
radius: The radius of the sphere if coordinates are passed in lon/lat format;
spacetime: TRUE if spatio-temporal and FALSE if spatial RF;
X: The matrix of spatio (temporal) covariates associated with the computed spatio (temporal) neighborhood;