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 
Switch to threaded view of this topic 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 next 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.")
Re: How to avoid the FOR loop when using TM_TEST? [message #55581 is a reply to message #55496] Fri, 24 August 2007 20:38 Go to previous message
wanglin1981 is currently offline  wanglin1981
Messages: 10
Registered: August 2007
Junior Member
David,

I'm not a native English speaker and I cannot quite understand
what you mean in the reply. But I can sense that maybe you thought
me as a bad learner.

I'm a beginner of IDL, and I began to learn it by myself about two
weeks ago. With a brief guide from the web, I can write some useful
programs for my study now. I think it is great for me because I have
to
handle both the IDL and the English within such a short time. There
is
no newsgroup in my own laguage and few people around me are using
IDL.
So when I come across questions, I search on the web. As I'm not sure
what kind of keywords I should use for the search, I used both
'tm_test'
and 'loop'. So far, I have not found my answer so far.

Maybe you think I'm silly or lazy, but I DO did my effort to learn IDL
and tried not to bother others with simple questions. This is my
first
post on this newsgroup. No matter what you think of me, I'll keep
searching
for the answers.

Lin

On Aug 24, 9:58 pm, David Fanning <n...@dfanning.com> wrote:
> 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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
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:41:51 PDT 2025

Total time taken to generate the page: 0.00444 seconds