-
Notifications
You must be signed in to change notification settings - Fork 88
Fails to re-download data if there was a network error #4
Comments
I'd prioritize this and add it to To-Do. Let's see if there are options to validate check-sums of band files, so it doesn't download the required data all over again. |
If checksum can be implemented, that would be the best option Or can go with '--refresh' flag 🚩 The folder delete on exception should be done on network error and not after the above mentioned exception. If the first band is error, the second and third gets downloaded before the exception, which would be useless. |
3447b78 this commit partially fixes this issue, by catching the |
A long term solution to this would be using check-sums, but will add this to to-do, due to less bandwidth. Feel free to reopen the issue if the problem persists after the next release |
If any of the bands (blue, green or red) fails during the download, felicette doesn't re-download it. Rerunning the program again for the specific place shows the required data exists for the said band. But in reality it is an incomplete download. This throws an error
rasterio.errors.RasterioIOError: Read or write failed. /home/mithun/felicette-data/LC81430542020100/LC81430542020100-b4.tiff, band 1: IReadBlock failed at X offset 1, Y offset 6: TIFFReadEncodedTile() failed.
Current workaround is to delete the folder and run again.
The text was updated successfully, but these errors were encountered: