[RS-ecology] Issues running bfast

François Messner francois.messner at univ-lemans.fr
Tue Mar 7 10:12:42 CET 2017


Hello,

I believe you are applying the calc function to an object that is not a 
rasterstack.
For calc, you must specify a raster object like your MODIS ( or other 
sensor) raster stack time series.

Regards,

François Messner
Technicien en géomatique
Université du Maine - GREGUM UMR ESO
Tel: 02 43 83 31 80

Le 06/03/2017 18:28, Natalia Quinteros a écrit :
> Hi List,
>
> I was doing the time series excersise of the book and I run into a 
> problem:
>
> So this is my script:
>
> f_bfm <- function(x) {x <- ts(evi, start= c(2003, 1),frequency =46)
>   bfm <- bfastmonitor(data = x, start = c(2010, 1))
>   return(cbind(bfm$breakpoint, bfm$magnitude))
> }
>
> rbfm <- calc(evi, fun = function(x){
>   t(apply(x,1,f_bfm))
> })
>
> When I run rbfm I receive this error:
>
> Error in (function (classes, fdef, mtable)  :
>   unable to find an inherited method for function 'calc' for signature 
> '"ts", "function"'
>
> So, where is calc coming from? Is it coming from the package raster? 
> Or what is the problem here?
>
> Thanks.
>
>
> Natalia L Quinteros Casaverde
> Ph.D Student
> Remote Sensing and Ecosystems Lab
> EEB - Biology
> City University of New York &
> Graduate Center
> CUNY
>
>
>
>
>
> _______________________________________________
> RS-ecology mailing list
> RS-ecology at lists.uni-wuerzburg.de
> https://lists.uni-wuerzburg.de/mailman/listinfo/rs-ecology

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-wuerzburg.de/pipermail/rs-ecology/attachments/20170307/c9343fa0/attachment.html>


More information about the RS-ecology mailing list