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

Home » Public Forums » archive » Re: need help reading binary FORTRAN data
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: need help reading binary FORTRAN data [message #68467 is a reply to message #68323] Wed, 21 October 2009 08:44 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
That syntax, INTEGER*4, REAL*8, etc is, as you say, not in any Fortran standard but are
ubiquitous extensions. But, where those Fortran extensions are allowed, the "4" and "8"
above are indeed the length (read: number of bytes) and not the kind type. Kind types
didn't exist at all in Fortran until Fortran90, and the INTEGER*4, etc extensions were
available before that (and still are for those norty folks who continue to use them.... :o)

cheers,

paulv

pp wrote:
> Note that things like INT*4 do not universally tell how many bytes are
> used in that integer. The Fortran standard does not specify which kind
> corresponds to which size of variable, it is up to the implementation
> to define which kind number corresponds to which variable size. It is
> common that INT*4 means a 4-byte integer, but it does not have to be
> so. That is the reason why Fortran has functions like
> selected_int_kind, to pick the proper kind number.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Database of World's Administrative Areas
Next Topic: Re: Rrun itools at breakpoint

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

Current Time: Sat Oct 11 12:41:52 PDT 2025

Total time taken to generate the page: 0.64057 seconds