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

Home » Public Forums » archive » Re: 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
Re: How to avoid the FOR loop when using TM_TEST? [message #55496] Fri, 24 August 2007 06:58 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
wanglin1981@gmail.com writes:

> 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?

If a restaurant is open between 7AM and 6PM, it
is generally not possible to have dinner there
after attending the theater. :-)

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
Previous Topic: Bug in IDL's TIMEGEN function
Next Topic: Re: MODIS spectral radiance

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

Current Time: Wed Oct 08 18:53:15 PDT 2025

Total time taken to generate the page: 0.00427 seconds