Sentinel2 data set not able to locate data file downloaded from https://scihub.copernicus.eu
See original GitHub issueI 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----
$ python train.py
Traceback (most recent call last):
File "train.py", line 12, in <module>
dataset = Sentinel2(root='./../data/sentinel', crs=None, transforms=None, bands=[], cache=True)
File "/home/manish/projects/pytorch/torchgeo_lcc/torchgeo_env/lib/python3.8/site-packages/torchgeo/datasets/sentinel.py", line 103, in __init__
super().__init__(root, crs, res, transforms, cache)
File "/home/manish/projects/pytorch/torchgeo_lcc/torchgeo_env/lib/python3.8/site-packages/torchgeo/datasets/geo.py", line 374, in __init__
raise FileNotFoundError(
FileNotFoundError: No Sentinel2 data was found in './../data/sentinel'
Issue Analytics
- State:
- Created a year ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Sentinel-1 Data Offer - Copernicus Open Access Hub
The Open Access Hub provides complete, free and open access to Sentinel-1, Sentinel-2, Sentinel-3 and Sentinel-5P user products. Sentinel-1 Data Offer. Sentinel ...
Read more >Unable to download Sentinel-2 data in scihub - STEP Forum
One particular level-2 Sentinel-2 tile is not downloading for me. What might be the issue? https://scihub.copernicus.eu/dhus/odata/v1/ ...
Read more >tutorial for data download from the copernicus open access hub
Having an account is needed to download the data, to see past searches and to view your Cart. 2. Searching for a single...
Read more >Downloading Sentinel Imagery Via Copernicus Open Access ...
This is a short tutorial that takes you through the steps of finding and downloading Sentinel 2 satellite imagery from the Copernicus Open ......
Read more >Sentinels Scientific Data Hub screen shot... - ResearchGate
Download scientific diagram | Sentinels Scientific Data Hub screen shot (https://scihub.copernicus.eu/) showing the locations of the three SAFE files used ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@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?