[Paraview] Re: write binary VTK -rectilinear grid data- using fortran77

Kent Eschenberg eschenbe at psc.edu
Mon Mar 13 10:28:27 EST 2006


Hi Adrian,

--On March 13, 2006 12:26:19 PM <amagda at gmail.com> wrote:
>>       WRITE (NAUS1)'DIMENSIONS', NX, NY, NZ
>>       WRITE (NAUS1)'X_COORDINATES',NX,'float'
>>       WRITE (NAUS1)'Y_COORDINATES', NY,'float'
>>        WRITE (NAUS1)'Z_COORDINATES', NZ,'float'

Each of the above 3 lines should be followed by the appropriate coordinate, 
in binary. See  http://www.vtk.org => Technical Documents => File Formats.

There is another issue that you will probably run across soon; its not 
documented as far as I can tell. After reading legacy-style files in binary 
VTK swaps the bytes. It seems to be done whether or not it is needed. Thus, 
you may need to swap the bytes before writing integers or floats in binary.

Kent
Pittsburgh Supercomputing Center


More information about the ParaView mailing list