X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 27 Mar 2008 07:22 AM by  anon
what _doit routine should use to convert image's data(0-255) to 0-1 data?
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
27 Mar 2008 07:22 AM
    I am using hdf files now, I want to convert the data of the files to 0 and 1 data, the aim is to realize: if (0

    Deleted User



    New Member


    Posts:
    New Member


    --
    27 Mar 2008 07:22 AM
    Although I think I personally would go about this problem the way Peg is suggesting, if you really want to use an ENVI routine you could probably use MATH_DOIT to execute a band math expression for you. I'm not 100% sure I understand the logic you're using when you write (0<100)data but i'm assuming you want pixels in the output file set to 1 if pixels in the input file are between 0 and 100, and set output pixels to 0 for all other input pixel values. This kind of expression will do that for you: (b1 gt 0) AND (b1 lt 100) Jeff
    You are not authorized to post a reply.