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

Home » Public Forums » archive » Re: opening/reading binary data
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: opening/reading binary data [message #7177] Tue, 08 October 1996 00:00 Go to previous message
hto is currently offline  hto
Messages: 15
Registered: April 1996
Junior Member
rawlins@strauss.udel.edu (Michael Alf Rawlins) wrote:

> Hi All,

> I'm somewhat of a novice with IDL, and am having some trouble reading
> a data file stored in binary mode. The data file is the etopo5
> elevation data. We run a Sun Sparc machine with SunOS 5.4 (UNIX)


> In IDL I did:
>
> IDL>openr,1,'Global/dem/etopo5.dat',f77_unformatted
> IDL>dat=fltarr(540,4320)
> IDL>readu,1,dat
>

I believe that etopo5 contains integer data -- 16 or 32 bit in feet or
meters. Try using either integer (16 bit) or long (32 bit) type in
IDL. If you can't solve it, let me know. I've read the file using
IDL but it was a long time ago. I can try to find the code.
Howard Onishi
[Message index]
 
Read Message
Read Message
Previous Topic: Calling IDL(RSI) 4.01 from BC++4.51
Next Topic: Bug in Box_cursor?

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

Current Time: Thu Oct 09 22:46:31 PDT 2025

Total time taken to generate the page: 0.00268 seconds