Thank you for the detailed reply, but I'm still having trouble getting the code to work. First, I noticed the ExtractExamplesFromRaster variable also has a ['DESCRIPTION'] key, should this be included?
For step 2 when you say to merge the examples, you mean to concatenate the arrays right? I believe I've correctly implemented the code logic for merging arrays, but even when I try to write a dictionary to use in the classifier with a single image I cannot get the Keys correct.
Returns the error
% Keys must be valid IDL variable names.
It's confusing that
[CODE]
properties.HASKEY()
properties.keys()
returns an error in the script so it won't compile, but when used in the console: properties.keys() returns 5 lines with the "keys". How do I fix the % Keys must be valid IDL variable names error?