semiautomaticgit / SemiAutomaticClassificationPlugin

https://fromgistors.blogspot.com/p/semi-automatic-classification-plugin.html
Other
138 stars 50 forks source link

Sentinel-2 bands don't open #86

Closed margeorita closed 4 years ago

margeorita commented 4 years ago

I have some downloaded images from Sentinel-2. But plugin does't want to open their bands, so I can't preprocess it. What should I do? image

And there are not any errors image

semiautomaticgit commented 4 years ago

Hello, the plugin can only open the directory containing the .jp2 files, so you should move all the images in one directory

LuminousLizard commented 2 years ago

Btw .... the "Preprocessing > Sentinel-2" tab has also a problem with the image names of manually downloaded images: The images are also not loaded if the file name contains the wavelength.

E.g. after clipping I have the file "clip_T32UPA_20210923T102031_B04_10m.tif" inside the directory, but this file will NOT load in the preprocessing tab.

But If I remove the wavelength from the filename (clip_T32UPA_20210923T102031_B04.tif) then the files are loaded.

semiautomaticgit commented 2 years ago

But If I remove the wavelength from the filename (clip_T32UPA_20210923T102031_B04.tif) then the files are loaded.

Hello @LuminousLizard , the plugin can detect the band number only if the file name ends with the band number. Because manually downloaded bands have name ending with the spatial resolution (e.g. 10m, 20m), it is not possible to detect the band number. In fact, bands downloaded through the plugin are automatically renamed. For manually downloaded images, the only solution is to rename the file names.