Re: reverse problem [message #46048] |
Thu, 03 November 2005 18:34  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Haje Korth writes:
> Hm, this works fine for me on IDL 6.2, Windows XP.
I'm pretty sure Bob is working on a Macintosh. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: reverse problem [message #46051 is a reply to message #46048] |
Thu, 03 November 2005 16:35   |
Haje Korth
Messages: 651 Registered: May 1997
|
Senior Member |
|
|
Bob,
Hm, this works fine for me on IDL 6.2, Windows XP.
Haje
"R.G. Stockwell" <no@email.please> wrote in message
news:JUxaf.41$Bd3.15259@news.uswest.net...
> Hi everybody,
> I've gone insane. Here is the evidence:
>
> IDL> print,reverse([1,2,3,4,5])
>
> 1 1 1 1 1
>
>
> Why the heck is reverse giving me an array of ones, instead
> of reversing the array?
> I think it used to work ok, since I came across this problem
> in an old color table procedure (where I can select to reverse the
> color table).
>
> Cheers,
> bob
>
|
|
|
Re: reverse problem [message #46189 is a reply to message #46048] |
Fri, 04 November 2005 06:27  |
K. Bowman
Messages: 330 Registered: May 2000
|
Senior Member |
|
|
In article <MPG.1dd476b26207ce8a98968e@news.frii.com>,
David Fanning <david@dfanning.com> wrote:
> I'm pretty sure Bob is working on a Macintosh. :-)
>
> Cheers,
>
> David
Oh, libel! Libel!
bowman> idl
IDL Version 6.2, Mac OS X (darwin ppc m32). (c) 2005, Research Systems, Inc.
IDL> print,reverse([1,2,3,4,5])
% Compiled module: REVERSE.
5 4 3 2 1
IDL>
Ken Bowman
|
|
|
Re: reverse problem [message #46195 is a reply to message #46048] |
Thu, 03 November 2005 20:05  |
Mark Hadfield
Messages: 783 Registered: May 1995
|
Senior Member |
|
|
David Fanning wrote:
> Haje Korth writes:
>
>
>
>> Hm, this works fine for me on IDL 6.2, Windows XP.
>
>
> I'm pretty sure Bob is working on a Macintosh. :-)
Oh well, on a Macintosh it's quite reasonable that reverse([1,2,3,4,5])
would give [1,1,1,1,1].
See your smiley and raise you one :-) :-)
--
Mark Hadfield "Kei puwaha te tai nei, Hoea tahi tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
|
|
|