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

Home » Public Forums » archive » rs_test.pro
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: rs_test.pro [message #35343 is a reply to message #34378] Mon, 09 June 2003 08:01 Go to previous message
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
Tobi Hansel wrote:
> A while ago I read a message about this test.
> Now, I am experiencing the same problem. I am using two array of
> different lenghts (as Online Help state possible) but I am unable to
> run rs_test.pro properly. This routine return me error!
> By the way, I am sure the array are
> x=[1,47]
> y=[1, 33]
> Where do I fail?
> Does the routine work right?
> Cheers,
> Tobi


Hello,

For RS_TEST the X and Y arguments must be *vectors*. Since your X and
Y have two dimensions the don't qualify. It's a subtle problem and it
drives some programmers crazy - while other's delight in it. You can
fix the problem by using REFORM do removed the 'degenerate' dimension.

vecX = REFORM(x)
vecY = REFORM(y)

result = RS_TEST(vecX, vecY, ...)

Ben
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Request for help using IDL in ENVI
Next Topic: ICG IDL Library

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

Current Time: Fri Oct 10 14:50:42 PDT 2025

Total time taken to generate the page: 1.43416 seconds