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

Home » Public Forums » archive » Re: Limiting concatenation IDL 5.5
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Limiting concatenation IDL 5.5 [message #31234 is a reply to message #31228] Thu, 27 June 2002 15:46 Go to previous messageGo to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
Randall Skelton <rhskelto@atm.ox.ac.uk> writes:

> Ok... I have to ask. Is there actually a nice, clean way to concatenate
> multidimensional arrays in IDL?

> a = make_array(2,2,2,2)
> b = make_array(2,2,2,5)

> data1 = [ [[[a]]] , [[[b]]] ]

> Obviously the above fails, but what is the solution? Surely some
> combination of rebin/reform...

How about

c = make_array(2,2,2,7)
c(0,0,0,0) = a
c(0,0,0,2) = b

Of course, you'd want to put this into a routine, with calls to SIZE(), etc.

Bill Thompson
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Deleting from arrays
Next Topic: Matching Structure Tag Lengths

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

Current Time: Fri Oct 10 21:58:21 PDT 2025

Total time taken to generate the page: 2.32311 seconds