spatial_smooth: Spatial Smoothing of OpenSpecy Objects

View source: R/spatial_smooth.R

spatial_smoothR Documentation

Spatial Smoothing of OpenSpecy Objects

Description

Applies spatial smoothing to an OpenSpecy object using a Gaussian filter.

Usage

spatial_smooth(x, sigma = c(1, 1, 1), ...)

Arguments

x

an OpenSpecy object.

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.

Details

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.

Value

An OpenSpecy object with smoothed spectra.

Author(s)

Win Cowger

See Also

as_OpenSpecy(), gaussianSmooth()


OpenSpecy documentation built on April 3, 2025, 9:58 p.m.