Re: fbinrecread question

From: Dave Allured - NOAA Affiliate <dave.allured_at_nyahnyahspammersnyahnyah>
Date: Mon Sep 30 2013 - 13:15:08 MDT


Remember that Fortran sequential unformatted binary files are also
record oriented. The symptom that you are probably seeing is that the
file was written one row per record, rather than the entire 2-D array
in a single record. To read the whole array, put fbinrecread inside a
loop, and loop over the record number from 0 to NROWS - 1.

(Please reply only to the user list.)

On Fri, Sep 27, 2013 at 1:53 PM, <> wrote:
> Hi gang,
> I'm trying to read a sequential, unformatted, binary Fortran format file
> with each value stored as a single, REAL*4 value created on a Big Endian
> machine. Supposedly the file contains 4321 rows x 8640 columns
> of data. The file is 149368328 bytes.
> I'm trying to use fbinrecread to read it.
> My question is: what is the value I need for rec_num?
> Recall this is supposed to be: "Record number to read from the file
> beginning at 0."
> If I try fbinrecread(infile,0,-1,"float") I get a 1-dimensional result
> with only 8640 values.
> Any suggestions would be most appreciated!
> Thanks!
> -Lesley Smith
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Mon Sep 30 13:15:23 2013

This archive was generated by hypermail 2.1.8 : Tue Oct 01 2013 - 14:41:44 MDT