Description Usage Arguments Value Examples
Convert the Digital Number from raw image to Reflectance
1 | rapid_reflec(raster, xml)
|
raster |
A RasterBrick object |
xml |
An XML document |
A RasterBrick object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(raster)
library(xml2)
xml.file <- list.files(
system.file("extdata", package="rapidr"),
pattern = ".xml", full.names = TRUE
)
raster.file <- list.files(
system.file("extdata", package="rapidr"),
pattern = ".tif", full.names = TRUE
)
x <- read_xml(xml.file)
r <- raster::brick(raster.file)
rapid_reflec(r, x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.