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

Home » Public Forums » archive » conbining 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: conbining arrays [message #93335 is a reply to message #93317] Thu, 16 June 2016 11:39 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
The easiest way is to first make the output array

outarr = fltarr(1441,196)

and then add subarrays where you need them

outarr[0:1439,0:194] = findgen(1440,195)
outarr[1440,0:194] = findgen(195)
outarr[0:1439,195] = findgen(1440)

making the sure that the sizes of the arrays on the left and right hand side are the same. One of your subbarrays was integer while others were floating point. If you really want ot maintain this distinction when combining them then I suggest using the LIST() function.

--Wayne

On Wednesday, June 15, 2016 at 1:00:32 PM UTC-4, wlandsman wrote:
> One of many ways to do this:
>
> IDL> save,a,b,c,d
>
> to place the variables into an IDL save set idlsave.dat that can be RESTOREd
>
> On Wednesday, June 15, 2016 at 10:22:02 AM UTC-4, Sharad wrote:
>> How to combine following arrays in a single file?
>>
>> A FLOAT = Array[195]
>>
>> B FLOAT = Array[1440, 195]
>>
>> C FLOAT = Array[195]
>>
>> D LONG = Array[1440]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help needed in using object graphics
Next Topic: Reading DICOM problem

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

Current Time: Wed Oct 08 11:34:41 PDT 2025

Total time taken to generate the page: 0.00440 seconds