if (sits_run_examples()) {
# define a non-regular Sentinel-2 cube in AWS
s2_cube_open <- sits_cube(
source = "AWS",
collection = "SENTINEL-S2-L2A-COGS",
tiles = c("20LKP", "20LLP"),
bands = c("B8A", "SCL"),
start_date = "2018-10-01",
end_date = "2018-11-01"
)
# regularize the cube
rg_cube <- sits_regularize(
cube = s2_cube_open,
output_dir = tempdir(),
res = 60,
period = "P16D",
multicores = 2
)
}
Run the code above in your browser using DataLab