A timeline is a list of dates where observations are available. This functions estimates if a date is valid by comparing it to the timeline. If the date's estimate is not inside the timeline and the difference between the date and the last date of timeline is greater than the acquisition interval of the timeline, then we conclude the date is not valid.
.sits_is_valid_end_date(date, timeline)
A Date.
A vector of reference dates.
Nearest date.