X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10 Mar 2009 11:43 AM by  anon
conditional statement
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
10 Mar 2009 11:43 AM
    Is there some function in ENVI that allows for building a conditional statement? For example: If Band 1 = 5 then Band 8 If Band 1 = 6 then Band 9 otherwise Band 7 I've done similar things in other RS software, but cannot find it in ENVI. I'd appreciate any help. Thanks, Mike

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    10 Mar 2009 12:38 PM
    You would usually write this sort of statement in IDL.  Depending on what you are trying to achieve, you might be able to write a band math function that could also do it.  Have a look in the Help for Band Math user functions.  It will give you an idea of how you might write something like this.
    You are not authorized to post a reply.