Learn R Programming

hsdar (version 0.5.1)

get.sensor.characteristics: Sensor characteristics

Description

Get channel wavelength of satellite sensor

Usage

get.sensor.characteristics(sensor, response_function = FALSE)

Arguments

sensor
Character or integer. Name or numerical abbreviation of sensor. See 'sensor="help"' or 'sensor=0' for an overview of available sensors.
response_function
If TRUE, the spectral response function is returned

See Also

spectralResampling

Examples

Run this code
## Return implemented sensors
get.sensor.characteristics(0)

## RapidEye
data_wv <- get.sensor.characteristics("RapidEye", TRUE)

## Plot response functions
plot(c(0,1)~c(330,1200), type = "n", xlab = "Wavelength [nm]", 
     ylab = "Spectral response")
xwl_response <- seq.int(attr(data_wv$response, "minwl"),
                        attr(data_wv$response, "maxwl"),
                        attr(data_wv$response, "stepsize"))
for (i in 1:nrow(data_wv$characteristics))
  lines(xwl_response, data_wv$response[,i], col = i)

Run the code above in your browser using DataLab