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

Home » Public Forums » archive » Re: Reading multiple ASCII files in as 2d arrays and putting them into a 3d 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: Reading multiple ASCII files in as 2d arrays and putting them into a 3d array [message #65209 is a reply to message #65208] Sun, 15 February 2009 11:05 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
polystethylene writes:

> Thanks for the swift response!
>
> I've just tried that, and it fails with the message:
>
> % Attempt to subscript DATA with I is out of range.
>
> a quick print of framearray and data reveal that 'framearray' contains
> the values of the 125th file, but 'data' is full of zeros.
>
> Not quite sure what it's complaint means...

Whoops! Didn't notice your loop variables before.
IDL is a zero indexed language. You loops will
have to go from 0 to n-1, not from 1 to n.

I think this might be what the error is about.
I think I=125 is out of bounds of your last array
dimension, which should go from 0 to 124.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Creating a composite image, avoid fill data values
Next Topic: Re: another IDL oddity

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

Current Time: Fri Oct 10 06:33:49 PDT 2025

Total time taken to generate the page: 1.20138 seconds