Learn R Programming

phenofit (version 0.3.9)

getRealDate: getRealDate

Description

convert MODIS DayOfYear to the exact compositing date.

Usage

getRealDate(date, DayOfYear)

Value

A data.table with a new column t, which is the exact compositing date.

Arguments

date

Date vector, the first day of the 16-day composite period.

DayOfYear

Numeric vector, exact composite day of year.

Examples

Run this code
library(phenofit)
data("MOD13A1")

df  <- MOD13A1$dt
df$t <- getRealDate(df$date, df$DayOfYear)

Run the code above in your browser using DataLab