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

Home » Public Forums » archive » 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
Strange behaviour ? of Subscript range values of the form low:high [message #76550] Wed, 15 June 2011 23:28 Go to previous message
LNpellen is currently offline  LNpellen
Messages: 37
Registered: November 2009
Member
I want to paste a small matrix into a large matrix and I have done
this several times before, but suddenly I've met the wall...

The two matrises
DOSETEMP FLOAT = Array[493, 300]
DOSETEMPFULL FLOAT = Array[512, 512]

and I want to do this:
doseTempFull[xstart:xslutt,ystart:yslutt]=doseTemp

print, xstart,xslutt,ystart,yslutt
Gives me
19 511 100 399

This works ok:
doseTempFull[19:511,100:399]=1
or
doseTempFull[19:511,100:399]=doseTemp

but the real code do not work:
doseTempFull[xstart:xslutt,ystart:yslutt]=doseTemp

This gives me the typical error:
% 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.

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.

Best regards
Ellen
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL IMAGE NAVIGATION
Next Topic: Re: Formatted printf output

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

Current Time: Sat Oct 11 08:53:51 PDT 2025

Total time taken to generate the page: 0.16520 seconds