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

Home » Public Forums » archive » Array concatenation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Array concatenation [message #48962] Wed, 07 June 2006 03:41 Go to previous message
maye is currently offline  maye
Messages: 29
Registered: June 2006
Junior Member
Hi folks,
I was searching for an effective way to do this, but can't find anybody
writing about what (as usual) seems to be an obvious problem/task to
me. :)
I don't know how many elements I will collect while scanning a bunch of
images, so I want to use array concatenation to collect the values like
this:
means = [means, currMean]
But for this to compile/run properly, I need mean to exist before.
If I do a
means = 0.
before the loop, I will always have a zero-element in the beginning
that I don't want at plotting time. Of course I could remove it with
means = means[1:*]
but not only does this waste resources, it also becomes cumbersome if I
collect 20 different data values, for that I ALL have to remove the
first value?
Surely there must be a better way?
Please help me to program IDL efficiently! :)
Best regards,
Michael
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL slow to load command prompt
Next Topic: The usage of PS_END

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

Current Time: Wed Oct 08 13:31:24 PDT 2025

Total time taken to generate the page: 0.00541 seconds