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

Home » Public Forums » archive » Avoiding loop stats
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
Avoiding loop stats [message #52155] Fri, 19 January 2007 09:43
yp is currently offline  yp
Messages: 42
Registered: February 2005
Member
IDL Gurus,
There is perhaps a smart solution to this problem, but I could not
figure out.
I have a series of EO images (2D) stacked over time which makes the
data a 3D array of [4000, 2000, 900] i.e., [lon,lat,time]
I need to compute various statistical parameters at each pixel over
time and produce each of them as [4000,2000] array.


for i=0,4000L-1 do for j=0,2000L-1 do data_st(i,j)=st_func(data(i,j,*))

where, data=FLTARR[4000,2000,900]
data_st is the output from a function 'st_func' which works with vector
data only.

Is there a way to do this avoiding the 4000x2000 loop? It is painfully
slow on windows.
thanks in advance
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Adding or deduct values in a ARRAY
Next Topic: Re: MI5 Persecution: £20,000 Reward (3331)

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

Current Time: Wed Oct 08 11:34:45 PDT 2025

Total time taken to generate the page: 0.00580 seconds