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

Home » Public Forums » archive » Faster approach for total(data,dimension) possible?
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
Faster approach for total(data,dimension) possible? [message #67074] Wed, 24 June 2009 00:54
rogass is currently offline  rogass
Messages: 200
Registered: April 2008
Senior Member
Hi,
i'm looking for a faster approach to do the following:

data=rebin(dist(100),100,100,50,/sample)
mask=total(data,3) gt 0.

Depending on the size of data and on the hardware of the client the
code above runs too slow for me. I'd like to find all pixels in a
hyperspectral application, which bands are not zero. The result should
be a mask with the same 2D-dimensions as original data for further
processing.

Thank you and best regards

CR
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: VALUE_LOCATE tutorial
Next Topic: check envi status

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

Current Time: Wed Oct 08 17:12:01 PDT 2025

Total time taken to generate the page: 0.01257 seconds