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 
Switch to threaded view of this topic Create a new topic Submit Reply
rs_test.pro [message #34378] Wed, 12 March 2003 07:54 Go to next message
Steve.Morris is currently offline  Steve.Morris
Messages: 17
Registered: November 2002
Junior Member
Hi everybody!
I am using the routine rs_test.pro (idl library). I have two data set,
the first one is a 105 elements array (x), while the second one is a
103 elements array(y).
I read the data, but when I use rs_test.pro the routine returns

%Unable to concatenate variables because the dimensions do not agree:
Y
% Error occurred at: RS_TEST 96
% $MAIN$
% Execution halted at: $MAIN$

Why? Where is the problem and it is possible to solve it?
Thank a lot!
Cheers
Steve
Re: rs_test.pro [message #35341 is a reply to message #34378] Tue, 10 June 2003 01:54 Go to previous message
tobi_hansel is currently offline  tobi_hansel
Messages: 2
Registered: June 2003
Junior Member
Thanks a lot, Ben!
Cheers
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
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 19:24:14 PDT 2025

Total time taken to generate the page: 0.00654 seconds