Re: Automatic truncation of trailing dimension..... [message #28251 is a reply to message #28250] |
Tue, 27 November 2001 17:48   |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
tam <tam@lheapop.gsfc.nasa.gov> writes:
> Paul van Delst wrote:
>>
>> .....of an array when the dimension size is 1 is a real pain in the ass. Given:
...
>
> Under our previous president I guess I would have said
>
> "I feel your pain"
>
> but now it's
>
> "This is evil."
>
> You might find:
>
> < http://groups.google.com/groups?q=dimension+trailing&hl= en&group=comp.lang.idl-pvwave&rnum=8&selm=onlngh jin1.fsf%40cow.physics.wisc.edu>
>
> to be helpful.
What he said, errr, I mean, what I said.
Actually, that particular thread was a little more specialized than
Paul's complaint. Paul, I totally agree with you that dropping the
final unit-dimension is bogus, but the quoted post was premised upon
it happening, and then showing that there were *still* surprises after
that.
For example, the statement "A = DBLARR(N1, N2, N3)" can surprisingly
produce a two- or one-dimensional array!
Or, REFORM() does not work on scalars.
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|