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 #41457 is a reply to message #41455] Fri, 29 October 2004 04:42 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
David Fanning wrote:
> 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

We have a routine in our library which could add data on every dimension
you want.

http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase/concatenate_arrays_dbase.pro.html

cheers

Reimar
[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 01:12:55 PDT 2025

Total time taken to generate the page: 0.31791 seconds