X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 05 Sep 2008 06:41 AM by  anon
Reclassification
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
05 Sep 2008 06:41 AM
    Hi, I need to reclassify image, so I downloaded reclass.pro and saved it in proper directory but I can't use it. I wrote the function in band math but it said-  'You have entered an invalid expression. Check for syntax errors or undefined procedures and functions and try again.' Would u help me, how to use it.?  

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    11 Sep 2008 09:27 AM
    You have to alter the .pro code to match the number of classes you have.  The default in the code right now is 7 classes.  You would need to alter this to match your actual class numbers in your image and the output values you want the classes to have.  Once the code matches your data, you can call it in band math like: reclass(b1, 1, 2, 3, 4,5, 6, 7) The above example would be for 7 classes that you wish to change to values of 11-17.
    You are not authorized to post a reply.