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

Home » Public Forums » archive » populating an array
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: populating an array [message #48221 is a reply to message #48167] Thu, 06 April 2006 06:24 Go to previous message
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
Looks to me like you have an array of integers which you accidentally
read into a byte array, and now you'd like to put things back in order.
The best way would be to read the data into an intarr of the right
dimensions in the first place. If it's too late, write out your byte
array to a file:

openw,1,filename
writeu,1,data
close,1

and read it back how you want it:

array = MAKE_ARRAY(1000,101, Type = 2)
openr,1,filename
readu,1,array
close,1

You may need to use swap_endian if it comes out byte-swapped.

regards,
Greg
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: 3d scatter plot
Next Topic: Re: populating an array

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

Current Time: Thu Oct 09 20:09:45 PDT 2025

Total time taken to generate the page: 0.64128 seconds