rapid_reflec: Convert the Digital Number from raw image to Reflectance

Description Usage Arguments Value Examples

View source: R/reflectance.R

Description

Convert the Digital Number from raw image to Reflectance

Usage

1
rapid_reflec(raster, xml)

Arguments

raster

A RasterBrick object

xml

An XML document

Value

A RasterBrick object

Examples

 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)

italocegatta/rapidr documentation built on May 18, 2019, 5:52 a.m.