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

Home » Public Forums » archive » Re: Arrays merging
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: Arrays merging [message #47496 is a reply to message #47495] Wed, 15 February 2006 09:09 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Julio writes:

> Hello, I have an easy question. I have two arrays:
>
> help, array1
> help, array2
>
> ARRAY1 STRING = Array[15, 4]
> ARRAY2 STRING = Array[15, 6]
>
> I need to merge these two arrays into 1. I'm using:
>
> Array3 = [array1, array2]
>
> But it doesn't work, since the dimensions do not agree. How can I do to
> concatenate these two arrays? How can I fill with zero values the
> array1 to match it with array2??

Array4 = StrArr(15,6)
array4[0,0] = array1
array3 = [array4, array2]

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Arrays merging
Next Topic: Newbie to satellite data and IDL

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

Current Time: Sun Oct 12 04:45:07 PDT 2025

Total time taken to generate the page: 2.32012 seconds