-
Notifications
You must be signed in to change notification settings - Fork 388
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
Sentinel2 data set not able to locate data file downloaded from https://scihub.copernicus.eu #505
Comments
@tinkueg, sorry you've run into problems and are frustrated, and thanks for reporting the issue. That said, please refrain from opening future issues with such a hostile tone. The people that work on this library do so voluntarily in their spare time and do not need to read or respond to hostile issues. Also, feel free to contribute pull requests that fix or better document the issues you run into. We're all trying to make torchgeo into a better tool! |
calebrob6 I am new to open source projects and not a developer. I was unaware that it is supported by volunteers and I was thinking that it's Microsoft project! |
No problem! Again, thanks for reporting the issue (without issues we wouldn't be aware of problems like this) -- this is definitely something we want to fix before an eventual 1.0 release. |
calebrob6 Is there a guideline that tells how I can update the documentation so that other people know about the current issues.. my be contribute by fixing things. |
I tend not to bother documenting bugs and instead try to fix them. In this case, this bug is relatively easy to fix. All we need to do is update the |
Okay, I took a look at this. For others following this issue, this is what the file structure looks like: USGS EarthExplorer
Copernicus Open Access Hub
Although the zipfile name and directory structure is quite different, the filenames are almost identical except for the resolution extension at the end. So changing things to support USGS is easy (just make the resolution optional). But this raises the question of whether or not we're actually properly supporting Copernicus. Right now the resolution is just a wildcard, so we could pick up the same tile at multiple different resolutions. Also, when we search for matching tiles, I think we're replacing the resolution with a wildcard, so that could cause issues too. I'll have to think about this one. I think the correct solution is:
Hopefully that should allow us to support both? I wish things were a bit more uniform. Also, we don't currently look at anything other than the filename, but other datasets will require use of the full filepath, so that may come into play at some point. Anyway, this will need extensive testing to make sure it works as expected. I'll try to get started on this soon. |
@tinkueg in your issue, you mention that the dataset is unable to detect files downloaded from Copernicus. But our regex is actually designed for Copernicus, it should only be incompatible with EarthExplorer data. Can you share an example filename so I know what your data looks like? |
I see an error when I try to access the data downloaded from https://scihub.copernicus.eu/dhus/#/home for sentinel-2 using torchgeo Sentinel2 dataset. After investigating I found that the function does not uses the standard naming convention for sentinel-2 data products.
files downloaded from USGS Earth Explorer seem to have a different filename format.
Naming Conventions
https://sentinels.copernicus.eu/web/sentinel/user-guides/sentinel-2-msi/naming-convention
https://www.usgs.gov/centers/eros/science/sentinel-2-data-dictionary#tile_number
If there is a way to change file name please suggest.
----ERROR LOG----
The text was updated successfully, but these errors were encountered: