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

Home » Public Forums » archive » Saving for loop values into arrays without know the final size of array
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: Saving for loop values into arrays without know the final size of array [message #89155 is a reply to message #89154] Tue, 29 July 2014 12:35 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 7/29/14, 1:24 PM, sylvestergreene51@gmail.com wrote:
> I am dealing with a large data set and a for-loop with some if
> statements involved. thus I do not know what the final size of the
> for-loop will be and cannot declare the array dimensions beforehand
> which allows you to save your for-loop answers into an array. Does
> anyone know of a suggestion about how to work around this?
>

Easiest solution is to use the list class. There are other solutions if
you have an older version of IDL.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Automatically generating IDL bindings
Next Topic: [ANN] MIDLE - Almost an Alternative to EXECUTE

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

Current Time: Wed Oct 08 15:28:35 PDT 2025

Total time taken to generate the page: 0.00463 seconds