X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 04 Dec 2015 12:36 AM by  anon
High dimensional array concatenation
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:32
New Member


--
04 Dec 2015 12:36 AM
    For arrays of 3 dimension or higher, concatenation operation will result this error message: % Only three levels of variable concatenation are allowed. Is there any simple solution for this?

    Zachary Norman



    Basic Member


    Posts:173
    Basic Member


    --
    04 Dec 2015 10:49 AM
    Hello Huang, Could you provide a small, self contained example which illustrates the error you are getting? Without seeing your code, I'm not quite sure what to say. -Zach (VIS)

    Deleted User



    New Member


    Posts:32
    New Member


    --
    06 Dec 2015 06:26 PM
    Thanks Zach, An example is something like this: IDL> a = [[findgen(10)],[findgen(10)]] IDL> help, a A FLOAT = Array[10, 2] IDL> b = [[[a]],[[a]]] IDL> help, b B FLOAT = Array[10, 2, 2] IDL> c = [[[[b]]],[[[b]]]] c = [[[[b]]],[[[b]]]] ^ % Only three levels of variable concatenation are allowed. I am expecting to have an array C like this: Help, C C FLOAT = ARRAY[10, 2, 2, 2]
    You are not authorized to post a reply.