f77 unformatted file reading error [message #41662] |
Wed, 10 November 2004 21:24 |
Jaehyung Yu
Messages: 2 Registered: November 2004
|
Junior Member |
|
|
Dear all,
I am totally new to IDL, but have to use this program to extract binary
data.
Need your help.
I have downloaded one file named "bal_flux.bas_smooth35", and tried to read
the file as following;
IDL> file = 'bal_flux.bas_smooth35'
IDL> openr, lun, file, /f77_unformatted, /get_lun
IDL> nx = 0L & ny = 0L
IDL> readu, lun, nx, ny
%READU: Corrupted f77 unformatted file detected. Unit: 100,
File:>>E:\LAMBERT_DB\MASS_BALANCE\bal_flux.bas_smooth35
% Execution halted at: $MAIN$
I am using PC version 6.0.1, and set the "working directory" in "start up"
tap in preference menu to the directory that the data are
located.
The other guy used the same file to extract the same way. And she was
successful. The only difference between hers and mine is that hers is unix
version and mine is PC version.
Her code and result looks like the following
> IDL> file = 'bal_flux.bas_smooth35'
> IDL> openr, lun, file, /f77_unformatted, /get_lun
> IDL> nx = 0L & ny = 0L
> IDL> readu, lun, nx, ny
> IDL> print, nx, ny
> 1400 1400
> IDL> bal_flux = fltarr(nx, ny)
> IDL> help, bal_flux
> BAL_FLUX FLOAT = Array[1400, 1400]
Can somebody help on the issue?
Your help is urgent to me.
Thank you.
|
|
|