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

Home » Public Forums » archive » Re: Declaring large vectors in IDL
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: Declaring large vectors in IDL [message #70489 is a reply to message #70484] Fri, 16 April 2010 20:47 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Apr 16, 9:17 pm, fgg <fabioguimaraesgoncal...@gmail.com> wrote:
> Hi there,
>
> I have this vector written in a batch file (*.pro):
>
> a = [28, 29, 28, 28, 29, 29, 29, 27, 28, 28, 28, 28, 31, 31, 29, 27,
> 29, 29, 30, 28]
>
> ... and I'd like to add it to the variables view. When I type @'path/
> batchfilename.pro' at the IDL prompt, I get the following message: "%
> Program code area full". Any suggestions?

Here's another suggestion. For medium sized vectors, you can do
something like this,

a = [1,2,3,4]
a = [a,5,6,7,8]
a = [a,9,10,11,12]
a = [a,13,14,15,16]
... and so on

This won't work for large vectors since A gets redefined each line of
the script, and will start to thrash memory. For large vectors you
will want to use OPENR/READF as shown by 'pp'

Craig
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Comparison operators and floating-point errors
Next Topic: Re: Virtual machine popup

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

Current Time: Wed Oct 08 19:35:27 PDT 2025

Total time taken to generate the page: 0.00611 seconds