semiautomaticgit / SemiAutomaticClassificationPlugin

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

SCP won't read bands #315

Closed Bronzeager closed 2 weeks ago

Bronzeager commented 7 months ago

Hello.

I've been encountering an issue while trying to perform DOS1 correction on Landsat 5 and Landsat 8 images using the QGIS SemiAutomaticClassificationPlugin. I've tried this on both Bialoweza and Firenze versions of QGIS. The plugin is not recognizing any bands in the specified file. This issue started after the recent update of the plugin.

Before the update, everything worked smoothly. However, post-update, I received errors indicating the need for additional Python modules, including Remotior Sensus and another module, which I then installed manually. This resolved the initial error, but the issue with the plugin not detecting bands in the file persists.

I have tested this on multiple computers with the same outcome. Notably, I was able to create a bandset, so the data itself seems to be fine. It appears to be a specific issue with the plugin's functionality post-update.

Any assistance or suggestions to resolve this would be greatly appreciated.

Thank you.

bilde

semiautomaticgit commented 7 months ago

Hello @Bronzeager ,

thank you for reporting this.

I've been encountering an issue while trying to perform DOS1 correction on Landsat 5 and Landsat 8 images using the QGIS SemiAutomaticClassificationPlugin.

What is the source collection of Landsat images? Also, could you check if the metadata xml file is inside the image directory?

Also, please copy the log file following these steps https://semiautomaticclassificationmanual.readthedocs.io/en/latest/faq.html#how-can-i-report-an-error

MartyC-137 commented 6 months ago

I was having the same issue with clipped Landsat8 images from Earth Explorer. The clipped files were in a different directory than the original images and associated metadata files.

Moving the LC08_..._MTL.xml file into the same directory as the images I was preprocessing (i.e, my clipped Landsat images) resolved the issue for me. Adding the file using the Select metadata file (optional) option did not work.

SwathiGit1 commented 1 month ago

Hi,

I face the same issue. The 'Clip Raster Bands' under 'Pre-processing' works as expected. However, when I click the 'Image Conversion', my bands aren't selected. I tried both ways: by manually selecting the metadata(_MTL.txt) and by leaving it blank. The same issue persists. Any help is greatly appreciated, thank you. Screenshot 2024-05-31 125831

semiautomaticgit commented 3 weeks ago

Hi,

I face the same issue. The 'Clip Raster Bands' under 'Pre-processing' works as expected. However, when I click the 'Image Conversion', my bands aren't selected. I tried both ways: by manually selecting the metadata(_MTL.txt) and by leaving it blank. The same issue persists. Any help is greatly appreciated, thank you. Screenshot 2024-05-31 125831

Hi @SwathiGit1 , you should select the .xml metadata file.

SwathiGit1 commented 2 weeks ago

Hi @semiautomaticgit

Thank you very much, it now works like a charm 👍 In case there are others like me, who have a metadata TXT (.txt) file but don't have a metadata XML (.xml) file can get their txt file converted to xml. And one way to do that is here

semiautomaticgit commented 2 weeks ago

Hi @semiautomaticgit

Thank you very much, it now works like a charm 👍 In case there are others like me, who have a metadata TXT (.txt) file but don't have a metadata XML (.xml) file can get their txt file converted to xml. And one way to do that is here

Hi @SwathiGit1 , thank you for your feedback and the suggestion to convert txt to xml file.