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

Home » Public Forums » archive » Re: How does one read in simple binary files?
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: How does one read in simple binary files? [message #5543 is a reply to message #5542] Sat, 13 January 1996 00:00 Go to previous message
kennealy is currently offline  kennealy
Messages: 11
Registered: August 1994
Junior Member
Bruce, with IDL, reading binary files is quite simple. For example,
your case of a 128x128 image of 2-byte pixels could be handled as:
image=intarr(128,128)
openr,1,filename
readu,1,image
close,1
and that takes care of it. Your second case could be handled as
header=bytarr(100)
image=fltarr(128,128)
openr,1,filename
readu,1,header,image
close,1
Hope this helps. In this newsgroup, you'll find people are very
helpful on all levels of questions.

Regards,
Jack
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Idl is greedy, once it gets some memory it will NOT release it.
Next Topic: Producing graphics without screen display

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

Current Time: Sun Oct 12 10:31:56 PDT 2025

Total time taken to generate the page: 0.72120 seconds