rs_test.pro [message #34378] |
Wed, 12 March 2003 07:54  |
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 #35343 is a reply to message #34378] |
Mon, 09 June 2003 08:01  |
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
|
|
|