## Not run: ------------------------------------
# # dontrun() used because running the example requires internet access,
# # and takes over a minute to run.
# time.series <- data.frame(lat = c(51.41363, 51.41421),
# long = c(-0.64875, -0.641607),
# start.date = c(2002, 2002),
# end.date = c(2004, 2004),
# ID = c(1, 2))
#
# MODISSubsets(LoadDat = time.series, Product = "MOD13Q1",
# Bands = c("250m_16_days_EVI"), Size = c(0,0), StartDate = TRUE)
#
# ts <- MODISTimeSeries(Dir = ".", Band = "250m_16_days_EVI", Simplify = FALSE)
# class(ts)
# dim(ts[[1]])
# dim(ts[[2]])
#
# ts <- MODISTimeSeries(Dir = ".", Band = "250m_16_days_EVI", Simplify = TRUE)
# class(ts)
# dim(ts)
#
# time.series$end.date[2] <- 2005
# MODISSubsets(LoadDat = time.series, Product = "MOD13Q1",
# Bands = c("250m_16_days_EVI"), Size = c(1,1), StartDate = TRUE)
#
# ts <- MODISTimeSeries(Dir = ".", Band = "250m_16_days_EVI", Simplify = TRUE)
# class(ts)
#
## ---------------------------------------------
Run the code above in your browser using DataLab