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

Home » Public Forums » archive » Re: Faster approach for total(data,dimension) possible?
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: Faster approach for total(data,dimension) possible? [message #67070 is a reply to message #67069] Wed, 24 June 2009 04:33 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
> I also found a smaller speedup with the following code, which is based
> on the theory that mathematical operations are always quickest on byte
> data.
>
> mask = total(data GT 0,/preserve_type,3) GT 0
>
I should add that you shouldn't use the BYTE method if you have more
than 255 images in your cube. In any case, I found it wasn't as
fast as using TOTAL(/INTEGER). --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: bar_plot and ploterr
Next Topic: Re: Envi virtual machine

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

Current Time: Fri Oct 10 05:27:58 PDT 2025

Total time taken to generate the page: 0.95902 seconds