I am training and applying a Random Forest classifier on a stack of multiple Sentinel-1 images which were preprocessed and stacked to one product. Each raster has a separate name including the date.
The computation starts and seems to work but once the classifier is to be saved, the following message occurs:
“Classifier cannot be saved: some feature bands have same name - Sigma0_VH_db”
There is not band with this name in the stack, all names are unique and longer, as you see in the first screenshot.
One workaround is to rename all bands: 01_Sigma0, 02_Sigma0, but this takes very long and is a quite unnecessary step.
To not struggle with the names I collocated the products. By this way snap automatically renames them but when I try to do Random forest classification it gives error: “bounds must be positive”
I tried collocation with two products: one S1 product and one reprojected NDVI product. I can open their bands but inside collocate product, I can’t open bands. Maybe this is the problem.
Probably an old entry in the metadata, but unfortunately not editable in the Properties.
Instead of Collocation, have you considered “Create Stack”? It allows to put multiple products (reproject S2 to WGS84 first) and you could maybe avoid all the mess with the naming and metadata artefacts.
did you save the product after you renamed the bands?
You can open the DIM file in a text editor and search for this term. If it occurs multiple times, try to rename it there as well. But make a backup of the dim file first.
Yes I saved, closed and opened again. then tried classification.
The term occurs 5 times inside DIM file. But some of them are related to the band description. If I change their names it will probably not identify the band.