# Using MODIS files
files <- c("MOD13A2.A2010353.1_km_16_days_composite_day_of_the_year.tif",
"MOD13A2.A2011001.1_km_16_days_composite_day_of_the_year.tif",
"MYD13A2.A2010361.1_km_16_days_composite_day_of_the_year.tif",
"MYD13A2.A2011009.1_km_16_days_composite_day_of_the_year.tif")
orgTime(files)
orgTime(files,nDays=2,begin="2010350",end="2011015")
# Using other files, e.g. from AVHRR GIMMS NDVI (Jul 1981 to Dec 1982)
if (FALSE) {
library(gimms)
files.v1 <- system.file("extdata/inventory_ecv1.rds", package = "gimms")
files.v1 <- readRDS(files.v1)[1:3]
dates.v1 <- monthlyIndices(files.v1, timestamp = TRUE)
orgTime(dates.v1)
}
Run the code above in your browser using DataLab