HI all..... Any code in IDL or ENVI for K- Nearest neighbor classification ?? Thank you in advance for your answer P.S By the way.. DAVE did you manage to licence IDL 7.0 with ENVI 4.4. If so please let me know how you dit it Kostas