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

Home » Public Forums » archive » Re: loop for 365 days with 18 days interval
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: loop for 365 days with 18 days interval [message #63790 is a reply to message #63784] Wed, 19 November 2008 21:33 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Nov 19, 10:50 pm, Elkunn <Wasit.Weat...@gmail.com> wrote:
> On Nov 19, 9:49 pm, Elkunn <Wasit.Weat...@gmail.com> wrote:
>
>> Hello,
>> I want to loop for 16 days as a group through the whole year. In other
>> words, my first loop should stop when the number of the days reaches
>> 16, do processing, then count from 17th day to the day when the number
>> of days reaches 16, then do the processing again.
>> How can loop for this, each time read 16 images?
>
>> Thanks
>
>> Elkunn
>
> sorry, should be 16 days. not 18.

I suppose it depends what you mean by "do processing". If it needs to
be in a for loop, then something like this should work:

for i=0l,364 do begin
... do whatever is required to read in image i ...
if i mod 16 ne 0 then continue
... do processing on image i ...
endfor

But it could be that you can be much more clever... hard to say
without more details. Do you need to store the intermediate images?
Can you read in everything and then do vector processing afterwards?

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: A Simple IDL Manifesto
Next Topic: dependency tree / call graph in idl (cscope for idl)?

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

Current Time: Fri Oct 10 12:43:22 PDT 2025

Total time taken to generate the page: 0.15966 seconds