Re: write binary file

From: cheryl Ma <xiaoyancloud_at_nyahnyahspammersnyahnyah>
Date: Mon May 13 2013 - 09:48:44 MDT

I am using pgf90, command is "pgf90 -byteswapio -Mpreprocess -fast
-Bstatic".

There is no error message. The variable should range from 0 to 100, but I
got something like -9.0E30, 3E-20. I tried to set as liitle-endian or
comment out this line, I still can't get the right values.

On Mon, May 13, 2013 at 11:29 AM, Andrew Mai <mai@ucar.edu> wrote:

> On 05/13/2013 09:25 AM, cheryl Ma wrote:
>
> Thanks. But seems this doesn't help.
>>
>
> Fortran direct access is tricky. Which compiler are you using. If Intel,
> the record size needs to be in units of 4-byte words (or use the "-assume
> byterecl" compile flag).
>
> Are you sure you are compiling and running the Fortran code on a
> big-endian machine? Most machines these days are little-endian.
>
> What is the error message you are seeing (if any)?
>
> Andy
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon May 13 09:48:54 2013

This archive was generated by hypermail 2.1.8 : Wed May 15 2013 - 10:19:28 MDT