-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue81 catch errors #89
Merged
mikemahoney218
merged 10 commits into
Permian-Global-Research:main
from
h-a-graham:issue81-catch-errors
Jan 21, 2025
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
408605f
Add further error handling for downloads
h-a-graham f244c22
error when single point on geom with no extent is used to as aoi.
h-a-graham 5a11bca
test error on single geom
h-a-graham 116aab2
update download function in band mapping
h-a-graham 8040eb3
version bump
h-a-graham 7a3f067
remove pointless x from error statement
h-a-graham 152303f
band mapping updates
h-a-graham ffe5b0e
add suffix for dduplicated date times (relevant for s2 images).
h-a-graham 589b551
Apply suggestions from code review
mikemahoney218 af516d3
Add NEWS
mikemahoney218 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: rsi | ||
Title: Efficiently Retrieve and Process Satellite Imagery | ||
Version: 0.3.1.9000 | ||
Version: 0.3.2 | ||
Authors@R: c( | ||
person("Michael", "Mahoney", , "[email protected]", role = c("aut", "cre"), | ||
comment = c(ORCID = "0000-0003-2402-304X")), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, this was a warning in the past in the hope that users would be able to resume an interrupted download, or take the successful files and run with those... but I don't know if that's actually that easy all things considered. Happy to leave as an abort and revisit in the future though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So (if I understand this correctly) the error will now only be thrown if the user is attempting to merge multiple files in this download step - for example when composite_fun = "merge" - I believe this was the main problem in #81 where gdalwarp was attempting to warp >180 input source files into a single one. In the common use case where we are using the other composite methods or composite=NULL, only one source file passes through this itertor at a time and so, the warning will be triggered as expected. Does that sound right to you? as you say happy to revisit if it causes futher issues :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The thinking is that you could move forward with your downloaded 180 tiles and figure stuff out from there. Erroring here means (I think!) that no matter what you do next, you need to re-download anything that rsi did successfully grab, even if you decide to VRT your tiles or something like that. I haven't actually traced the logic thoroughly to see if that's actually what happened, though -- obviously enough I sort of lost track of things here as it was!