Re: rs_test.pro [message #34376] |
Wed, 12 March 2003 08:22 |
R.G. Stockwell
Messages: 363 Registered: July 1999
|
Senior Member |
|
|
Steve wrote:
> 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
Hi Steve,
In a manner of speaking, you cannot concatenate a column vector and a row vector.
As a guess, one of your arrays may be a [1 by 103] or [1 by 105],
and the other is [105] or [103].
Use the help procedure to see.
IDL> help,x,y
So, you can use reform() or transpose() on the offending array.
Cheers,
bob
|
|
|