X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 05 Oct 2010 07:38 AM by  anon
ENVI_STATS_DOIT
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
05 Oct 2010 07:38 AM
    Hi, i am using ENVI_STATS_DOIT to calculate the mean for some satellite images but i noticed IDL is taking into account zero values that are used to define NaN pixels. does anyone know if there is an 'ignore zero values' function in IDL statistics or another such work around? Many thanks,

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    05 Oct 2010 08:28 AM
    I am not sure what you mean by "IDL is taking into account zero values that are used to define NaN pixels". Are the '0's' set to NaN? 0 is a valid value so in order to ignore pixels in ENVI_STATS_DOIT, you need to use a Mask (m_fid, m_pos) or set the 0's to NaN. Then those pixels will be ignored in your statistics calculation. I would use a mask since NaN pixels can cause issues in other processes.
    You are not authorized to post a reply.