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

Home » Public Forums » archive » Dropped dimensions?
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: Dropped dimensions? [message #80607 is a reply to message #14805] Thu, 28 June 2012 13:07 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Thursday, June 28, 2012 3:45:45 PM UTC-4, wlandsman wrote:
> On Sunday, March 28, 1999 3:00:00 AM UTC-5, Craig Markwardt wrote:

>
> How do you end up with a scalar? At least since IDL V7.1, I find,

To answer my own question, the subsequent processing might convert a 1 element array to a scalar. I do try to have my own programs avoid such conversions, but it can be hard to maintain consistency. --Wayne

>
> IDL> a = dblarr(1,1,1)
> IDL> help,a
> A DOUBLE = Array[1]
> IDL> b = reform(a,1,1,1)
> IDL> help,b
> B DOUBLE = Array[1, 1, 1]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: overwrite output to screen; unix vs windows
Next Topic: plotting an array values keeping origin as a reference value

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

Current Time: Sun Oct 12 05:03:40 PDT 2025

Total time taken to generate the page: 0.96213 seconds