Closed ShawnMeng90s closed 5 years ago
The error message is clear. The problem is not related to the length of the time series but the satellite bands.
Error in twdtwApply.twdtwRaster(x, y, weight.fun, dist.method, step.matrix, :
Bands from twdtwRaster do not match the bands from patterns
replace
raster_timeseries2 <- twdtwRaster(blue2,timeline = dates2)
with
raster_timeseries2 <- twdtwRaster(blue = blue2,timeline = dates2)
Error in twdtwApply.twdtwRaster(x, y, weight.fun, dist.method, step.matrix, : Bands from twdtwRaster do not match the bands from patterns