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

Home » Public Forums » archive » Error in reading large Fortran unformatted files
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: Error in reading large Fortran unformatted files [message #75170 is a reply to message #75068] Fri, 18 February 2011 09:15 Go to previous messageGo to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
On 18/02/11 15:14, OM wrote:

>
> So I take it the only viable solution you can think of is as suggested
> by Ken - to break down the file into manageable bits?
>

I don't know of any other. I think it would be easier to write, and to
read back, as 1024 records. Programming the loop parameters would be
simpler.

I've had a play with a little FORTRAN program, compiled using gfortran,
which writes files >2GB. It seems the first 32bit word is always
2147483657, regardless of the length of the record actually output.
Maybe this is some special flag to the FORTRAN I/O library to indicate a
large record, I don't know. I'm not about to load a file that size into
a binary editor to look at it.

Also, the file is actually 8bytes longer than it should be for a single
record. So it may be that FORTRAN is actually splitting the record into
two, and it knows this because of that special record length indicator.
Presumably IDL doesn't understand this new "feature" of the GNU FORTRAN
compiler, and fails to read the file.

--
Nigel Wade
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Video Mosaicking
Next Topic: Re: BUG: How to crash IDL using !null

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

Current Time: Fri Oct 10 04:16:04 PDT 2025

Total time taken to generate the page: 3.51706 seconds