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

Home » Public Forums » archive » Re: 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
Re: Multi bands mean [message #58660 is a reply to message #58658] Fri, 08 February 2008 09:15 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

>> mean_image=total(multi_bands_image, 3, /nan) / total(finite(a),3)
>
> Whoops! Of course, a is the "universal variable", and in
> your case will be equal to multi_bands_image. :-)

Whoops! Whoops! (I'm trying to get ready for an international
trip here...)

I *think* TOTAL will cast the finite array, which is
a byte array, into floats, but you better make sure of that.
I don't have time to. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: About Triangulate
Next Topic: Re: An IDL cron job, true color plots, Xvfb, Z-buffer, and all sorts of troubles

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

Current Time: Sat Oct 11 07:53:50 PDT 2025

Total time taken to generate the page: 0.63591 seconds