home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!ornl!utkcs2!darwin.sura.net!spool.mu.edu!sgiblab!sgigate!odin!sgihub!eurohub!knobi.munich.sgi.com!knobi
- From: knobi@knobi.munich.sgi.com (Martin Knoblauch)
- Subject: Re: FORTRAN UNFORMATTED File Structure
- Message-ID: <1992Nov10.171629.20433@eurohub.neu.sgi.com>
- Sender: news@eurohub.neu.sgi.com (Net news)
- Nntp-Posting-Host: knobi.munich.sgi.com
- Organization: Silicon Graphics, Inc.
- References: <1992Nov10.153645.12090@erenj.com>
- Date: Tue, 10 Nov 1992 17:16:29 GMT
- Lines: 50
-
- In article <1992Nov10.153645.12090@erenj.com>, srfergu@rufus.erenj.com
- (Scott Ferguson) writes:
- |> Hi folks, sorry if this is an old question, I'm new to the sgi and
- |> the newsgroup.
- |>
- |> When an unformatted file is created with FORTRAN on the SGI, is it
- |> unstructured (like a plain old binary file, no record markers), or
- |> does it have some goofy record structure?
- |>
- |> Essentially, I'm hoping to read a binary data file with Dscribe from
- |> Explorer, and the file was created with SGI fortran. Having trouble,
- |> and it said something funny about markers, or structure, I can't
- |> quite
- |> remember.
- |>
- |> Thanks a lot.
- |>
- |> --
- |>
- ----------------------------------------------------------------------
- |> Scott Ferguson Exxon Research & Engineering
- |> Co.
- |> Project Engineer New Jersey
- |>
- ----------------------------------------------------------------------
- |> "Always bark at a dog."
-
-
- If the fortran file was created "unformatted, sequential", there
- is a 4 byte length field before AND after each record. So there is some
- "structure" in this case. I don't know what explorer is complaining
- about.
-
- If the fortran file was written "unformatted, direct", there is
- no additional information in the file. All records have fixed length.
- Be aware that in this case the RECL of the fortran OPEN statement is
- measured in 4byte units instead of bytes.
-
- Hope this helps
- Martin
- --
- +---------------------------------+----------------------------------+
- |Martin Knoblauch | Silicon Graphics GmbH |
- |Application Support | Am Hochacker 3 - Technopark |
- |Silicon Graphics Computer Systems| W-8011 Grasbrunn-Neukeferloh, FRG|
- | | Phone: (+int) 89 46108-179 or -0 |
- | | Fax: (+int) 89 46108-222 |
- +---------------------------------+----------------------------------+
- |Network: <knobi@sgi.com> | V-Mail: 8935 | M/S: IMU-315 |
- +--------------------------------------------------------------------+
-