<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
Hello,<br>
<br>
<br>
>From your mail, I guess that you write your "binary" file with fortran, In
fact fortran writes "unformatted" files, that differ slightly from "binary"
files written with C language. The difference is that fortran adds a byte
at the beginning of the record.<br>
<br>
The vtkPlot3D reader allows you to read your unformatted file, you choose
Binary and Fortran Byte Count in your reader interface. I think it will work.<br>
If it doesnt, try to change bigendian in littleendian.<br>
<br>
<br>
<blockquote type="cite">
<pre wrap="">------------------------------
Date: Wed, 29 Mar 2006 14:02:28 +0000
From: "Francesco Fornarelli" <a class="moz-txt-link-rfc2396E"
href="mailto:f.fornarelli@gmail.com"><f.fornarelli@gmail.com></a>
Subject: [Paraview] plot3d reading problem
To: <a class="moz-txt-link-abbreviated"
href="mailto:paraview@paraview.org">paraview@paraview.org</a>
Message-ID:
        <a class="moz-txt-link-rfc2396E"
href="mailto:c7cbcb130603290602ldc4281atdf0fd972ee183c66@mail.gmail.com"><c7cbcb130603290602ldc4281atdf0fd972ee183c66@mail.gmail.com></a>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
I'm getting crazy because I can't read my plot3d file in binary. I have
500MB formatted plot3d data file so the binary format should be better to
manage.
This is my fortran code to write the .xyz and .q file:
open(12,file='bouco.xyz',form='formatted',status='unknown')
rewind(12)
write(12,*) n3,n2,n1
write(12,121)
% (((x3c(k),k=1,n3,n3p),j=1,n2,n2p),i=1,n1,n1p),
% (((x2c(j),k=1,n3,n3p),j=1,n2,n2p),i=1,n1,n1p),
% (((x1c(i),k=1,n3,n3p),j=1,n2,n2p),i=1,n1,n1p)
close(12)
namfi3='post.q'
open(29,file=namfi3,form='formatted',status='unknown')
rewind(29)
write(29,*) n3,n2,n1
write(29,*) 1.,1.,1.,1.
write(29,121) (((vmod(i,j,k),k=1,n3),j=1,n2),i=1,n1)
write(29,121) (((v3(i,j,k),k=1,n3),j=1,n2),i=1,n1)
% ,(((v2(i,j,k),k=1,n3),j=1,n2),i=1,n1)
% ,(((v1(i,j,k),k=1,n3),j=1,n2),i=1,n1)
% ,(((vmod(i,j,k),k=1,n3),j=1,n2),i=1,n1)
close(29)
If I write unformatted files Paraview doesn't work.
Anybody know which is the problem.
Thank you in advance!
bye,
Francesco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <a class="moz-txt-link-freetext"
href="http://public.kitware.com/pipermail/paraview/attachments/20060329/4a1ab877/attachment-0001.html">http://public.kitware.com/pipermail/paraview/attachments/20060329/4a1ab877/attachment-0001.html</a>
</pre>
</blockquote>
Joëlle,<br>
<div class="moz-signature">
<address style="text-align: justify;"><br>
</address>
</div>
<br>
</body>
</html>