[prev in list] [next in list] [prev in thread] [next in thread]
List: r-sig-geo
Subject: [R-sig-Geo] Error with running bfastSpatial on MODIS data
From: John Wasige <johnwasige () gmail ! com>
Date: 2019-02-17 12:35:41
Message-ID: CAJgdCD5yAHvQwVserMv1ktQf9XNYcE5QXu_uQYvROpzbBFNYSw () mail ! gmail ! com
[Download RAW message or body]
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]]
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic