R/tidy_MODIS.R
getRealDate.Rd
convert MODIS DayOfYear to the exact compositing date.
DayOfYear
getRealDate(date, DayOfYear)
Date vector, the first day of the 16-day composite period.
Numeric vector, exact composite day of year.
A data.table with a new column t, which is the exact compositing date.
t
library(phenofit) data("MOD13A1") df <- MOD13A1$dt df$t <- getRealDate(df$date, df$DayOfYear)