Re: Automatic truncation of trailing dimension..... [message #28260 is a reply to message #28255] |
Tue, 27 November 2001 14:06   |
Paul van Delst
Messages: 364 Registered: March 1997
|
Senior Member |
|
|
tam wrote:
>
> Paul van Delst wrote:
>>
>> .....of an array when the dimension size is 1 is a real pain in the ass. Given:
>>
>> IDL> x=fltarr(100,1,15)
>> IDL> help, x
>> X FLOAT = Array[100, 1, 15]
>>
>> Is there anyway to prevent:
>>
>> IDL> help, x[*,*,1]
>> <Expression> FLOAT = Array[100]
>> IDL>
>>
>> i.e. to give:
>> <Expression> FLOAT = Array[100,1]
>>
>> Argh wot a pain.
>>
>> --
>
> Under our previous president I guess I would have said
>
> "I feel your pain"
>
> but now it's
>
> "This is evil."
Those darn evil evildoers.
>
> You might find:
>
<Link to Craig Markwardt's tirade against IDL mucking about and changing his data arrays
without at least asking first....snipped>
> to be helpful.
Oh, I've read Craig's, uh, comments about this, er, feature in the past.
> Everyone seems to be bitten by this at one time or another...
Well, usually those large chunks missing from my rear-end are my fault. Nuts. The chances of
this being FIXED by RSI are probably small since there is more than likely a lot more code that
would break if the auto-array-reformat wasn't done. Sigh.
paulv
--
Paul van Delst Religious and cultural
CIMSS @ NOAA/NCEP purity is a fundamentalist
Ph: (301)763-8000 x7274 fantasy
Fax:(301)763-8545 V.S.Naipaul
|
|
|