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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Strange behaviour ? of Subscript range values of the form low:high [message #76526] Fri, 17 June 2011 04:58 Go to next message
LNpellen is currently offline  LNpellen
Messages: 37
Registered: November 2009
Member
Well, actually I'm still working with 7.1 as I haven't had the time to
upgrade.

Your frustrations tell me that I should not rush to upgrade.

Ellen
Re: Strange behaviour ? of Subscript range values of the form low:high [message #76528 is a reply to message #76526] Fri, 17 June 2011 04:17 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> P.S. And WShow continues to work intermittently, and
> in no consistent way that I can understand.

This appears to be related, now that I think about it,
to another behavior I just noticed again a moment ago.
Graphics windows sometimes appear in front of the
Workbench when they are created, but nearly as
often appear (well, "appear" is the wrong word!)
*behind* the Workbench!

There doesn't appear to be any predicable pattern to
this. Sometimes the very same program will appear in
front of the Workbench this time and behind the next
time the program is run, and visa versa. Something
seems to be screwed up in the way these windows are
ordered on the display.

This certainly makes working on a laptop challenging. :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
Re: Strange behaviour ? of Subscript range values of the form low:high [message #76529 is a reply to message #76528] Fri, 17 June 2011 02:52 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
LNpellen writes:

> Well - I checked the variables were scalars with the expected values.
> Hard coding the same values worked...
> The code worked for other datasets.
>
> Today is another day - and suddenly the same code works also for the
> dataset with the problem.
> I have no idea why but I'm crossing fingers it will keep working.

Let me guess, IDL 8.1. I've been seeing strange things
like this all week long in a class I've been teaching!
Totally inexplicable behavior on my machine and others.
Yesterday, all of a sudden, it appeared as if IDL
couldn't remember my IDL path! I couldn't get anything
to compile automatically. I exited IDL, restarted, and
all was well. Very strange...

Cheers,

David

P.S. And WShow continues to work intermittently, and
in no consistent way that I can understand.



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
Re: Strange behaviour ? of Subscript range values of the form low:high [message #76533 is a reply to message #76529] Fri, 17 June 2011 00:53 Go to previous messageGo to next message
LNpellen is currently offline  LNpellen
Messages: 37
Registered: November 2009
Member
Well - I checked the variables were scalars with the expected values.
Hard coding the same values worked...
The code worked for other datasets.

Today is another day - and suddenly the same code works also for the
dataset with the problem.
I have no idea why but I'm crossing fingers it will keep working.

Ellen
Re: Strange behaviour ? of Subscript range values of the form low:high [message #76544 is a reply to message #76533] Thu, 16 June 2011 08:53 Go to previous messageGo to next message
R.G.Stockwell is currently offline  R.G.Stockwell
Messages: 163
Registered: October 2004
Senior Member
% Subscript range values of the form low:high must be >= 0, < size,
with low <= high: DOSETEMPFULL.

What is going on here? Writing the values works, but the variables
with the same values don't....

************************************


wild guess, did you get your dosetemp transposed?

or perhaps your index variables switched?


cheers,
bob
Re: Strange behaviour ? of Subscript range values of the form low:high [message #76548 is a reply to message #76544] Thu, 16 June 2011 03:27 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
LNpellen writes:

> What is going on here? Writing the values works, but the variables
> with the same values don't....
>
> Please give me the obvious explanation that I cannot see.

The two obvious explanations I can think of are:

1. The variables don't contain the values you think
they do, or...
2. The variables aren't scalars. (Use HELP to find out.)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Histoplot - yaxis range
Next Topic: weird behaviour with cgdemodata

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

Current Time: Wed Oct 08 13:33:19 PDT 2025

Total time taken to generate the page: 0.00586 seconds