Description Usage Arguments Details Value Examples
It clips and resamples the wavenumbers of data.x and data.y to a common extent. Typically, it uses the wavenumbers of data.x to resample data.y and then the function clips the largest base on the narrowest.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | wavealign(data.x, data.y)
## S4 method for signature 'numeric,SpectralReference'
wavealign(data.x, data.y)
## S4 method for signature 'Tile,SpectralReference'
wavealign(data.x, data.y)
## S4 method for signature 'SpectralReference,Tile'
wavealign(data.x, data.y)
MosaicGetRef.wavealign(data.x, data.y)
TileRead.wavealign(data.x, data.y)
|
data.x |
An object of class |
data.y |
An object of class |
There are two methods defined:
TileRead.wavealign - This method should be the only one used by the user.
MosaicGetRef.wavealign - This method is called internally by mosaic_sam
. The method is different since it expect a numeric vector in data.x, which is taken from the wavenumbers slot of a SpectralInfo
object. The implication is that, for mosaics, the SpectralReference
is always resampled according to the wavenumbers of the mosaics. It was programed this way, since mosaics are not loaded into the memory (R) until they are processed by mosaic_sam.
TileRead.wavealign - An object of class SpectralPack
MosaicGetRef.wavealign - The SpectralReference
object passed as data.y, resampled to data.x.
1 2 3 | x <- tile_read(base::system.file("extdata/tile.bsp", package = "uFTIR"))
x <- tile_base_corr(x)
x <- wavealign(x, primpke)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.