Methods to manipulate, save, convert and plot spectra in Speclibs stored as RasterBrick
1 2 3 4 5 6 7 8 9 10 11
Speclib with RasterBrick-object for spectra
Object of any valid type to define area to extract
Additionaly arguments passed to basic funtions in the raster-package
Speclib is returned containing the data of
y in the
SI. Note that if
y is a buffer, spatial lines or spatial polygon object, the respective data in
y is copied for each spectrum so that the length of the
SI equals the number of spectra.
writeRaster, the Speclib is returned which is written to file. Please note that data in the SI and the wavelength information cannot be stored in a raster file at present. Therefore, it should be considered to store the entire Speclib as R-data file using the
save-function in R.
Note for function
brick that by default the values of the internal brick in the Speclib are copied to the new object. However, new brick objects with differing dimensions, bands etc. may be created if
values == FALSE is passed as additional arguement.
writeRaster. Object of class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.