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

Home » Public Forums » archive » REFORM: new subscripts must not change the number elements in array
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: REFORM: new subscripts must not change the number elements in array [message #90432 is a reply to message #90431] Mon, 02 March 2015 11:34 Go to previous messageGo to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Monday, March 2, 2015 at 11:31:56 AM UTC-6, g.na...@gmail.com wrote:
> I read the documentation, and I noticed that The REFORM function changes the dimensions of an array without changing the total number of elements. That's what I want but I didn't understand how the others end up with a = reform(a, 100l, 200l*2l, /overwrite).
>

Then you really need to read it again.

Your original question asks why an array that is 200x200 can not be reformed into an array that 100x40000.

On Monday, March 2, 2015 at 1:25:24 PM UTC-6, g.na...@gmail.com wrote:
> I used the example provided by mo who said that 200*200=100*400. When a 2D array has dimensions [216,216] then 216*216=120*388.8
>
> when I tried a=reform(a,120l,388.8L,/overwrite) I got the old error

Uh, a dimension with 388.8 elements?

As someone was said around here before he "retired," no, no, you're doing it all wrong.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: function graphics event handling
Next Topic: Image in color scale and gray level scale.

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

Current Time: Wed Oct 08 11:39:38 PDT 2025

Total time taken to generate the page: 0.00491 seconds