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

Home » Public Forums » archive » Re: Confusing Error Message
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: Confusing Error Message [message #71081 is a reply to message #71080] Thu, 27 May 2010 14:59 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Does anyone have any ideas what an error message like this might
> be hinting at?
>
> % Array subscript for TRIMVECTOR must have same size
> as source expression.

I guess it might help to see the code that causes the error.
It is the next to last line in this code, wher the arrows point:

index = Where(Finite(vector) EQ 1, count)
IF count NE 0 THEN BEGIN
trimVector = Float(vector)
>>> trimVector[index] = vectorMin > vector[index] < vectorMax
ENDIF

VectorMin and VectorMax are scalars, the result of a MIN
and MAX function call in another part of the program.

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Confusing Error Message
Next Topic: PS file is huge!

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

Current Time: Sun Oct 12 11:00:19 PDT 2025

Total time taken to generate the page: 1.51844 seconds