imagePrep: imagePrep

View source: R/imagePrep.r

imagePrepR Documentation

imagePrep

Description

Called by interpolation to preform the interpolation and return image data

Usage

imagePrep(
  X,
  Y,
  Z,
  dat,
  aspr = 1.34564,
  res = 0.02,
  summary.dat = F,
  log.dat = T,
  method = "gstat",
  matrix.dat = T,
  idp = 0.5,
  nmax = 7,
  maxdist = Inf,
  subset.poly = NULL,
  covariate.dat = NULL,
  regrid = F,
  mod.type = "Sph",
  subscale = 0.01
)

Arguments

X

= undocumented

Y

= undocumented

Z

= undocumented

dat

= a dataframe with 3 columns (longitude, latitude, variable to be mapped)

aspr

= aspect ratio for a given latitude (default is for 45 deg.)

res

= resolution of image in decimal degrees

summary.dat

= undocumented

log.dat

= logical, whether to log data

method

= 'gstat' = gstat (idw) function from gstat library, 'krige' = krige function from gstat library, 'none' = no interpolation function

matrix.dat

= undocumented

idp

= undocumented

nmax

= undocumented

maxdist

nmax, idp, mod.type = arguments to be passed to gstat function (idp is inverse distance power)

subset.poly

= inclusion polygon to subset spatially, 'square' used to close polygons (useful when not smoothing or blanking)

covariate.dat

= covariate data typically used in kriging

regrid

= undocumented

mod.type

= undocumented

subscale

= size of inset when subset.poly = 'square'

Author(s)

Brad Hubley


BradHubley/SpatialHub documentation built on April 6, 2024, 4:43 p.m.