View source: R/spatial_smooth.R
spatial_smooth | R Documentation |
Applies spatial smoothing to an OpenSpecy
object using a Gaussian filter.
spatial_smooth(x, sigma = c(1, 1, 1), ...)
x |
an |
sigma |
a numeric vector specifying the standard deviations for the Gaussian kernel in the x and y dimensions, respectively. |
... |
further arguments passed to or from other methods. |
This function performs spatial smoothing on the spectral data in an OpenSpecy
object.
It assumes that the spatial coordinates are provided in the metadata
element of the object,
specifically in the x
and y
columns, and that there is a col_id
column in metadata
that
matches the column names in the spectra
data.table.
An OpenSpecy
object with smoothed spectra.
Win Cowger
as_OpenSpecy()
, gaussianSmooth()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.