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

Home » Public Forums » archive » Re: Strange behaviour ? of Subscript range values of the form low:high
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: Strange behaviour ? of Subscript range values of the form low:high [message #76628 is a reply to message #76526] Tue, 21 June 2011 00:33 Go to previous message
LNpellen is currently offline  LNpellen
Messages: 37
Registered: November 2009
Member
The story goes on - and the problem occurs again and this time even
stranger (to me).

I stop my code just before the error occurs and do some printouts:

IDL> help, doseTemp
DOSETEMP FLOAT = Array[502, 494]
IDL> help, doseTempFull
DOSETEMPFULL FLOAT = Array[512, 512]
IDL> print, x1,x2,y1,y2
5 506 3 496
IDL> doseTempFull[5:506,3:496]=doseTemp
IDL> doseTempFull[x1:x2,y1:y2]=doseTemp

Everything works fine to this point. The latter line above is the next
line in the code and it appears to run with no errors so lets continue
the code:

IDL> .cont
% XMANAGER: Caught unexpected error from client application. Message
follows...
% Subscript range values of the form low:high must be >= 0, < size,
with low <= high: DOSETEMPFULL.
% Execution halted at: GENERATEDOSEDISPLAY 106 P:\RTPlanViewer
\RTPlanViewer\generateDoseDisplay.pro
% RTPLANVIEWER_EVENT 291 P:\RTPlanViewer
\RTPlanViewer\RTPlanViewer_event.pro
% XMANAGER_EVLOOP_STANDARD 478 C:\Programfiler
\ITT\IDL71\lib\xmanager.pro
% XMANAGER 708 C:\Programfiler\ITT
\IDL71\lib\xmanager.pro
% RTPLANVIEWER 109 P:\RTPlanViewer
\RTPlanViewer\RTPlanviewer.pro
% $MAIN$

So the "doseTempFull[x1:x2,y1:y2]=doseTemp" works in command line, but
not in the code..... I understand nothing.

Ellen
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Histoplot - yaxis range
Next Topic: weird behaviour with cgdemodata

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

Current Time: Sat Oct 11 15:26:42 PDT 2025

Total time taken to generate the page: 1.60113 seconds