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

Home » Public Forums » archive » Re: Array concatenations limit?
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: Array concatenations limit? [message #9387 is a reply to message #9369] Tue, 17 June 1997 00:00 Go to previous messageGo to previous message
R. Bauer is currently offline  R. Bauer
Messages: 137
Registered: November 1996
Senior Member
Philippe Peeters wrote:
>
> Hi all,
>
> I would like to define a constant vector of 299 elements with something
> like
>
> g=[1,2,3,...] ; 299 floats values
>
> during execution, IDL complains with the error message
> 0.006,0.006,0.006,0.005,0.005,0.005,0.005,0.004,0.004,0.004, 0.004,$
> ^
> % Program code area full.
>
> The manual says that there is a limit to the number of elements in array
> concatenation. It should be at least 25 but the maximum is dependent of
> the .SIZE defined. I have tried to increase the code and data size with
> no luck.
> Eventually I have cut the initial vector into pieces like this
> g=[1,2,3,...]
> g=[g,4,5,6,...]
> g=[g,7,5,6,...]
> etc...
>
> This is really ugly. Is there any workaround to this stupid limit?

You are not alone whith this problem.

Here is the workaround!


You can open a file and write strings from an idlprocedure or define by
hand like:

;include batch file for program: xyz.pro
g=fltarr(299)
g(0)=1
g(1)=2

and so on.

This file is like an idl include file and could be included by @

@ must be on the first column.



That's all

regards

R.Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: No TLB Tracking Events in IDL 5.0
Next Topic: Mie scattering code

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

Current Time: Sun Oct 12 00:02:24 PDT 2025

Total time taken to generate the page: 0.01933 seconds