image statistics without the NaN [message #58724] |
Sun, 17 February 2008 16:35 |
raghuram
Messages: 32 Registered: February 2008
|
Member |
|
|
Hi,
I'm relatively new to IDL and am not able to figure out an issue
dealing with NaNs in statistics computed from my image.
Here's the problem :
I wrote an IDL script to compute basic statistics of a MODIS image
that i have processed.
The areas outside my study area have been set to NaN because i don't
want them to be considered
while computing statistics in ENVI.
But, when i use the Image_statistics procedure in IDL, i'm not able to
ignore the NaN and hence all the
basic stats show values of NaN( like max=NaN, min= NaN etc..)
Expected result:
To calculate the true max,min values of the image without considering
the pixels which are set to NaN.
Anybody has any idea how to go about fixing this problem ? my initial
thought was to create a NaN mask, but
i want to get some ideas flowing.
Thanks,
Raghu
|
|
|