Closed nikosGeography closed 8 months ago
The error means that your time series input does not make sense for seasonality. Your formula response ~ trend + harmon
means that you are fitting both seasonality over the year and also trend over the time series, but you only have a singe year worth of data. That makes it impossible to fit seasonality; you need at least three years for it.
I see. I have monthly data for 4 years (so far). I will use them all and I will update this post with the results. Is it okay if we leave the post open until then?
Indeed, when I imported monthly data for 9 years, the error disappeared.
I have 12 raster images which I stack them. Then I converted the rasterstack to a
matrix
, I remove the NA's from thematrix
and I convert thematrix
to monthly time-series matrix. Finally, I run thebfastlite
function, like so:And the error:
I have tried many variations in the parameters of the
bfastlite
function.Any ideas what that error means and how I can overcome it? The dataset can be downloaded from my GoogleDrive.
RStudio 2023.12.0+369, R 4.3.2, Windows 11.