When goesaodc_listScanFiles() is called with useRemote=FALSE, it will only search for the closest file currently on disk. However, part of the searching process involves subsetting all of the available scan files by day. For instance, if the requested datetime = "2020-09-08 12:30", then only files for 2020-09-08 will be searched for close files. This is necessary since the local disk or remote server might have thousands (or hundreds of thousands) of files which each require time calculations to determine the closest one to the requested datetime. Without subsetting, it could take a while to find the closest one.
The problem with this method is that the local disk might not have any files for that day, so the function returns NA. First: it should probably return NULL, and second: this is a problem since this function should be used by goesaodc_downloadScanFiles() in order to determine which files are already on disk and don't need to be redownloaded.
[X] goesaodc_downloadScanFiles(): Should avoid redownloading files already present locally.
[X] goesaodc_listScanFiles(): Return NULL and issue a warning when no file can be found for the requested datetime and endtime.
When
goesaodc_listScanFiles()
is called withuseRemote=FALSE
, it will only search for the closest file currently on disk. However, part of the searching process involves subsetting all of the available scan files by day. For instance, if the requesteddatetime = "2020-09-08 12:30"
, then only files for2020-09-08
will be searched for close files. This is necessary since the local disk or remote server might have thousands (or hundreds of thousands) of files which each require time calculations to determine the closest one to the requesteddatetime
. Without subsetting, it could take a while to find the closest one.The problem with this method is that the local disk might not have any files for that day, so the function returns
NA
. First: it should probably returnNULL
, and second: this is a problem since this function should be used bygoesaodc_downloadScanFiles()
in order to determine which files are already on disk and don't need to be redownloaded.goesaodc_downloadScanFiles()
: Should avoid redownloading files already present locally.goesaodc_listScanFiles()
: ReturnNULL
and issue a warning when no file can be found for the requesteddatetime
andendtime
.