I would like apply a SNAP trained-and-saved random forest classifier on another product.
Thereby I get the following error mesage in this process: Do not found the features.
But the product contains the features and the band names are also equivalent to the names of the features in the classifier.
In the xml file that is saved for the classifier (it can be found in “.snap\auxdata\classifiers\RandomForest”), what are the feature names inside the tag “featureNames”? What are the band names in the product that you are trying to classify with the classifier loaded from file?
The featureNames do match the band names in the product. However, I notice some irregularities in S2TestClassifier.xml. I assume the classification is “Train on Vectors”? There are six values in sortedClasses but only one value in trainingBands. sortedClasses should match trainingBands. E.g., if there are only 3 training vectors: dark, middle and light, then in sortedClasses, there would be three values: 0.0, 1.0, 2.0 and in trainingBands, there would be three values dark, middle and light.
How did you create the classifier? What are the Training vectors listed in the RF classifier UI? Which ones did you choose?