[R-sig-Geo] Error with running bfastSpatial on MODIS data

John Wasige johnw@@|ge @end|ng |rom gm@||@com
Sun Feb 17 13:35:41 CET 2019


Dear all,
I got error with running bfastSpatial on MODIS data for period of 2001-2019
. What could be my problem here?

###########

library(bfastSpatial)



##########

#MODIS data for period of 2001-2019

  n <- timeStackMODIS(list.files(path = dir, pattern = ".tif"))

   t <- system.time(

    bfm <- bfmSpatial(n, start=c(2009, 1), order=1)

 )



 # extract change raster

 change <- raster(bfm, 1)

months <- changeMonth(change)



###### Error

Error in setValues(r, values = methods::callGeneric(getValues(e1), e2)) :

  length(values) is not equal to ncell(x), or to 1

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list