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

Home » Public Forums » archive » f77 unformatted file reading error
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
f77 unformatted file reading error [message #41662] Wed, 10 November 2004 21:24
Jaehyung Yu is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: FFT help
Next Topic: Event handler as an object method ??

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

Current Time: Wed Oct 08 15:49:26 PDT 2025

Total time taken to generate the page: 0.00529 seconds