convert MODIS DayOfYear
to the exact compositing date.
getRealDate(date, DayOfYear)
date | Date vector, the first day of the 16-day composite period. |
---|---|
DayOfYear | Numeric vector, exact composite day of year. |
A data.table with a new column t
, which is the exact compositing date.
#> Error in library(phenofit): there is no package called ‘phenofit’#> Warning: data set ‘MOD13A1’ not founddf <- MOD13A1$dt#> Error in eval(expr, envir, enclos): object 'MOD13A1' not founddf$t <- getRealDate(df$date, df$DayOfYear)#> Error in df$date: object of type 'closure' is not subsettable