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

Home » Public Forums » archive » How to avoid the FOR loop when using TM_TEST?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
How to avoid the FOR loop when using TM_TEST? [message #55497] Fri, 24 August 2007 06:43 Go to previous message
wanglin1981 is currently offline  wanglin1981
Messages: 10
Registered: August 2007
Junior Member
I need to test the significance for each spatial point between two
data sets (names are A(ix,iy,it1) and B(ix,iy,it2), ix and iy are
spatial point, and it1 and it2 are temporal point) using the TM_TEST
function. As the TM_TEST is not valid for two-dimentional matrix, I
had to use the FOR loop as follows, which cost a lot of time.

for j=0,iy-1 do begin
for i=0,ix-1 do begin
temp1=tm_test(A(i,j,*),B(i,j,*))
sighl(i,j)=temp1(1)
endfor
endfor

Is it possible to avoid the FOR loops?

Thanks!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Syntax Error Confusion
Next Topic: Re: How to read ASTER in ENVI?

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

Current Time: Sat Oct 11 18:33:47 PDT 2025

Total time taken to generate the page: 1.27983 seconds