RES: [Paraview] Exporting data in a human readable manner
Renato N. Elias
rnelias at superig.com.br
Tue May 3 13:36:02 EDT 2005
Ok, your python script really seems to be very simple...
I'll do it... Thank you very much
[]'s
Renato N. Elias
Rio de Janeiro/Brasil
-----Mensagem original-----
De: A Steuwer [mailto:steuwer at ill.fr]
Enviada em: terça-feira, 3 de maio de 2005 11:26
Para: 'Renato N. Elias'
Assunto: [Paraview] Exporting data in a human readable manner
If you save the data in legacy vtk format, it's quite straightforward to
write a python script to convert the binary data to ascii.
Something along the line of
import vtk
ugr = vtk.vtkUnstructuredGridReader()
ugr.SetFileName("MyBinFile.vtk")
ugr.Update()
ugw = vtk.vtkUnstructuredGridWriter()
ugw.SetInput(ugr.GetOutput())
ugw.SetFileTypeToAscii()
ugw.SetFileName("MyHumanlyReadableAsciiFile.vtk")
ugw.Write()
If the data is another format (see header?!) then you might have to use a
different reader/writer combination.
Don't know if that's valid for all formats though.
HTH
Axel
----------------------------------------------
FaME38 at the ESRF-ILL
6, rue J. Horowitz, 38042 Grenoble CEDEX France
Tel.: ++33-476-207945
Mob.: ++33 (0)6688 16042
Fax.: ++33-476-207943
----------------------------------------------
-----Original Message-----
From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org]
On Behalf Of Renato N. Elias
Sent: 03 May 2005 14:57
To: paraview at paraview.org
Hi all,
I was wondering if anybody could give me a hand about exporting data
produced by Paraview's filters...
Being more specific: Does anybody know how to export data in a "human
readable manner" (ASCII) from Paraview? Will I have to write a VTK file
writer by myself and recompile Paraview to do it or there is an easier way?
Thanks for any help
Renato N. Elias
Rio de Janeiro/Brasil
http://www.nacad.ufrj.br/~rnelias
_______________________________________________
ParaView mailing list
ParaView at paraview.org
http://www.paraview.org/mailman/listinfo/paraview
Defend your privacy! Encrypt your email today!
http://www.bytefusion.com/secexmail
---Tag My Public Key---
a2V5aWQ6IHs3QUUxREZDMS0yMTFELTRFMDYtQjI3OC1CMTY1
Q0Q5QUUxQUF9DQpvd25lcjogQXhlbF9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