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

Home » Public Forums » archive » fltarr(1,1,1,1,1,1,1,2) quirk, IDL 4
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
fltarr(1,1,1,1,1,1,1,2) quirk, IDL 4 [message #9563] Wed, 16 July 1997 00:00
Stein Vidar Hagfors H is currently offline  Stein Vidar Hagfors H
Messages: 32
Registered: May 1997
Member
I just discovered a quite weird "feature" of IDL 4:
You're allowed to make arrays with 8 dimensions, but
you can only index them with 7! E.g.:

IDL4> da=fltarr(1,1,1,1,1,1,1,2)
IDL4> print,size(da)
8 1 1 1 1 1
1 1 2 4 2
IDL4> print,da(0,0,0,0,0,0,0,0)

print,da(0,0,0,0,0,0,0,0)
^
% Only 7 subscripts allowed.

This is apparently fixed in IDL 5:

IDL5> da=fltarr(1,1,1,1,1,1,1,2)
IDL5> print,da(0,0,0,0,0,0,0,0)
0.00000

Just in case someone is trying to write cross-version
compatible code.....!

Stein Vidar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: circles
Next Topic: Re: Keywords GS and LIMITS not allowed in TRIGRID

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

Current Time: Wed Oct 08 16:00:40 PDT 2025

Total time taken to generate the page: 0.00507 seconds