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

Home » Public Forums » archive » Re: IDL 6.2 Array Definition Question (Program code area full)
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: IDL 6.2 Array Definition Question (Program code area full) [message #48405 is a reply to message #48403] Wed, 19 April 2006 11:28 Go to previous messageGo to previous message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
"mshep" <mshep@aer.com> wrote in message
news:1145469488.757805.179980@i40g2000cwc.googlegroups.com.. .
>
> Hi Ken,
>
> Thanks for the reply.
>
> As I mentioned in a response to Reimar, the main question is why does
> IDL place a limit on the amount of array elements being passed
> explicitly?

Everything limits their input buffer, or else a user could crash the
computer
if they "accidently" gave too large of an input. It is a famous bug from
the old
days. There are just better ways to handle the situation. It is like you
are
trying to put your luggage into your glove box instead of the trunk. :)

> I could just write out the arrays in perl to a file and then read the
> file in using IDL

sounds good.
Or use your existing perl script to create a main level IDL code where
you define your arrays:

Pro call_full_test

a_arr =
[0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9 ,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9]
b_arr =
[0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9 ,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9]
c_arr =
[0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9 ,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9]
d_arr =
[0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9 ,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9]
e_arr =
[0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9 ,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9]
f_arr =
[0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9 ,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9]
g_arr =
[0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9 ,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9]

full_test, a_arr, b_arr, c_arr, d_arr, e_arr, f_arr , g_arr

end



Then have your script call "call_full_test"
$idl_prog_full_test = "call_full_test";
$idl_run = ".r $idl_prog_call_full_test";
$exit = "exit";
$idl_command_try_2 = "$idl_prog_call_ full_test";



Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 3-d plot surface to 2-d plot
Next Topic: interpolation question

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

Current Time: Sat Oct 11 02:44:21 PDT 2025

Total time taken to generate the page: 2.52796 seconds