-
Notifications
You must be signed in to change notification settings - Fork 378
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
Sentinel-2: add support for files downloaded from USGS EarthExplorer #754
Merged
Conversation
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
github-actions
bot
added
datasets
Geospatial or benchmark datasets
testing
Continuous integration testing
labels
Sep 3, 2022
adamjstewart
commented
Sep 3, 2022
adamjstewart
commented
Sep 3, 2022
calebrob6
reviewed
Sep 4, 2022
Is it the case that the Copernicus Open Access Hub 10m data also comes in 20m and 60m resolutions? (e.g. I see B02 in the 10m, 20m, and 60m folders) |
calebrob6
approved these changes
Sep 5, 2022
Yes, at least when I downloaded it a few months ago: #505 (comment) |
adamjstewart
added a commit
that referenced
this pull request
Sep 5, 2022
…754) * Sentinel-2: add support for files downloaded from USGS EarthExplorer * Style fix * Fix driver * Properly close filehandles * Sentinel is uint16, not int32 * Fix import order * Use correct resolution for each image
yichiac
pushed a commit
to yichiac/torchgeo
that referenced
this pull request
Apr 29, 2023
…icrosoft#754) * Sentinel-2: add support for files downloaded from USGS EarthExplorer * Style fix * Fix driver * Properly close filehandles * Sentinel is uint16, not int32 * Fix import order * Use correct resolution for each image
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #505 @tinkueg
Depending on whether you download Sentinel-2 imagery from USGS EarthExplorer or Copernicus Open Access Hub, the filenames are slightly different. This PR fixes several issues:
Note that this approach does not allow one to load bands unless they are present at the specified resolution. For example, in the files that I downloaded, band B01 is only available at 20m and 60m resolutions, not 10m.