Re: fbinrecwrite

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sun, 27 Sep 2009 22:43:06 -0600

Po-Lun Ma wrote:
> Hi NCL-Talk,
>
> I have a basic question about fbinrecwrite:
>
> In the on-line document:
>
> http://www.ncl.ucar.edu/Document/Functions/Built-in/fbinrecwrite.shtml
>
> Example 2:
>
> It uses fbinrecwrite to write out u(64,128), v(64,128), z(64,128,17,31).
>
> Then use Fortran to read in by first declaring:
>
> real u(128,64), v(128,64), z(64,128,17,31)
>
> In NCL the fastest changing dimension is the rightmost and in Fortran
> it is the leftmost. Hence, u(64, 128) in NCL is the same as u(128,64)
> in Fortran. Why is z in Fortran still (64,128,17,31), instead of
> (31,17,128,64)?

The variable *size* is the same but the order is different,

If in NCL, z(64,128,17,31)
The last dimension in fortran should be: z(31,17,128,64)
>
> Thanks.
>
> Po-Lun
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Sep 27 2009 - 22:43:06 MDT

This archive was generated by hypermail 2.2.0 : Mon Sep 28 2009 - 10:22:32 MDT