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

Home » Public Forums » archive » Multi bands mean
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Multi bands mean [message #58665] Fri, 08 February 2008 08:50
jujo is currently offline  jujo
Messages: 8
Registered: May 2007
Junior Member
Hi!
I have a multi-bands image. I need to calculate the mean value of each
pixel, considering all the bands. It can be easily done using:

mean_image=total(multi_bands_image, 3) / number of bands

However, I have some nan values, which have to be discarded before the
calculation. I can do that:

mean_image=total(multi_bands_image, 3, /nan) / number of bands

However, if I do that, the nan values become zeros and the average
includes them. How can I do to calculate the mean without considering
nan values?

Comments welcome!
Best!
Jurandir
[Message index]
 
Read Message
Previous Topic: Unknown Error Message
Next Topic: About Triangulate

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

Current Time: Fri Oct 10 06:36:33 PDT 2025

Total time taken to generate the page: 0.40192 seconds