dvirlar2 / datateam-training

Training and reference materials for ADC and SASAP data team members
https://nceas.github.io/datateam-training/training/
Apache License 2.0
1 stars 0 forks source link

Guidance: Multiple Temporal Coverages #29

Open dvirlar2 opened 2 years ago

dvirlar2 commented 2 years ago
doc$dataset$coverage$temporalCoverage <- list(
  eml$temporalCoverage(rangeOfDates = list(beginDate = list(calendarDate = 2005),
                                           endDate = list(calendarDate = 2010))),

  eml$temporalCoverage(rangeOfDates = list(beginDate = list(calendarDate = 2013),
                                           endDate = list(calendarDate = 2019))))
dvirlar2 commented 2 years ago

If for some reason a PI wants to show two discrete years, but not month or day, can use the following code and will validate true:

singleTempCov <- list(
  eml$temporalCoverage(singleDateTime = list(calendarDate = 2020)),
  eml$temporalCoverage(singleDateTime = list(calendarDate = 2022))
)
dvirlar2 commented 2 years ago

Using the EML::set_coverage() function as described in the Set Multiple Coverages section of the reference manual didn't work as expected, and instead created a validation error. Just requires more input than what's alluded to in the manual, and I'd like it to be more straightforward. Will probably remove.