Description Usage Arguments Value See Also Examples
Simulate hyperspectral Rrs to multispectral bands via sensors SRF (Spectral response function).
1 2 3 4 5 6 7 8 9 10 11 12 13 | SRF_simulate(
Rrs,
select_sensor = "All",
input_wv_as_column = FALSE,
output_wavelength = "MED",
save_as_csv = FALSE,
save_csv_dir = ".",
na.rm = TRUE,
output_wv_as_column = TRUE,
verbose = FALSE
)
show_sensor_names()
|
Rrs |
A data.frame with colnames like "Wavelength and SampleNames" of which
the first column is wavelength vector (such as |
select_sensor |
Character. Select sensors. Use |
input_wv_as_column |
Logical. If |
output_wavelength |
Character. |
save_as_csv |
Logical. Choose to save the simulation results as single csv for each
sensor. Default with |
save_csv_dir |
The directory used for saving ouput csv files. Default as current working
directory ( |
na.rm |
Logical. Should NA values be removed? Default as |
output_wv_as_column |
Logical. If |
verbose |
Whether to print information to console. Default as |
A list
with names as all selected sensors from parameters select_sensor
.
For each list, including five elements:
sensor Sensor name
srf Spectral response function of the sensor
cw_med Center wavelength by method MED
cw_max Center wavelength by method MAX
Rrs_simu The simulation of Rrs by supported SRF
Other Utils:
cal.metrics.vector()
,
cal.metrics()
,
level_to_variable()
,
trim_sd()
1 2 3 4 5 6 7 8 | library(FCMm)
nm <- seq(400, 900)
Rrs <- data.frame(nm=nm, Site1=exp(nm/1000)+runif(501))
# save simulations in the variable `result`
result <- SRF_simulate(Rrs,select_sensor=c("OLCI","MODIS"))
# save simulations in the disk
result <- SRF_simulate(Rrs,select_sensor=c("OLCI","MODIS"),
save_as_csv = TRUE, save_csv_dir = tempdir())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.