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

Home » Public Forums » archive » FOR LOOP problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
FOR LOOP problem [message #30977] Fri, 31 May 2002 13:44 Go to previous message
skd6 is currently offline  skd6
Messages: 4
Registered: May 2002
Junior Member
Hi,

I am very much new to IDL. Could anyone please tell me what the problem is with
this .pro file?

************************************************************ **********
image = bytarr(462, 350)
image_mod = bytarr(462, 350)
openr, 1, FILEPATH(SUB=['examples','data'], '400_400_gb')
readu, 1, image
FOR i = 0, 461 DO BEGIN
FOR j = 0, 349 DO image_mod[i,j] = image[i,j]
ENDFOR
close, 1
************************************************************ *********

It gives me the following error message :

************************************************************ *********
% Attempt to subscript IMAGE with I is out of range.
% Execution halted at: $MAIN$
ENDFOR
^
% Syntax error.
At: D:\webpages\IONJava\examples\ndvi_pro.pro, Line 7
************************************************************ *********

Thanks,
Shravan Kumar Durvasula
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: VIP, Julday
Next Topic: speed up the display on Linux

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

Current Time: Sat Oct 11 08:05:00 PDT 2025

Total time taken to generate the page: 0.55648 seconds