Closed GreatEmerald closed 3 years ago
Thanks, .bfastts.new
indeed does not handle matrices and I'll work on this. However, I am not sure what the desired output of the example is. I get
dim(modisraster[1])
#> [1] 1 275
dim(bfts1)
#> [1] 275 275
It seems that bfts1
has 275 times the same time series. Is this expected?
.bfastts.new()
should now work for multiple time series in a matrix (rows = time, cols = variables). However, the raster example with modisraster[1]
contains a single time series in a matrix with 275 rows and hence does not produce a meaningful output (same for the original bfastts implementation).
When the input to bfastts is a matrix, the new implementation only takes the first variable. This should be fixed before we can enable the new method by default.
Reprex:
Created on 2021-03-18 by the reprex package (v1.0.0)