Skip to content
Prev 15275 / 29559 Next

Plot spatial time series

Fixing typos:
tmp.df <- data.frame(date = rep(NA, length(files)), lai = NA)
 for ( i in 1:length(files) ){
 ? ?  f <- files[i]
   cat('Reading file: ', f, '\n')
 ? ?tmp.df$date[i] <- regmatches(f, regexpr('[0-9]{7}', f))
 ? ?tmp.df$lai[i] <- mean(getValues(r), na.rm = TRUE)
 }

Hopefully that makes more sense...

2012/6/8 Matthew Landis <landis at isciences.com>: