Re: Attempt to subscript FILNAM with I is out of range.... [message #31750 is a reply to message #31748] |
Thu, 15 August 2002 11:20   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Kolbjorn Bekkelund (kobe@rocketrange.no) writes:
> Hi again, David.
>
> I've checked the value of i and it starts at 0 and grows up to number of
> files contained in the ozon-online. No -1 !!
>
> What's strange is that the program runs without any hitches from within
> IDL, but if ran as part of a script with 'idl pro-name.pro' it craches.
> I've included the start of the code below. The rest, not included, is just the plotting
> stuff. maybe you can see something ?
Well, I'm perplexed. This code didn't generate those
errors unless no files were found in the location you
were looking for them. :-)
Why don't you set a breakpoint and step through your code,
examining things as you go. That's the best way to discover
these kinds of errors.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|