Injects arguments to parallelize MODIS/VIIRS data processing
Source:R/injection.R
inject_modis_par.Rd
Injects arguments to parallelize MODIS/VIIRS data processing
Examples
if (FALSE) { # \dontrun{
files <-
c(
"/downloads/modis/mod06/MOD06_L2.A2022001.0000.061.2022001160000.hdf",
"/downloads/modis/mod06/MOD06_L2.A2022001.0005.061.2022001160000.hdf"
)
my_locs <- data.frame(site_id = 1:2, lon = c(-88, -87), lat = c(35, 35))
my_locs <- sf::st_as_sf(my_locs, coords = c("lon", "lat"))
inject_modis_par(
locs = my_locs,
injection = list(path = files, subdataset = "Cloud_Fraction_Day",
name_covariates = "MOD_CLCVD_0_", nthreads = 2L,
preprocess = amadeus::process_modis_swath, radius = c(1000)))
} # }