comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » image statistics without the NaN
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
image statistics without the NaN [message #58724] Sun, 17 February 2008 16:35
raghuram is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Memory problem
Next Topic: anything like sprintf?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:05:02 PDT 2025

Total time taken to generate the page: 0.00470 seconds