This function converts a sequence of input dates to 'YYYY-MM-DD' and 'YYYYDDD'.
transDate(begin = NULL, end = NULL)
character
or Date
. Begin (end) date of MODIS
time series, see Note. If not provided, this defaults to "1972-01-01"
(Sys.Date()
).
A list
of begin and end dates formatted according to 'YYYY-MM-DD'
(first two slots; class Date
) and 'YYYYDDD' (second two slots; class
character
).
# NOT RUN {
transDate()
transDate(begin = "2009.01.01") # ends with current date
transDate(end = "2009.01.01") # starts with Landsat 1
transDate(begin = c("2009-01-01", "2010-01-01"), end = "2011.03.16")
# }
Run the code above in your browser using DataLab