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

Home » Public Forums » archive » Re: Behaviour of REFORM() changed in IDL 5.5?
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: Behaviour of REFORM() changed in IDL 5.5? [message #29241] Fri, 08 February 2002 10:15 Go to previous message
Robert Stockwell is currently offline  Robert Stockwell
Messages: 74
Registered: October 2001
Member
Georg Wiora wrote:

> Hi everybody!
>
> I just found out that the behaviour of the REFORM() function
> seems to be changed in IDL 5.5. With IDL 5.4 I was able to
> reform a one dimensional array to a two dimensional with a
> trailing dimension of size one. With idl 5.5 these dimension
> is removed automaticaly. But from the documentation the
> automatic reduction of dimensions should only happen if no
> dimensions are specified. This change is not documented in
> the (windows) help file.
>
> Here is my example:
> array = INDGEN(100)
> image = REFORM(100,1)
>
> In IDl 5.4 the result was: image[100,1]
> In IDl 5.5 the result is: image[100]
>
> Is there anything known about a bug fix for that?
>
>
> Thanks,
>
> Georg
>
>


Hi Georg,

What os are you? A Windows one? Unfortunately my win2000
laptop is in the shop (BTW arg!) so I can't check behaviour there.

Here is my result, it seems ok at least under linux.

IDL> r = indgen(100)
IDL> help,r
R INT = Array[100]
IDL> help,reform(r,100,1)
<Expression> INT = Array[100, 1]



So as to do exactly as suggested above:

IDL> help,r
R INT = Array[100]
IDL> image = reform(r,100,1)
IDL> help,image
IMAGE INT = Array[100, 1]

And to try a leading dimension:

IDL> help,reform(r,1,100)
<Expression> INT = Array[1, 100]



Version info
IDL> help,!version,/st
** Structure !VERSION, 8 tags, length=76, data length=76:
ARCH STRING 'x86'
OS STRING 'linux'
OS_FAMILY STRING 'unix'
OS_NAME STRING 'linux'
RELEASE STRING '5.5'
BUILD_DATE STRING 'Aug 28 2001'
MEMORY_BITS INT 32
FILE_OFFSET_BITS
INT 32


Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Division of two images
Next Topic: alphaLINUX IDL

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

Current Time: Sat Oct 11 15:09:34 PDT 2025

Total time taken to generate the page: 1.20104 seconds