Reading binary data from cdrom using new PV-wave(v4.2) [message #2512] |
Tue, 02 August 1994 13:41 |
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.
|
|
|