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

Home » Public Forums » archive » Re: allocating data to different array on each loop step
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: allocating data to different array on each loop step [message #46270 is a reply to message #46269] Sat, 12 November 2005 03:08 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
snfinder@naver.com wrote:


> Dear all,
>
> I just want to allocate data(computed in each loop step) to different
> array in each step.
>

if n_elements(arr) eq 0 then arr=value else arr=[arr,value]


later on you probably have to do somewhere result=temporary(arr)

cheers
Reimar

> for example,
> while ...
>
> ..
> ..
> data=...
>
> a0=data
> .
> .
> endwhile
>
>
> in other words
> loop step 1: a1=data
> loop step 2: a2=data
> loop step 3: a3=data
> .
> .
> .
> end of loop
>
>
> I need new array on each step but I can not know the size of array(data
> computed) in advace.
> It would be differnt on each step.
>
>
> To sum up,
> I need the generation of array(different name ex) a0,a1,a2....on each
> loop step.
>
>
> Thank you.
>
> Help me~ You can give a bright to a blind(IDL blind like me ^^;;).
> SOS~~
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Access to title object in IDLgrAxis
Next Topic: subscripting arrays with dim > 1

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

Current Time: Sun Oct 12 08:07:28 PDT 2025

Total time taken to generate the page: 0.96112 seconds