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

Home » Public Forums » archive » Reading binary data from cdrom using new PV-wave(v4.2)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Reading binary data from cdrom using new PV-wave(v4.2) [message #2512] Tue, 02 August 1994 13:41
k0c7289 is currently offline  k0c7289
Messages: 9
Registered: June 1994
Junior Member
I read the binary data from cdrom using the pvwave ver4.0
with no problem. After installed the ver4.2 recently,I runned
the same program but the result shows very differently.

The program structure looks like

openr,21,'/cdrom/mga_019/*186'

tmp=fstat(21)
nrecs=(tmp.size-10560)/320 ;320 is one record

space=bytarr(10560) ; this is header part

par1=intarr(1)
par2=lonarr(1)
par3=intarr(1)
par4x10=lonarr(7)
.
.
.
lat = dblarr(nrecs)
lon = dblarr(nrecs)

;----------------------------------------------------------- ---
;Read header
;----------------------------------------------------------- --

readu,21,space


;----------------------------------------------------------- ---
;Read each record
;----------------------------------------------------------- ---

for i=0,nrecs-1 do begin

readu,21,par1
readu,21,par2
readu,21,par3
readu,21,par4x10
.
.
.

lat(i) = par4x10(3)
lon(i) = par4x10(4)

endfor
close, 21

.
.
.

Can anyone help me ? Thanks in advance.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Probs w/ keyword_set
Next Topic: Re: Probs w/ keyword_set

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

Current Time: Sat Oct 11 13:55:35 PDT 2025

Total time taken to generate the page: 0.24123 seconds