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

Home » Public Forums » archive » Re: f77 unformatted file reading error
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: f77 unformatted file reading error [message #41661 is a reply to message #41596] Thu, 11 November 2004 00:45 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jaehyung Yu writes:

> 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.

I think it is likely this is just a byte ordering problem.
Try setting the SWAP_IF_LITTLE_ENDIAN keyword on your
OPENR statement and see if that works better.

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http:/www.dfanning.com/
Phone: 970-221-0438, IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Previous Topic: Re: meshes and some irritations
Next Topic: Re: Link to a variable page into an ION code

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

Current Time: Wed Oct 29 16:33:54 PDT 2025

Total time taken to generate the page: 0.03811 seconds