Hi all <br><br>i am now able to write ASCII data in a binary file <br><br> WRITE(WORT1,'(a,a,I2,a,a,a)') 'X_COORDINATES',' ',NXGI,' ','float','\n'<br> WRITE (NAUGIT) WORT1<br><br>1 if my data is real in fortran and in paraview reader is float are this two corespondent, i mean the same? I do not see real in the vtk fileformats documentation...
<br><br>2 the file for writing should be unformatted or binary opened for writing - i am working on a sun machine?<br><br>3 how do i sweep bites? a line command would be very helpful<br><br><br>Kent thanks for your reply<br>
<br>adrian<br><br><br><div><span class="gmail_quote">On 3/13/06, <b class="gmail_sendername">Kent Eschenberg</b> <<a href="mailto:eschenbe@psc.edu">eschenbe@psc.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Adrian,<br><br>--On March 13, 2006 12:26:19 PM <<a href="mailto:amagda@gmail.com">amagda@gmail.com</a>> wrote:<br>>> WRITE (NAUS1)'DIMENSIONS', NX, NY, NZ<br>>> WRITE (NAUS1)'X_COORDINATES',NX,'float'
<br>>> WRITE (NAUS1)'Y_COORDINATES', NY,'float'<br>>> WRITE (NAUS1)'Z_COORDINATES', NZ,'float'<br><br>Each of the above 3 lines should be followed by the appropriate coordinate,<br>in binary. See
<a href="http://www.vtk.org">http://www.vtk.org</a> => Technical Documents => File Formats.<br><br>There is another issue that you will probably run across soon; its not<br>documented as far as I can tell. After reading legacy-style files in binary
<br>VTK swaps the bytes. It seems to be done whether or not it is needed. Thus,<br>you may need to swap the bytes before writing integers or floats in binary.<br><br>Kent<br>Pittsburgh Supercomputing Center<br></blockquote>
</div><br><br>