getRealDate: getRealDate

Description Usage Arguments Value Examples

View source: R/tidy_MODIS.R

Description

convert MODIS DayOfYear to the exact compositing date.

Usage

1
getRealDate(date, DayOfYear)

Arguments

date

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

DayOfYear

Numeric vector, exact composite day of year.

Value

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

Examples

1
2
3
4
5
library(phenofit)
data("MOD13A1")

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

eco-hydro/phenofit2 documentation built on Dec. 20, 2021, 3:15 a.m.