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

Home » Public Forums » archive » Re: Concatenate arrays
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: Concatenate arrays [message #41458 is a reply to message #41457] Thu, 28 October 2004 23:42 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Lee writes:

> Can someone please explain why I can't break up the third index array.
> I only want to grab certain frames and recombine to get new image. I
> would have expected to be new_arry=(10,10,5)
>
>
>
> data=findgen(10,10,10)
>
> array1=data(*,*,0:1)
> array2=data(*,*,3:5)
>
> new_array=array1+array2
> help,new_ARRAY FLOAT = Array[10, 10, 2]

It looks like it has been awhile since you have read
the Array Concatenation Tutorial:

http://www.dfanning.com/tips/array_concatenation.html

IDL> new = [ [ [array1] ], [ [array2] ] ]
IDL> help, new
NEW FLOAT = Array[10, 10, 5]

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http:/www.dfanning.com/
Phone: 970-221-0438, IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: calling Fortran from IDL
Next Topic: Re: initial keyboard focus, tabbing and keyboard accelerators

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

Current Time: Sat Oct 11 03:48:09 PDT 2025

Total time taken to generate the page: 0.32622 seconds