update check_images_available to be able check for images available for entire date range #490
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Killian!
Thanks for building out the functionality to check for existing imagery and continue downloads from the point the download was interrupted. I finally got this feature integrated in coastsat-package and coastseg.
When I was updating coastsat-package's code to allow for downloads to resume I realized that code in
check_images_available
that checks for existing imagery doesn't actually check if the entire requested date range has been downloaded due to this lineBasically the imagery doesn't always download chronically meaning that it is possible that first date or last date that was downloaded isn't the actual first and last date of the requested date range. If this happens the partial download won't download the missing images for the entire requested date range instead it will only download the missing images for the date range that had already been downloaded for that satellite. You can see that first and last date are derived from the existing imagery in the code below from
check_images_available
:What this new code does is it gets the entire available date range then gets the existing downloaded dates from the imagery and then it filters out the dates that have already been downloaded. This has been working great for us over at CoastSeg and always gets the entire date range available.
I hope this helps!
Thanks for maintaining CoastSat for all these years!!