question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sentinel2 data set not able to locate data file downloaded from https://scihub.copernicus.eu

See original GitHub issue

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----

$ 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:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
calebrob6commented, Apr 13, 2022

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.

0reactions
adamjstewartcommented, Apr 17, 2022

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found