split download script into: define_dates, download
split the download script into 2 parts:
- 00_define_dates_for_download
- 01_appears_download_mod09q1_mod11a2
this is where to split: https://gitlab.inf.unibz.it/ado/vhi_operational/-/blob/main/03_scripts/01_appears_download_mod09q1_mod11a2.R#L161
00_define_dates:
- check the dates as currently done (also keep the check for the user provided dates as is)
- if there are dates determined for download:
- return them to next skript (download skript) --> how to return values from a subskript to a main skript
- if there are no dates to be downloaded:
- return empty to main skript, and quit the main skript with exit code = 0 and log success
actually this should be done by a function called in the main skript... but all the other parts are organized in subscripts... so don't want to mix that.