powered by
This function maps estimated phenological dates to days of a year.
datesToDoY( start = 1, end = 12, phenodates, totalDoY = c(0, cumsum(c(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31))) )
A data.frame with variables month and day
data.frame
month
day
numeric, first month in mapping range. Default is 1.
numeric, last month in mapping range. Default is 12.
numeric vector of length 6 containing estimates of phenological dates (green up, start of season, maturity, senescence, end of season and dormancy)
numeric vector, each entry (except for the first) gives a month's total number of days
Length of start:end must be equal to length(totalDoY)-1.
start:end
length(totalDoY)-1
x <- c(102,140,177,301,339,242) names(x) <- c("GU", "SoS", "Mat", "Sen", "EoS", "Dor") datesToDoY(phenodates = x)
Run the code above in your browser using DataLab