Read LAI images at several time points
Source:R/read_sb_growth_parameter.R
read_sb_growth_parameter.Rd
Read LAI images at several time points
Arguments
- img_files
character vector providing the file paths of at least two georeferenced images for the study location. Dates of image capture need to be defined in
img_dates
respectively.- img_dates
POSIXct vector of dates corresponding to the images supplied in
img_files
respectively. To prevent timezone issues use UTC timezonetz = "UTC"
.- target_res
desired spatial resolution.
target_res
should be equal to or larger than the actual resolution of the images expressed in meters.
Value
SpatRast
with a layer for each input layer. Each layer
contains is named according to the img_dates
. The output
SpatRast
is suitable for input in calc_r_x0()
Examples
epidemic_onset_param <-
read_sb_growth_parameter(img_files = list.files(system.file("extdata", "uav_img",
package = "cercospoRa"),
pattern = ".tif",
full.names = TRUE),
img_dates = as.POSIXct(c("2022-06-14",
"2022-06-28"),
tz = "UTC"),
target_res = 10)