X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 03 Oct 2014 07:39 AM by  anon
Limited number of array dimensions
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:20
New Member


--
03 Oct 2014 07:39 AM
    Hello! I found that I could not make any array (of any sort) that exceeded 8 dimensions using IDL 8.3. For instance, the command "m1=fltarr(2,2,2,2,2,2,2,2,2)" results in the following response: "% FLTARR: Incorrect number of arguments." However, the following command is okay: "m2=fltarr(2,2,2,2,2,2,2,4)". Arrays m1 and m2 have an equal amount of elements, but m1 has 9 dimensions and m2 has 8 dimensions. Therefore, it does not seem to be a memory problem. So, why is this? And more important, how do I fix this? Cheers, Wouter

    Deleted User



    New Member


    Posts:
    New Member


    --
    03 Oct 2014 10:03 AM
    Unfortunately, IDL arrays are limited to 8 dimensions. If you look at the Syntax section of the FLTARR help page, it says the following: Result = FLTARR( D1[, ..., D8] [, /NOZERO] ) The D1[, ..., D8] implies that only 8 dimensions are allowed. I filed a bug report requesting this be explicitly stated in our docs.

    Deleted User



    New Member


    Posts:20
    New Member


    --
    09 Oct 2014 06:46 AM
    Thank you for the answer! Would be nice though, if this limit were to be extended in future versions of IDL. I can't be the only one, that wants to use arrays with dimensions greater than 8.
    You are not authorized to post a reply.