>It turned out that the actual problem seemed to be a different one. I
>kept using my original grid now, but the point is that in the FORTRAN
>binary writeout, 1 machine word (4 bytes in my case) is prefixed to the
>array and 1 machine word is postfixed; although I had noted that there
>was a 8 byte-excess in the record length compared to the raw length of
>the data, I had thought that the 8 bytes were both postfixed. This lead
>to a 4 byte shift of my whole data, which explains a number of problems,
>some of which I didn't mention because I originally did not recognize
>their relation to the coordinate issue; in particular, it explains the
>shift in the vector components by one item. To read the data, one must
>skip the first machine word of every record (step).
>I don't know if the problem is compiler- or architecture dependent, or
>if it is a FORTRAN issue and possibly does not appear in C (I seem to
>recall that records are separated in a different way by C, though).
>However, maybe this helps other unexperienced users like me.
>


I believe this is a known hassle due to the way FORTRAN writes binary
records (it pads them). I think you have the answer now, and thanks for
posting the fix since it baffled me. All your delta stuff looked like it
was correct for your problem statement.

Cheers,


Chris Pelkie
Vice President/Scientific Visualization Producer
Conceptual Reality Presentations, Inc.
30 West Meadow Drive
Ithaca, NY 14850
[EMAIL PROTECTED]

Reply via email to